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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 20px;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #ffbb00;
    font-weight: 500;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: #ffbb00;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid #ffbb00;
    border-radius: 8px;
    transition: all 0.3s;
}

.back-link:hover {
    background: #ffbb00;
    color: #1a1a1a;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    min-height: 500px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: #ffbb00;
    box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.1);
}

.refresh-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffbb00;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: #e6a700;
    transform: translateY(-2px);
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-message h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
}

.empty-message p {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 25px;
}

.upload-link {
    display: inline-block;
    padding: 12px 30px;
    background: #ffbb00;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.upload-link:hover {
    background: #e6a700;
    transform: translateY(-2px);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.job-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.job-card:hover {
    border-color: #ffbb00;
    box-shadow: 0 4px 12px rgba(255, 187, 0, 0.2);
}

.job-header {
    background: #fff8e1;
    padding: 20px;
    border-bottom: 2px solid #ffbb00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-header-main {
    flex: 1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-header-main:hover {
    opacity: 0.8;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
}

.job-actions {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.job-action-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-job-btn {
    background: #28a745;
    color: white;
}

.download-job-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.delete-job-btn {
    background: #dc3545;
    color: white;
}

.delete-job-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.job-info {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.file-count {
    background: #ffbb00;
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.job-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.files-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-card.expanded .files-container {
    max-height: 2000px;
}

.files-list {
    padding: 20px;
    background: #fafafa;
}

.file-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.file-item:hover {
    border-color: #ffbb00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #999;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.download-btn {
    background: #ffbb00;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #e6a700;
    transform: translateY(-2px);
}

.delete-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.delete-file-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    opacity: 0.9;
}

footer p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 25px;
    }

    .controls {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .file-meta {
        flex-direction: column;
        gap: 5px;
    }
}
