/* index.css */
.upload-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.upload-container h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

/* Combined upload and drop zone */
.upload-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    position: relative;
    min-height: 150px;
}

.upload-dropzone:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-dropzone.active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.upload-icon {
    color: #6b7280;
    margin-bottom: 16px;
}

.upload-text {
    text-align: center;
}

.upload-title {
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
    margin-bottom: 8px;
}

.upload-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.browse-text {
    color: #3b82f6;
    font-weight: 500;
    cursor: pointer;
}

.file-input {
    display: none;
}

/* Files list */
.files-list {
    margin-top: 10px;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: white;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.file-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-icon {
    color: #6b7280;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #6b7280;
    font-size: 0.75rem;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.clear-all-btn {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
    margin-left: auto;
    margin-top: 12px;
}

.clear-all-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Helper classes */
.mb-4 {
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.font-medium {
    font-weight: 500;
}

/* Media queries */
@media (max-width: 600px) {
    .upload-dropzone {
        padding: 16px;
        min-height: 120px;
    }

    .upload-title {
        font-size: 0.875rem;
    }

    .upload-subtitle {
        font-size: 0.75rem;
    }
}

.dark .upload-title {
    color: #f9fafb;
}

.dark .upload-subtitle {
    color: #f9fafb;
}

.dark .file-item {
    background-color: #4b5563;
    border: 1px solid #4b5563;
}

.dark .file-item:hover {
    background-color: #5a626e;
}

.dark .file-item-icon {
    color: #f9fafb;
}

.dark .file-item-info {
    color: #f9fafb;
}

.dark .file-name {
    color: #f9fafb;
}

.dark .file-size {
    color: #f9fafb;
}

.dark .remove-file-btn {
    color: #f9fafb;
}

.dark .remove-file-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .clear-all-btn {
    background-color: #4b5563;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .clear-all-btn:hover {
    background-color: #525f7f;
    border-color: #525f7f;
    color: #f9fafb;
}

/* Helper classes */
.dark .mb-4 {
    margin-bottom: 1rem;
}

.dark .flex {
    display: flex;
}

.dark .items-center {
    align-items: center;
}

.dark .justify-between {
    justify-content: space-between;
}

.dark .font-medium {
    font-weight: 500;
}

/* Media queries */
.dark .upload-dropzone {
    background-color: #374151;
    color: #f9fafb;
    border: 2px dashed #616c80;
}

.dark .upload-dropzone:hover {
    border-color: #3b82f6;
}

.dark .upload-title {
    color: #f9fafb;
}

.dark .upload-subtitle {
    color: #f9fafb;
}

/* Dark mode helper classes */
.dark .mb-4 {
    margin-bottom: 1rem;
}

.dark .flex {
    display: flex;
}

.dark .items-center {
    align-items: center;
}

.dark .justify-between {
    justify-content: space-between;
}

.dark .font-medium {
    font-weight: 500;
}

.dark .files-list {
    background-color: #374151;
}
