* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #f5f5f5;
    color: #000000;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #000000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    padding: 5px 10px;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-user {
    color: #000000;
    padding: 0 10px;
}

/* Login */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border: 1px solid #000000;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-width: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background-color: #333333;
}

.btn-danger {
    border-color: #000000;
}

.btn-danger:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #000000;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #000000;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.filter-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid #000000;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #000000;
}

.filter-toggle:hover {
    background-color: #f5f5f5;
}

.filter-toggle-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.filter-toggle.active .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-form {
    display: block;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    border: 1px solid #000000;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: #666666;
}

/* Tables */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #000000;
    white-space: nowrap;
}

table th {
    font-weight: 600;
    background-color: #f5f5f5;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
}

/* Alerts */
.error {
    background-color: #ffffff;
    border: 1px solid #000000;
    color: #000000;
    padding: 10px;
    margin-bottom: 15px;
}

.success {
    background-color: #ffffff;
    border: 1px solid #000000;
    color: #000000;
    padding: 10px;
    margin-bottom: 15px;
}

/* Chart Container */
.chart-container {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #000000;
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #000000;
    max-width: 500px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #000000;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #000000;
}

.close:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #f5f5f5;
        border-bottom: 1px solid #000000;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        display: none;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-user {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .filter-form {
        display: none;
    }
    
    .filter-form.active {
        display: block;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* Table improvements for mobile */
    .table-container {
        margin-left: -10px;
        margin-right: -10px;
        padding: 0 10px;
        width: calc(100% + 20px);
    }
    
    table {
        min-width: 500px;
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

