* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #FF6584;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #DFE6E9;
    --bg: #F8F9FA;
    --shadow: 0 10px 40px rgba(108, 99, 255, 0.15);
    --shadow-hover: 0 15px 50px rgba(108, 99, 255, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

.landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.landing::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% { transform: translate(-10%, -10%) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(5deg); }
}

.landing-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
}

.hero-section {
    color: white;
}

.hero-section .logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-section .logo i {
    font-size: 3rem;
    color: #FFD93D;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section h1 span {
    color: #FFD93D;
    background: rgba(255, 217, 61, 0.2);
    padding: 0 12px;
    border-radius: 8px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.features-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-hero-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.feature-hero-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.feature-hero-item i {
    font-size: 2rem;
    color: #FFD93D;
    margin-bottom: 10px;
}

.feature-hero-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-hero-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}


.auth-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--light-gray);
    padding: 5px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
    font-size: 1rem;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.auth-form h2 {
    color: var(--dark);
    margin-bottom: 5px;
}

.auth-form .subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.auth-form input,
.auth-form select {
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    background: white;
}

.auth-form .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}


.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #FDE8E8;
    color: var(--danger);
    border-right: 4px solid var(--danger);
}

.alert-success {
    background: #E8F8F0;
    color: var(--success);
    border-right: 4px solid var(--success);
}

.alert i {
    font-size: 1.2rem;
}


.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.dashboard-nav {
    background: white;
    padding: 16px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-nav .brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.dashboard-nav .brand i {
    margin-right: 8px;
}

.dashboard-nav .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-nav .user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.dashboard-nav .user-info .balance {
    background: #FFF8E1;
    color: #F57F17;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.dashboard-nav .user-info .balance i {
    margin-right: 6px;
}

.dashboard-nav .logout-btn {
    color: var(--gray);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
}

.dashboard-nav .logout-btn:hover {
    background: #FDE8E8;
    color: var(--danger);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.dashboard-card .card-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.dashboard-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.dashboard-card p {
    color: var(--gray);
    font-size: 0.95rem;
}


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    font-size: 1.8rem;
}

.page-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.btn-back {
    color: var(--gray);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
}

.btn-back:hover {
    background: var(--light-gray);
}

.task-grid {
    display: grid;
    gap: 20px;
}

.task-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-right: 5px solid var(--primary);
    transition: var(--transition);
    animation: slideUp 0.5s ease-out;
}

.task-item:hover {
    box-shadow: var(--shadow-hover);
}

.task-item .task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.task-item .task-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.task-item .task-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #E3F2FD;
    color: #1565C0;
}

.status-requested {
    background: #FFF3E0;
    color: #E65100;
}

.status-completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-rejected {
    background: #FBE9E7;
    color: #C62828;
}

.task-item .task-desc {
    color: var(--gray);
    margin: 8px 0 12px;
}

.task-item .task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.task-item .task-meta i {
    margin-right: 6px;
    color: var(--primary);
}

.task-item .task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #27AE60;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #C0392B;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #E67E22;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}


.form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    margin-bottom: 8px;
}

.form-container .form-subtitle {
    color: var(--gray);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    background: white;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}


.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
}


@media (max-width: 968px) {
    .landing-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .features-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .auth-box {
        padding: 24px;
    }

    .dashboard-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .dashboard-nav .user-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .task-item .task-header {
        flex-direction: column;
    }

    .form-container {
        padding: 24px;
    }
}