/* --- Global Variables and Theme Definitions --- */

:root {
    /* Primary Gold Color (Used for buttons, main links, accents) */
    --bs-primary-custom: #c09a4b; 
    --bs-primary-dark-custom: #a88440; 
    
    /* Standard Colors */
    --bs-link-color: #007bff; /* Standard blue for external links */
    --bs-error-color: #dc3545; /* Bootstrap red for errors */
    --bs-success-custom: #10b981; /* Green for success/verification */
    
    /* Gray Scale (for backgrounds and borders) */
    --bs-gray-100: #f3f4f6;
    --bs-gray-200: #e5e7eb;
    --bs-dashboard-bg: #f8f8f8;
}

/* --- Base Utility Styles --- */

.min-vh-100 {
    min-height: 100vh;
}

/* Gold Color Utilities */
.bg-primary-custom { 
    background-color: var(--bs-primary-custom) !important; 
}
.text-primary-custom { 
    color: var(--bs-primary-custom) !important;
}
.text-primary-custom:hover { 
    color: var(--bs-primary-dark-custom) !important;
}

/* Gold Button Styles */
.btn-primary-custom {
    color: #fff;
    background-color: var(--bs-primary-custom);
    border-color: var(--bs-primary-custom);
}
.btn-primary-custom:hover {
    color: #fff;
    background-color: var(--bs-primary-dark-custom);
    border-color: var(--bs-primary-dark-custom);
}

/* Text & Font Overrides */
.font-serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.text-error-custom {
    color: var(--bs-error-color); 
    font-size: 0.875rem;
}

/* --- Page-Specific Layout Styles --- */

/* Login Page Split Screen Image */
.image-cover-login {
    background-image: url('https://images.unsplash.com/photo-1549490349-8643362247b9?q=80&w=1000&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); 
    background-size: cover;
    background-position: center;
}
.image-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Equivalent of 'bg-black/40' */
}

/* Signup Page Form Card */
.form-card {
    max-width: 550px;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}
.top-header-bar {
    background-color: #f8f8f8; /* Light background for the strip */
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    padding: 10px 0;
}

/* --- Profile/Dashboard Sidebar & Layout Styles --- */

.app-container {
    display: flex;
    background-color: var(--bs-dashboard-bg); 
}
.sidebar {
    width: 250px; 
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
}
.main-content {
    flex-grow: 1;
    padding: 2rem;
}

/* Sidebar Navigation Links */
.nav-link-custom {
    color: var(--bs-gray-text); 
    padding: 12px 20px;
    margin: 4px 15px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}
.nav-link-custom:hover {
    background-color: rgba(192, 154, 75, 0.1); /* Light gold hover */
    color: var(--bs-gray-text);
}

/* Dashboard Active Link */
.nav-link-active {
    background-color: var(--bs-primary-custom) !important;
    color: white !important;
    font-weight: 600;
}

/* Profile Active Link (Lighter Gold BG as per design) */
.nav-link-active-profile {
    background-color: rgba(192, 154, 75, 0.3) !important;
    color: var(--bs-primary-dark-custom) !important; 
    font-weight: 600;
}

/* Profile Avatar & Info Blocks */
.profile-avatar { 
    background-color: var(--bs-gray-200); 
    /* ... other profile avatar dimensions ... */
}
.info-block-value {
    /* ... styles for input field look ... */
}

/* ... all other consolidated styles should follow ... */



/* Gold Theme Styles (Shared) */
:root {
    /* Primary Gold Color */
    --bs-primary-custom: #c09a4b; 
    --bs-primary-dark-custom: #a88440; 
    
    /* Result Page Colors */
    --bs-score-primary: var(--bs-primary-custom); /* Gold for score/border */
    --bs-score-success: #10b981; /* Green for Accuracy */
    --bs-score-rank: #0d6efd; /* Bootstrap Blue for Rank */
    --bs-score-danger: #dc3545; /* Red for mistakes */
    
    /* Light Backgrounds for Icons */
    --bs-yellow-100: #fff3cd; 
    --bs-green-100: #d1e7dd;
    --bs-blue-100: #cff4fc;
    --bs-red-50: #f8d7da;
    
    /* Shadow Gold */
    --bs-shadow-color: rgba(192, 154, 75, 0.2);
}

/* Custom Color Utilities */
.text-primary-custom { color: var(--bs-primary-custom) !important; }

/* Score Card Styles */
.border-t-primary-custom { border-top: 4px solid var(--bs-score-primary) !important; }
.border-t-success-custom { border-top: 4px solid var(--bs-score-success) !important; }
.border-t-rank-custom { border-top: 4px solid var(--bs-score-rank) !important; }

/* Icon Box Backgrounds */
.bg-yellow-100 { background-color: var(--bs-yellow-100); }
.bg-green-100 { background-color: var(--bs-green-100); }
.bg-blue-100 { background-color: var(--bs-blue-100); }
.bg-red-50 { background-color: var(--bs-red-50); }

/* Icon Box Dimensions */
.icon-box-sm {
    width: 3rem; 
    height: 3rem; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Icon Box */
.icon-box-lg {
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shadow Gold for Action Cards (Approximation) */
.shadow-gold-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--bs-shadow-color);
}