@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #1e88e5;
    --secondary-color: #f5f7fa;
    --accent-color: #ff6d00;
    --text-color: #2d3748;
    --card-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3e7eb 0%, #f5f7fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container-fluid {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--primary-color);
    color: white;
    min-height: 100vh;
    padding: 15px;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-250px);
    transition: var(--transition);
    z-index: 1000;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar .nav-link {
    color: white;
    padding: 12px;
    border-radius: 5px;
    margin: 5px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar .navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .navbar-brand img {
    height: 36px;
    margin-right: 8px;
}

.main-content {
    margin-left: 0;
    padding: 15px;
    flex: 1;
    transition: var(--transition);
}

.sidebar.active ~ .main-content {
    margin-left: 0;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 12px 15px;
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    vertical-align: middle;
    padding: 10px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.btn {
    transition: var(--transition);
    padding: 10px 15px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: white;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: var(--transition);
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.3);
}

.form-floating label {
    color: #6b7280;
    font-size: 0.9rem;
}

.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown-menu {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 0;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--secondary-color);
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    font-size: 0.85rem;
}

footer a {
    color: #ffeb3b;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.search-bar {
    max-width: 100%;
    margin-bottom: 15px;
}

.input-group-text {
    background: var(--secondary-color);
}

.summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 15px;
    text-align: center;
}

.summary-card h3 {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 250px;
        padding: 20px;
    }
    .hamburger-menu {
        display: none;
    }
    footer {
        display: block;
    }
}

@media (max-width: 767.98px) {
    body {
        height: 100vh;
        overflow-y: auto;
    }
    .container-fluid {
        min-height: 100vh;
    }
    .sidebar {
        width: 200px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    .card {
        border-radius: 0;
        margin-bottom: 10px;
        box-shadow: none;
    }
    .card-header {
        font-size: 1.1rem;
        padding: 10px;
    }
    .card-body {
        padding: 10px;
    }
    .table {
        font-size: 0.85rem;
    }
    .table th, .table td {
        padding: 8px;
    }
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .summary-card {
        padding: 10px;
    }
    .summary-card h3 {
        font-size: 1rem;
    }
    .form-control, .form-select {
        font-size: 0.85rem;
    }
    .form-floating label {
        font-size: 0.85rem;
    }
    .dropdown-menu {
        font-size: 0.85rem;
    }
    .dropdown-item {
        padding: 8px 12px;
    }
    footer {
        display: none;
    }
}

@media (max-width: 576px) {
    .table th:not(:nth-child(2)):not(:nth-child(6)):not(:nth-child(9)),
    .table td:not(:nth-child(2)):not(:nth-child(6)):not(:nth-child(9)) {
        display: none;
    }
    .table th:nth-child(2), .table td:nth-child(2) {
        width: 50%;
    }
    .table th:nth-child(6), .table td:nth-child(6) {
        width: 30%;
    }
    .table th:nth-child(9), .table td:nth-child(9) {
        width: 20%;
    }
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .search-bar .form-control {
        font-size: 0.8rem;
    }
}

