/**
 * HabsMUN Portal Stylesheet
 * Color Palette:
 * - Purple: #8382b0
 * - Blue: #0297FF
 * - Darker Purple: #3c3b5e
 */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0297FF;
    --primary-hover: #0288e6;
    --secondary-color: #8382b0;
    --secondary-hover: #7271a0;
    --dark-purple: #3c3b5e;
    --text-dark: #1a1a2e;
    --text-gray: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Login Page Styles ===== */
.login-page {
    background: linear-gradient(135deg, #3c3b5e 0%, #8382b0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-branding {
    text-align: center;
    margin-bottom: 40px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(2, 151, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-icon i {
    font-size: 36px;
    color: white;
}

.login-branding h1 {
    color: var(--dark-purple);
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.brand-tagline {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border-left: 4px solid #c33;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 18px;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--dark-purple);
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: #fff;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 151, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 151, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    display: block;
    padding: 16px;
    font-size: 16px;
}

.btn i {
    margin-right: 8px;
}

/* ===== Login Footer ===== */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-gray);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.login-footer i {
    color: var(--primary-color);
}

/* ===== Dashboard Styles ===== */
.dashboard-page {
    min-height: 100vh;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 24px 0;
    box-shadow: 0 4px 20px rgba(2, 151, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
}

/* ===== Dashboard Main ===== */
.dashboard-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 30px;
}

.dashboard-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.tab {
    padding: 10px 24px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    top: 2px;
    font-size: 15px;
}

.tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    color: white;
    border-bottom-color: white;
}

.dashboard-main .dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-main .tab {
    padding: 15px 30px;
    color: #666;
}

.dashboard-main .tab:hover {
    color: #0297FF;
}

.dashboard-main .tab.active {
    color: #0297FF;
    border-bottom-color: #0297FF;
}

.dashboard-content {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 48px;
    min-height: 400px;
    border: 1px solid var(--border-color);
}

.panel-page h2 {
    color: var(--dark-purple);
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.panel-page p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .login-box {
        padding: 40px 24px;
    }
    
    .brand-icon {
        width: 70px;
        height: 70px;
    }
    
    .brand-icon i {
        font-size: 32px;
    }
    
    .login-branding h1 {
        font-size: 28px;
    }
    
    .brand-subtitle {
        font-size: 15px;
    }
    
    .brand-tagline {
        font-size: 13px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dashboard-main {
        padding: 0 15px;
    }
    
    .dashboard-content {
        padding: 24px;
    }
    
    .dashboard-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }
    
    .tab.active {
        border-left-color: var(--primary-color);
        border-bottom-color: #e0e0e0;
    }
    
    .dashboard-header h1 {
        font-size: 22px;
    }
    
    .panel-page h2 {
        font-size: 24px;
    }
}

/* ===== Animations & Micro-interactions ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-content {
    animation: fadeIn 0.4s ease-out;
}

.login-box {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Accessibility ===== */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-hover);
}


