/* Modern/Classic Combo Design - Avada Inspired - Compact Version - Performance Optimized */

:root {
    --primary-green: #28a745;
    --primary-navy: #0d47a1;
    --secondary-navy: #1565c0;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --gradient-header: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --header-height: 70px;
}

* {
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-header);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    will-change: transform;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
}

.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.container {
    max-width: 1200px;
}

/* Compact Card Design */
.compact-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: white;
    overflow: hidden;
}

.compact-card .card-body {
    padding: 1.5rem;
}

/* Smart Wizard Compact Styling */
.sw-theme-circles .sw-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.sw-theme-circles .step-anchor {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}

.sw-theme-circles .nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.sw-theme-circles .nav-link:hover {
    color: var(--primary-navy);
    background: var(--light-gray);
}

.sw-theme-circles .nav-link.active {
    color: var(--primary-green);
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
}

.sw-theme-circles .nav-link.done {
    color: var(--primary-green);
}

.sw-theme-circles .progress-bar {
    background: var(--gradient-success);
    height: 2px;
    border-radius: 2px;
}

.sw-theme-circles .step-anchor::before {
    background-color: var(--primary-navy);
}

.sw-theme-circles .nav-link::after {
    background-color: var(--primary-navy);
    height: 2px;
}

.sw-theme-circles .nav-link.active::after {
    background-color: var(--primary-green);
}

.sw-theme-circles .nav-link.done::after {
    background-color: var(--primary-green);
}

/* Compact Form Elements */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
    background: white;
}

.form-control::placeholder {
    color: #aaa;
    font-size: 0.85rem;
}

.form-text {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Compact Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Smart Wizard Buttons */
.sw-toolbar .btn {
    margin: 0 0.35rem;
    min-width: 100px;
    padding: 0.5rem 1rem;
}

/* Step Content */
.tab-pane {
    padding: 0.5rem 0;
}

.tab-pane h4 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.1rem;
}

/* Validation */
.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Photo Preview */
#photoPreview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 2px dashed var(--primary-green);
    border-radius: 6px;
    background: rgba(40, 167, 69, 0.05);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#photoPreview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 6px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--primary-navy);
    border-left: 3px solid var(--primary-navy);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 3px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 3px solid #dc3545;
}

/* Fallback Wizard Navigation */
#wizard-nav-buttons {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: color 0.2s ease;
}

.star.active {
    color: #ffc107;
}

.star:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .compact-card .card-body {
        padding: 1rem;
    }
    
    .sw-theme-circles .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .sw-toolbar .btn {
        min-width: auto;
        margin: 0.25rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo-section {
        gap: 0.5rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .compact-card {
        border-radius: 8px;
    }
    
    .compact-card .card-body {
        padding: 0.75rem;
    }
    
    .sw-theme-circles .step-anchor {
        flex-wrap: wrap;
    }
    
    .sw-theme-circles .nav-link {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Animation Effects - Optimized */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.active {
    animation: fadeIn 0.2s ease-out;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-navy);
}

/* Admin Panel Styles */
.navbar {
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.admin-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-card .card-body {
    padding: 1.5rem;
}

.admin-card h5 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.admin-card h2 {
    font-weight: 700;
    color: var(--primary-navy);
}

.admin-table .table {
    border-radius: 8px;
    overflow: hidden;
}

.admin-table .table thead {
    background: var(--gradient-primary);
    color: white;
}

.admin-table .table th {
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.admin-table .table td {
    padding: 1rem;
    vertical-align: middle;
}

.admin-table .table tbody tr {
    transition: all 0.3s ease;
}

.admin-table .table tbody tr:hover {
    background: var(--light-gray);
}

/* Modern Form Styles */
.admin-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-form .form-control,
.admin-form .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

/* Modern Buttons */
.btn-admin {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card h5 {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}
