/* CrewFile Styles - Light Professional Theme */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* Light ice-blue gradient creates contrast for the dark logo ring */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1e293b;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo {
    height: 100px;
    width: auto;
    /* Optional: filter dropshadow to make the logo feel tactile */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

header h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin: 0;
    color: #1e293b;
    /* Dark slate for contrast on light bg */
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 400;
    margin-top: 5px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 20px;
    /* Softer shadow for a cleaner look */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.05);
}

.card.success {
    border-left: 6px solid #10b981;
}

.card.error {
    border-left: 6px solid #ef4444;
}

h2 {
    margin-bottom: 25px;
    color: #1e293b;
    font-weight: 700;
}

/* File Input Section */
.file-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

#file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    display: block;
    padding: 50px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: #fdfdfd;
}

.file-input-label:hover {
    border-color: #B85840;
    /* Logo Orange */
    background: #fffafa;
    transform: translateY(-1px);
}

#file-input-text {
    color: #64748b;
    font-size: 1.1rem;
}

#file-list {
    margin-bottom: 20px;
}

.file-item {
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #334155;
}

/* Buttons */
.btn-primary {
    background: #B85840;
    /* Logo Orange */
    color: white;
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background: #9d4631;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 88, 64, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Section */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    /* Gradient using the Yellow and Orange from your logo */
    background: linear-gradient(90deg, #E8B652 0%, #B85840 100%);
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Footer */
footer {
    text-align: center;
    color: #64748b;
    /* Gray text for the light background */
    margin-top: auto;
    padding: 40px 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }

    .card {
        padding: 25px;
    }

    .logo {
        height: 80px;
    }
}