/* =========================================
   CSS Variables (Matching Main Website)
   ========================================= */
:root {
    --primary-color: #b9a3d9;      /* Lighter version of #9e82c5 */
    --primary-dark: #9e82c5;       /* Base purple */
    --primary-light: #d4c4e8;      /* Even lighter shade */
    --secondary-color: #FF6B9D;
    --accent-color: #FFB347;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --error: #E74C3C;
    --success: #27AE60;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
}

/* =========================================
   Navigation Bar (Same as Main Website)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
}

/* =========================================
   Auth Pages Container
   ========================================= */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 40px;
    background: rgba(185, 163, 217, 0.03);
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 50px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.6s ease;
}

.profile-card {
    max-width: 700px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Logo & Headers
   ========================================= */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    height: 80px;
    width: auto;
}

h1 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   Info Banner Styles
   ========================================= */
.info-banner {
    display: flex;
    gap: 15px;
    padding: 0;
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(185, 163, 217, 0.1), rgba(212, 196, 232, 0.15));
    border: 2px solid rgba(185, 163, 217, 0.3);
    border-radius: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.info-banner.show {
    padding: 18px 20px;
    max-height: 200px;
    opacity: 1;
    margin-bottom: 10px;
}

.info-banner.hide {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.info-banner.show .info-icon {
    animation: pulse 2s infinite;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: var(--primary-dark);
    font-size: 15px;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* =========================================
   Form Styles
   ========================================= */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(185, 163, 217, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================================
   Button Styles (Matching Website)
   ========================================= */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(185, 163, 217, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 163, 217, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* =========================================
   Loading Spinner
   ========================================= */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   Message Styles
   ========================================= */
.message {
    padding: 14px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.message.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

/* =========================================
   Footer Text
   ========================================= */
.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-light);
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

.resend-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.resend-link:hover:not(:disabled) {
    text-decoration: underline;
}

.resend-link:disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* =========================================
   Dashboard Layout
   ========================================= */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
    padding-top: 80px;
}

.sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 80px);
    top: 80px;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-logo {
    height: 50px;
    margin-bottom: 12px;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(185, 163, 217, 0.08);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--error);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.08);
}

/* =========================================
   Main Content
   ========================================= */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    text-align: left;
    margin: 0;
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* =========================================
   Dashboard Content Cards
   ========================================= */
.dashboard-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 700;
}

/* =========================================
   Stats Grid (Feature Cards Style)
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* =========================================
   Recent Activity
   ========================================= */
.recent-activity {
    margin-top: 40px;
}

.recent-activity h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.activity-list {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 60px 20px;
    font-size: 1rem;
}

/* =========================================
   Settings Cards
   ========================================= */
.settings-container {
    display: grid;
    gap: 24px;
}

.settings-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.settings-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.settings-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.settings-card .btn-secondary {
    width: auto;
    padding: 12px 24px;
    margin-top: 0;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 968px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 1000;
        width: 280px;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .auth-card {
        padding: 35px 25px;
    }

    .info-banner.show {
        padding: 15px;
        gap: 12px;
        max-height: 180px;
    }

    .info-content strong {
        font-size: 14px;
    }

    .info-content p {
        font-size: 13px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .info-banner.show {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
        max-height: 220px;
    }

    .info-banner.show .info-icon {
        margin: 0 auto;
    }

    .dashboard-content {
        padding: 25px 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }
}
