:root {
    --primary-color: #007bff; /* Soft Blue */
    --accent-color: #ffc107; /* Pop of Gold */
    --background-color: #f0f4f8; /* Soft Gray */
    --card-background: #fff;
    --text-dark: #333;
    --text-light: #667;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 0 10px var(--shadow-light);
}

.logo-container {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 100%;
    height: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.75rem;
}

.sidebar-nav a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.sidebar-nav a.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.sidebar-nav a i {
    margin-right: 1rem;
    font-size: 1.25rem;
}

.user-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.profile-info span {
    font-weight: 600;
}

.profile-info small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
}

.user-profile a {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.user-profile a:hover {
    color: var(--primary-color);
}

/* Main Dashboard */
.dashboard-main {
    flex-grow: 1;
    padding: 2.5rem;
}

.top-section {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.header-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.header-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.kpi-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-8px);
}

.kpi-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.kpi-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.action-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.action-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.create-action .action-button {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.view-action .action-button {
    background-color: var(--primary-color);
    color: #fff;
}

.recent-vouchers-container {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.recent-vouchers-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-light);
    font-weight: 600;
}

tbody td {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

.download-buttons {
    display: flex;
    gap: 0.75rem;
}

.download-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.download-btn.ticket {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.download-btn.voucher {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
}

.download-btn:hover {
    filter: brightness(0.9);
}

@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        box-shadow: 0 2px 10px var(--shadow-light);
    }
    .sidebar-logo {
        width: auto;
        height: 40px;
    }
    .sidebar-nav {
        display: none; /* Hide for smaller screens */
    }
    .user-profile {
        display: none;
    }
    .dashboard-main {
        padding: 1.5rem;
    }
    .top-section {
        grid-template-columns: 1fr;
    }
    .content-section {
        grid-template-columns: 1fr;
    }
}