/* ============================================
   SUPPLIER ATTACHMENTS STYLES
   ============================================ */

/* Upload Progress */
.upload-progress {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.upload-progress .progress {
    height: 30px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    overflow: hidden;
}

.upload-progress .progress-bar {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Attachments List */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Attachment Item */
.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f9fc;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: #ffffff;
    border-color: #c8b6e2;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

/* Attachment Info */
.attachment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.attachment-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* Attachment Details */
.attachment-details {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 600;
    font-size: 1rem;
    color: #44403c;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #78716c;
}

.attachment-separator {
    color: #d6d3d1;
}

.attachment-description {
    font-size: 0.85rem;
    color: #78716c;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Attachment Actions */
.attachment-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-download {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-download:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* No Attachments State */
.no-attachments {
    text-align: center;
    padding: 3rem 2rem;
    color: #78716c;
}

.no-attachments i {
    font-size: 3rem;
    color: #d6d3d1;
    margin-bottom: 1rem;
}

.no-attachments p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #57534e;
    margin-bottom: 0.5rem;
}

.no-attachments small {
    font-size: 0.9rem;
    color: #a8a29e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .attachment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .attachment-icon {
        font-size: 1.75rem;
        width: 45px;
        height: 45px;
    }

    .attachment-name {
        font-size: 0.95rem;
    }

    .attachment-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .attachment-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .attachment-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}
