/* Color Palette */
.first-color {
    background: #f4f56e;
}

.second-color {
    background: #72e8e1;
}

.third-color {
    background: #58b3d3;
}

.fourth-color {
    background: #418c9f;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Drop Zone Animation */
#dropZone.drag-over {
    background-color: #fef3c7;
    border-color: #ca8a04;
}

/* Document Item */
.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
    max-width: 300px;
}

.document-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.document-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-download {
    background: #58b3d3;
    color: white;
}

.btn-download:hover {
    background: #418c9f;
    transform: scale(1.05);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* File Type Icons */
.file-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.file-pdf {
    background: #fecaca;
    color: #dc2626;
}

.file-txt {
    background: #bfdbfe;
    color: #1d4ed8;
}

.file-csv {
    background: #a7f3d0;
    color: #059669;
}

.file-xlsx {
    background: #d1d5db;
    color: #1f2937;
}

.file-docx {
    background: #dbeafe;
    color: #0284c7;
}

/* Loading Animation */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top-color: #58b3d3;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .document-name {
        max-width: 200px;
    }
}

@media (max-width: 640px) {
    .document-actions {
        flex-direction: column;
    }

    .btn-icon {
        width: 100%;
        text-align: center;
    }

    .document-name {
        max-width: 150px;
        font-size: 0.875rem;
    }
}

/* Gradient Background */
.bg-gradient-to-r {
    background: linear-gradient(to right, #f4f56e, #f4f56e, #72e8e1);
}
