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

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 300;
}

header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0 28px 0;
    text-align: center;
    position: relative;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(21, 101, 192, 0.18), 0 1px 0 #222;
}

.subtitle {
    font-size: 1.18rem;
    font-weight: 400;
    color: #e3f2fd;
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.98;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(21, 101, 192, 0.12);
}

.header-content::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 2px;
    margin: 28px auto 0 auto;
}

/* Main Content Styling */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Section Styling */
section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

section h2 {
    margin: 0;
    padding: 25px 30px 15px 30px;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Upload Section */
.upload-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.upload-container {
    padding: 30px;
}

.sample-download {
    margin-bottom: 25px;
    text-align: center;
}

.format-info {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.file-upload {
    text-align: center;
    margin-bottom: 25px;
}

.upload-area {
    margin-bottom: 15px;
}

.file-info {
    margin-top: 10px;
    display: none;
}

.file-name {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #c3e6c3;
    display: inline-block;
}

.upload-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.upload-info p {
    margin: 8px 0;
    color: #2c3e50;
}

/* Results Section */
.results-info {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.results-info p {
    margin: 8px 0;
    color: #495057;
}

.table-container {
    padding: 30px;
    overflow-x: auto;
}

.download-options {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.download-note {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* Form and Button Styling */
input[type="file"] {
    margin-bottom: 15px;
    padding: 10px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: #007bff;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn.secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.download-btn {
    min-width: 160px;
    font-weight: 600;
}

.csv-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.csv-btn:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.excel-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.excel-btn:hover {
    background: linear-gradient(135deg, #117a8b 0%, #0c5460 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn.hidden {
    display: none;
}

/* Hidden class for general elements */
.hidden {
    display: none;
}

/* Table Styling */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
    padding: 15px 12px;
    border: 1px solid #e9ecef;
    text-align: left;
    vertical-align: middle;
}

/* Table Header Styling */
.table th {
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    padding: 20px 14px;
    border-bottom: 4px solid #1565c0;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
}

.download-options-top {
    margin-bottom: 18px;
}

.download-options-bottom {
    margin-top: 18px;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s ease;
}

/* Footer Styling */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .table-container {
        padding: 15px;
    }
    
    .table th, .table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}
