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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.stats-bar {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.stat {
    font-size: 1rem;
    opacity: 0.9;
}

.stat strong {
    font-size: 1.3rem;
}

.user-info {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-right: auto;
}

#refresh-btn, #logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#refresh-btn:hover, #logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

main {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 500;
}

.filter-bar input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
}

.filter-bar button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.filter-bar button:hover {
    background: #5a6fd6;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

tr:hover {
    background: #f8f9fa;
}

code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9rem;
    color: #d63384;
}

.method {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.method-get { background: #d1e7dd; color: #0f5132; }
.method-post { background: #cfe2ff; color: #084298; }
.method-put { background: #fff3cd; color: #664d03; }
.method-delete { background: #f8d7da; color: #842029; }

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-2xx { background: #d1e7dd; color: #0f5132; }
.status-3xx { background: #cfe2ff; color: #084298; }
.status-4xx { background: #fff3cd; color: #664d03; }
.status-5xx { background: #f8d7da; color: #842029; }

.user-agent {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    font-size: 0.85rem;
}

.loading, .no-data, .error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.error {
    color: #dc3545;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: #5a6fd6;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#page-info {
    font-size: 1rem;
    color: #666;
}

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

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .stats-bar {
        gap: 15px;
    }

    .stat {
        font-size: 0.9rem;
    }

    main {
        padding: 15px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar input {
        min-width: auto;
    }

    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .user-agent {
        display: none;
    }
}