:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #2d3748;
    --light: #f7fafc;
    --white: #ffffff;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --gray: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #f0f2f5;
    color: var(--dark);
    min-height: 100vh;
}

/* Sidebar & Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 40px;
    text-align: center;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.logo-small i {
    font-size: 24px;
}

.logo-small h2 {
    font-size: 18px;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(5px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px border rgba(255, 255, 255, 0.1);
}

.logout-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(245, 101, 101, 0.2);
    color: #feb2b2;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-text p {
    color: var(--gray);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.user-img {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.user-info span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.user-info small {
    color: var(--gray);
    font-size: 12px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 28px;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: rotate(5deg);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* Admin Section */
.admin-section {
    margin-top: 60px;
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.btn-add {
    background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 15px;
    font-size: 14px;
    color: var(--gray);
    border-bottom: 1px solid #f0f2f5;
}

.admin-table td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f2f5;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 5px;
    transition: all 0.2s;
}

.btn-edit {
    background: #ebf4ff;
    color: #3182ce;
}

.btn-delete {
    background: #fff5f5;
    color: #e53e3e;
}

.btn-action:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }

    .logo-small h2,
    .nav-link span,
    .sidebar-footer span {
        display: none;
    }

    .sidebar-header {
        margin-bottom: 30px;
    }

    .nav-link {
        justify-content: center;
        padding: 15px;
    }

    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .user-profile {
        align-self: flex-end;
    }

    .welcome-text h1 {
        font-size: 24px;
    }
}