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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23333" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="%23111"/><rect width="100%" height="100%" fill="url(%23grid)"/><circle cx="200" cy="150" r="3" fill="%23444" opacity="0.6"/><circle cx="400" cy="250" r="2" fill="%23555" opacity="0.4"/><circle cx="800" cy="200" r="2" fill="%23444" opacity="0.5"/><circle cx="1000" cy="300" r="3" fill="%23333" opacity="0.7"/><rect x="150" y="100" width="60" height="40" rx="5" fill="%23222" opacity="0.8"/><rect x="350" y="200" width="80" height="50" rx="5" fill="%23333" opacity="0.6"/><rect x="750" y="150" width="70" height="45" rx="5" fill="%23222" opacity="0.7"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.nav-logo h2 {
    color: #00b4d8;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    background: rgba(20, 20, 20, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #333;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #00b4d8;
    color: #00b4d8;
}

.cta-button.secondary:hover {
    background: #00b4d8;
    color: white;
}

/* Page Content */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    background: rgba(20, 20, 20, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.content-card {
    background: rgba(20, 20, 20, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

/* File Management Grid */
.file-management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.file-section {
    min-width: 0; /* Prevents grid overflow */
}

/* Table Styles */
.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.log-table th,
.log-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.log-table th {
    background: rgba(0, 180, 216, 0.1);
    color: #00b4d8;
    font-weight: 600;
}

.log-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Status indicators */
.status {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status.processing {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: #888;
    font-size: 0.9rem;
}

/* Form Elements */
select, input[type="text"], input[type="file"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

select:focus, input[type="text"]:focus, input[type="file"]:focus {
    outline: none;
    border-color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

select:hover, input[type="text"]:hover {
    border-color: #555;
    background: rgba(255, 255, 255, 0.15);
}

select {
    cursor: pointer;
}

/* Select options styling */
select option {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0.5rem;
    border: none;
}

select option:hover, select option:focus {
    background: #00b4d8;
    color: white;
}

select option:disabled {
    color: #666;
    background: #0f0f0f;
}

/* Form labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
}

/* File input styling */
input[type="file"] {
    cursor: pointer;
    position: relative;
}

input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #0077b6, #005f8c);
    transform: translateY(-1px);
}

/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #555;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background: #00b4d8;
    border-color: #00b4d8;
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

input[type="checkbox"]:hover {
    border-color: #777;
    background: rgba(255, 255, 255, 0.15);
}

input[type="checkbox"]:checked:hover {
    background: #0077b6;
    border-color: #0077b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content {
        padding: 2rem;
        margin: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .quick-actions {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .page-container {
        padding: 1rem;
    }

    .log-table {
        font-size: 0.9rem;
    }

    .log-table th,
    .log-table td {
        padding: 0.5rem;
    }

    /* File Management responsive */
    .file-management-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .file-section {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}