* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body {
    background: linear-gradient(135deg, #2b6cb0 0%, #a0c4ff 50%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background-color: #0d47a1; 
    color: white;
    position: relative;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; 
}

/* Sizing for the navbar image */
.nav-logo-img {
    height: 35px; 
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.streak {
    font-weight: 600;
}

.notification {
    cursor: pointer;
}

.sign-in-btn {
    background-color: white;
    color: #0d47a1;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sign-in-btn:hover {
    background-color: #f0f0f0;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; 
    position: relative;
    overflow: hidden;
    padding: 0 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2; 
    margin-top: -5rem; 
}

.hero-logo-large {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

/* Sizing and spacing for the large hero image */
.hero-logo-img {
    height: 100px; 
    width: auto;
    object-fit: contain;
    margin-right: -15px; 
}

.hero-brand {
    font-size: 4.5rem;
    color: white;
    font-weight: 600;
}

.tagline {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-btn {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Background Graphic */
.hero-graphic {
    position: absolute;
    right: -250px; 
    bottom: -10%;
    z-index: 1;
    opacity: 0.9;
}

.side-graphic {
    width: 800px; 
    height: auto;
}

/* --- Back Button --- */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563; /* Dark gray to match the badge text */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    width: fit-content;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

/* Hover effects */
.back-button:hover {
    color: #0d47a1; /* Turns blue on hover */
}

.back-button:hover svg {
    transform: translateX(-4px); /* Smoothly slides the arrow to the left */
}

/* --- Profile Avatar Circle --- */
.profile-circle {
    width: 38px;
    height: 38px;
    background-color: #ffffff; /* Crisp white circle */
    color: #0d47a1; /* Skilvera Blue text */
    border-radius: 50%; /* This is what makes it a perfect circle! */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Slight shadow for depth */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-circle:hover {
    transform: scale(1.05); /* Slight pop-out effect when hovering */
    background-color: #f0f4fc;
}

/* --- Profile Dropdown Menu (Skilvera Branded) --- */
.profile-dropdown {
    position: absolute;
    top: 70px; 
    right: 50px;
    background-color: #ffffff; /* Crisp white background */
    width: 280px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Soft, realistic shadow */
    display: none; 
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e0e0e0; /* Light, clean border */
}

.profile-dropdown.show {
    display: flex; 
}

/* User Info Header Area */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa; /* Very subtle gray/blue tint */
}

.dropdown-avatar {
    width: 42px;
    height: 42px;
    background-color: #0d47a1; /* Skilvera Primary Blue */
    color: #ffffff;
    border-radius: 50%; /* Perfect circle to match the navbar! */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: #111111; /* Dark text for readability */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.8rem;
    color: #6a92c7; /* Skilvera Secondary Blue */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu Links */
.dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    color: #4b5563; /* Smooth gray text */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

/* The Skilvera Hover Effect */
.dropdown-item:hover {
    background-color: #f0f4fc; /* Soft Skilvera blue background */
    color: #0d47a1; /* Deep Skilvera blue text */
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover svg {
    opacity: 1; /* Icons light up on hover */
}

/* =========================================
   ACCOUNT SETTINGS PAGE
   ========================================= */

.settings-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    width: 100%;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-header .breadcrumb {
    font-size: 0.9rem;
    color: #6a92c7;
    margin-bottom: 0.5rem;
    display: block;
}

.settings-header h2 {
    font-size: 2.2rem;
    color: #000000;
    font-weight: 800;
}

/* White Content Cards */
.settings-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.25rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
}

/* Layout Grid (Avatar Left, Form Right) */
.settings-grid {
    display: flex;
    gap: 3rem;
}

.avatar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    flex-shrink: 0;
}

.settings-avatar {
    width: 100px;
    height: 100px;
    background-color: #0d47a1; /* Skilvera Blue */
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-column {
    flex-grow: 1;
}

.form-row {
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.skilvera-input {
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #111;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skilvera-input:focus {
    outline: none;
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.input-with-action {
    display: flex;
    position: relative;
    align-items: center;
}

.input-with-action input {
    width: 100%;
    padding-right: 80px;
}

.input-badge {
    position: absolute;
    right: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981; /* Success Green */
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.btn-primary {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0a367a;
}

.btn-secondary {
    background-color: transparent;
    color: #6b7280;
    border: none;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    color: #111;
}

.btn-text {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-text:hover {
    color: #0d47a1;
}

/* Responsive fix for smaller screens */
@media (max-width: 768px) {
    .settings-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .avatar-column {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        gap: 1.5rem;
    }
    .settings-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 0;
    }
}

/* =========================================
   PASSWORD SETTINGS UI
   ========================================= */

/* Eye Icon Toggle */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding-right: 45px; /* Leave room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #4b5563;
}

/* Password Validation Box */
.validation-box {
    background-color: #f8f9fa; /* Light gray Skilvera background */
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e5e7eb;
}

.validation-box h4 {
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 1rem;
    font-weight: 600;
}

.validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.validation-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Validation Icons */
.validation-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.validation-list li.invalid svg {
    color: #ef4444; /* Red Cross */
}

.validation-list li.valid svg {
    color: #10b981; /* Green Check */
}

/* Disabled Button Style (matches the image) */
.btn-primary:disabled {
    background-color: #a5bdf2; /* Lightened Skilvera Blue */
    cursor: not-allowed;
    opacity: 0.8;
}