* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.logo-header {
    text-align: center;
    padding: 20px 0 15px 0;
    margin-bottom: 0;
}

.logo-header img {
    max-width: 280px;
    height: auto;
}

header {
    background: #ffffff;
    color: #000000;
    padding: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

nav a {
    color: #000000;
    text-decoration: none;
    padding: 12px 16px;
    background: transparent;
    border-right: 1px solid #e0e0e0;
    transition: background 0.2s;
    font-size: 0.85rem;
}

nav a:last-child {
    border-right: none;
}

nav a:nth-last-child(3) {
    margin-left: auto;
    border-left: 1px solid #e0e0e0;
}

nav a:hover {
    background: #f5f5f5;
}

nav a.active {
    background: #000000;
    color: #ffffff;
}

.flash-messages {
    margin: 20px;
    margin-bottom: 0;
}

.flash {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #000000;
    font-size: 0.9rem;
}

.flash.success {
    background: #ffffff;
    color: #000000;
}

.flash.error {
    background: #ffffff;
    color: #000000;
}

.flash.warning {
    background: #ffffff;
    color: #000000;
}

.flash.info {
    background: #ffffff;
    color: #000000;
}

.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    padding: 20px;
    margin-bottom: 0;
}

.card h2 {
    margin-bottom: 15px;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #000000;
    font-size: 0.9rem;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    background: #fafafa;
}

button, .btn {
    padding: 8px 16px;
    border: 1px solid #000000;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    background: #000000;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover, .btn:hover {
    background: #ffffff;
    color: #000000;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

th {
    background: #ffffff;
    font-weight: 500;
    position: sticky;
    top: 0;
    border-bottom: 2px solid #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

tr:hover {
    background: #fafafa;
}

.table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin: 20px;
    margin-bottom: 0;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px 30px;
    text-align: left;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 300;
    color: #000000;
    line-height: 1;
}

.stat-card .label {
    color: #666666;
    font-size: 0.75rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 15px;
}

.filters .form-group {
    margin-bottom: 0;
}

.filters .search-group {
    width: 300px;
}

.filters .days-group {
    width: 450px;
}

.days-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.form-group .days-controls input[type="number"] {
    width: 70px;
}

.days-label {
    font-size: 0.9em;
    color: #666;
}

.date-filter-info {
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}

.filters button,
.filters .btn {
    min-width: 80px;
}

.view-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border: 1px solid #000000;
}

.view-tabs a {
    flex: 1;
    padding: 8px 16px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-right: 1px solid #000000;
    transition: all 0.2s;
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-tabs a:last-child {
    border-right: none;
}

.view-tabs a:hover {
    background: #f5f5f5;
}

.view-tabs a.active {
    background: #000000;
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 1rem;
}

.empty-state p {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    header {
        text-align: left;
    }

    nav {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 20px;
    }

    nav a:first-child {
        padding-left: 20px;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a:nth-last-child(3) {
        margin-left: 0;
        border-left: none;
    }

    .filters {
        flex-direction: column;
    }

    .filters .form-group {
        width: 100%;
    }

    .filters .search-group,
    .filters .days-group {
        width: 100%;
    }

    .view-tabs {
        flex-direction: column;
    }

    .view-tabs a {
        border-right: none;
        border-bottom: 1px solid #000000;
    }

    .view-tabs a:last-child {
        border-bottom: none;
    }

    .stats {
        margin: 20px 0;
    }
}
