:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --white: #fff;
    --gray: #dddfeb;
    --gray-dark: #7a7f9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fb;
    color: #333;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-logo img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.login-container h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-container p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    background-color: transparent;
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary) 0%, #224abe 100%);
    color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: fixed;
    height: 100%;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    width: 60px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav li a i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.sidebar-nav li.active a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid var(--white);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    background-color: #f5f7fb;
}

.topbar {
    background-color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 1rem;
    color: var(--dark);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.content {
    padding: 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.page-header h1 i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.actions .btn {
    margin-left: 0.5rem;
}

.card {
    background-color: var(--white);
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-bottom: 1px solid var(--gray);
}

.card-header h3 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.card-body {
    padding: 1.5rem;
}

.filter-card {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
    transition: border-color 0.3s;
    background-color: var(--white);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.table {
    width: 100%;
    color: var(--dark);
    border-collapse: collapse;
}

.table th {
    background-color: var(--light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: var(--dark);
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 2rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    margin-right: 1.5rem;
}

.bg-primary {
    background-color: var(--primary);
}

.bg-success {
    background-color: var(--success);
}

.bg-info {
    background-color: var(--info);
}

.dashboard-cards .card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.dashboard-cards .card:hover {
    transform: translateY(-5px);
}

.card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.card-info p {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.recent-activity {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.recent-activity h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.recent-activity h3 i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.activity-content small {
    color: var(--secondary);
    font-size: 0.75rem;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-info {
    color: var(--info);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        overflow: hidden;
    }
    
    .sidebar-header h3, 
    .sidebar-nav li a span {
        display: none;
    }
    
    .sidebar-nav li a {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .sidebar-nav li a i {
        margin-right: 0;
        font-size: 1.25rem;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .filter-card .row {
        flex-direction: column;
    }
    
    .filter-card .col-md-6 {
        width: 100%;
    }
}