/* Quantivs Testimonials Admin Styles - Modern Bootstrap Design */

/* Reset and Base Styles */
.quantivs-settings-wrap * {
    box-sizing: border-box;
}

/* Main Container */
.quantivs-settings-wrap {
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Header Section */
.quantivs-header {
    background: linear-gradient(135deg, #FA5424 0%, #C22C00 100%);
    color: white;
    padding: 50px 60px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quantivs-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.quantivs-header h1 {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.quantivs-description {
    font-size: 20px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    font-weight: 400;
    max-width: 800px;
}

/* Settings Grid */
.quantivs-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Settings Cards */
.quantivs-settings-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quantivs-settings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 50px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #FA5424 0%, #C22C00 100%);
}

.card-header h2 {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.3;
}

.card-header h2::before {
    content: '⚙️';
    font-size: 24px;
}

.card-header p {
    margin: 0;
    color: #6c757d;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 700px;
}

.card-body {
    padding: 50px;
}

/* Form Layout */
.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 25px;
}

.form-table tr {
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.form-table tr:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.form-table th {
    padding: 25px 30px 25px 35px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    vertical-align: top;
    width: 280px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.form-table td {
    padding: 25px 35px 25px 30px;
    background: white;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Form Controls */
.form-table input[type="text"],
.form-table input[type="number"],
.form-table select {
    width: 100%;
    max-width: 350px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
}

.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus,
.form-table select:focus {
    border-color: #FA5424;
    box-shadow: 0 0 0 4px rgba(250, 84, 36, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Color Input */
.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    max-width: 250px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.color-input-wrapper:hover {
    border-color: #FA5424;
    transform: translateY(-1px);
}

input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.color-value {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #495057;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Checkbox Styling */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    max-width: 350px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.checkbox-wrapper:hover {
    border-color: #FA5424;
    transform: translateY(-1px);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #FA5424;
    border-color: #FA5424;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-wrapper label {
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

/* Description Text */
.description {
    margin-top: 12px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FA5424;
    line-height: 1.5;
    font-weight: 400;
    max-width: 500px;
}

/* Footer */
.quantivs-settings-footer {
    background: white;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

/* Buttons */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #FA5424 0%, #C22C00 100%);
    border: none;
    color: white;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 84, 36, 0.3);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.wp-core-ui .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 84, 36, 0.4);
}

.wp-core-ui .button-secondary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.wp-core-ui .button-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

/* Loading Text Fields */
.loading-text-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 450px;
}

.loading-text-fields .input-group {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.loading-text-fields .input-group:hover {
    border-color: #FA5424;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quantivs-settings-wrap {
        margin: 20px;
        padding: 15px;
    }
    
    .card-body {
        padding: 40px;
    }
    
    .form-table th {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .quantivs-header {
        padding: 40px 30px;
        text-align: center;
    }
    
    .quantivs-header h1 {
        font-size: 32px;
    }
    
    .quantivs-description {
        font-size: 18px;
    }
    
    .card-header {
        padding: 30px;
    }
    
    .card-header h2 {
        font-size: 24px;
    }
    
    .card-header p {
        font-size: 16px;
    }
    
    .card-body {
        padding: 30px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 20px;
    }
    
    .form-table th {
        border-radius: 15px 15px 0 0;
        margin-bottom: 0;
        font-size: 15px;
    }
    
    .form-table td {
        border-radius: 0 0 15px 15px;
        margin-top: 0;
    }
    
    .quantivs-settings-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 30px;
    }
    
    .wp-core-ui .button-primary,
    .wp-core-ui .button-secondary {
        width: 100%;
        text-align: center;
    }
    
    .form-table input[type="text"],
    .form-table input[type="number"],
    .form-table select {
        max-width: 100%;
    }
    
    .color-input-wrapper,
    .checkbox-wrapper {
        max-width: 100%;
    }
}

/* Animation for page load */
.quantivs-settings-wrap {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success message styling */
.notice-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    margin: 25px 0;
    padding: 20px;
    font-size: 15px;
    font-weight: 500;
}

/* Error message styling */
.notice-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    margin: 25px 0;
    padding: 20px;
    font-size: 15px;
    font-weight: 500;
} 