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

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

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.5em;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #3498db;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-size-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-size-container label {
    font-weight: 500;
}

.page-size-container select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
}

.download-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn:hover {
    background: #219a52;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

#dataTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

#dataTable th {
    background-color: #34495e;
    color: white;
    padding: 15px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 11.11%;
    vertical-align: top;
}

#dataTable th:nth-child(1),
#dataTable th:nth-child(2) {
    width: 16%;
}

#dataTable th:nth-child(3),
#dataTable th:nth-child(4),
#dataTable th:nth-child(5) {
    width: 10%;
}

#dataTable th:nth-child(6),
#dataTable th:nth-child(7) {
    width: 12%;
}

#dataTable th:nth-child(8),
#dataTable th:nth-child(9) {
    width: 11%;
}

.column-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.sort-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s ease;
    min-width: 24px;
}

.sort-btn:hover {
    background: rgba(255,255,255,0.3);
}

.sort-btn[data-direction="asc"],
.sort-btn[data-direction="desc"] {
    background: rgba(52, 152, 219, 0.8);
}

.column-filter {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    font-size: 12px;
    min-width: 80px;
}

.column-filter:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

#dataTable td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
}

#dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

#dataTable tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#dataTable tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-weight: 500;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-controls button {
    padding: 8px 15px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn {
    min-width: 40px;
}

.page-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

#pageNumbers {
    display: flex;
    gap: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    #dataTable {
        font-size: 12px;
    }
    
    #dataTable th,
    #dataTable td {
        padding: 8px 4px;
    }
    
    #dataTable th {
        padding: 10px 4px;
    }
    
    .column-controls {
        flex-direction: column;
        gap: 4px;
    }
    
    .column-filter {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    
    #pageNumbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}