body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    background-color: #842dab;
    color: white;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px; /* Narrower container */
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo img {
    display: block;
}

.header-title {
    flex-grow: 1;
    text-align: center;
}

.header-title h1 {
    margin: 0;
    font-size: 1.5rem; /* Slightly smaller title */
}

.header-stats {
    display: flex;
    gap: 15px; /* Reduced gap */
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2rem; /* Smaller numbers */
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem; /* Smaller label */
}

footer {
    background-color: #842dab;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 0.9rem; /* Slightly smaller footer text */
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1000px; /* Narrower container */
    margin: 20px auto;
    padding: 0 20px;
}

.top-bar {
    background-color: #fff;
    padding: 8px 10px; /* Smaller padding */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px; /* Smaller margin */
    display: flex;
    gap: 8px; /* Smaller gap */
    align-items: center;
    justify-content: center; /* Center the controls */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

select, input, button {
    padding: 6px 10px; /* Smaller padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem; /* Smaller font */
}

button {
    background-color: #842dab;
    color: white;
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: #6a1b9a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px auto; /* Centered with smaller margin */
    max-width: 980px; /* Slightly narrower than container */
}

th, td {
    padding: 8px 12px; /* Smaller padding */
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem; /* Smaller font */
}

th {
    background-color: #842dab;
    color: white;
    cursor: pointer;
    white-space: nowrap; /* Prevent header wrapping */
}

th:hover {
    background-color: #6a1b9a;
}

tr:hover {
    background-color: #f5f5f5;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 15px; /* Smaller margin */
    max-width: 980px; /* Match table width */
    margin-left: auto;
    margin-right: auto;
}

.pagination-controls {
    display: flex;
    gap: 8px; /* Smaller gap */
    align-items: center;
}

.pagination-controls button {
    padding: 5px 10px; /* Smaller buttons */
}

#per-page-select {
    padding: 5px; /* Smaller select */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 15px; /* Smaller padding */
    border: 1px solid #888;
    width: 90%;
    max-width: 700px; /* Narrower modal */
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px; /* Slightly smaller */
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.disk-details {
    margin-top: 15px; /* Smaller margin */
}

.disk-details h3 {
    margin-top: 0;
    color: #842dab;
    font-size: 1.2rem; /* Smaller heading */
}

.disk-details table {
    margin-top: 8px; /* Smaller margin */
    width: 100%;
}

.disk-details th {
    background-color: #6a1b9a;
    width: 30%; /* Fixed width for labels */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-stats {
        margin-top: 10px;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    select, input, button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    th, td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}
