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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.last-upload-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.last-upload-label {
    color: #666;
    margin-right: 8px;
}

.last-upload-time {
    color: #667eea;
    font-weight: 500;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
}

#fileInput {
    display: none;
}

.file-list {
    margin-top: 20px;
    text-align: left;
}

.file-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.total-size {
    font-size: 0.9rem;
    color: #666;
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
}

.file-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-name-preview {
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #555;
    border: 1px solid #ddd;
}

.more-files {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.current-upload {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #667eea;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-counter {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.upload-status {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.current-file {
    margin-bottom: 15px;
}

.current-file-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.current-file-size {
    font-size: 0.9rem;
    color: #666;
}

.upload-complete {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #28a745;
    text-align: center;
}

.complete-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.complete-summary {
    margin-bottom: 20px;
    color: #333;
}

.download-transcript {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.file-item {
    background: #f8f9fa;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.file-item.uploading {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-item.success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.file-item.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.file-name {
    color: #333;
    font-weight: 500;
}

.file-size {
    color: #666;
    font-size: 0.8rem;
}

.file-status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
}

.file-status.pending {
    background: #e9ecef;
    color: #6c757d;
}

.file-status.uploading {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

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

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

.file-progress {
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    height: 4px;
    margin-top: 8px;
    display: none;
}

.file-progress.active {
    display: block;
}

.file-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.file-progress-fill.success {
    background: #28a745;
}

.file-progress-fill.error {
    background: #dc3545;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    height: 8px;
    display: none;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.error-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.nag-message {
    background: #e2e3e5;
    border-left: 4px solid #6c757d;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.nag-message p {
    margin: 0;
    color: #383d41;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .upload-area {
        padding: 40px 15px;
    }
}
