/* /css/document-table.css */
.document-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    overflow: hidden;
}

.document-table-header {
    background: #1a237e;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-table-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.btn-primary {
    background: #ffffff;
    color: #1a237e;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.document-table-wrapper {
    overflow-x: auto;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.document-table th {
    background: #f5f5f5;
    color: #1a237e;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.document-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333333;
    font-size: 14px;
}

.document-table tr:hover {
    background: #f8f9ff;
}

.column-number {
    width: 80px;
    text-align: center !important;
    color: #666666 !important;
    font-weight: normal !important;
}

/* File type icons */
.file-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.file-icon i {
    color: #1a237e;
    font-size: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff5f0;
    color: #ff5722;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #ffe0d2;
}

.download-btn:hover {
    background: #ffe0d2;
    transform: translateY(-1px);
}

.download-btn i {
    font-size: 16px;
}

.remove-btn {
    background: #fff5f5;
    color: #f44336;
    border: 1px solid #ffe7e7;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #ffe7e7;
    transform: translateY(-1px);
}

.remove-btn i {
    font-size: 16px;
}

/* Empty state */
.document-table-empty {
    text-align: center;
    padding: 48px 24px;
    color: #9e9e9e;
    background: #fafafa;
}

.document-table-empty i {
    font-size: 32px;
    margin-bottom: 16px;
    color: #e0e0e0;
}

/* Skeleton loader */
.skeleton-loader {
    height: 16px;
    background: linear-gradient(90deg, #f5f5f5 25%, #eeeeee 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast notifications */
.document-table-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    font-size: 14px;
}

.document-table-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .document-table-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .document-table th,
    .document-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .column-number {
        width: 50px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .document-table th:last-child,
    .document-table td:last-child {
        width: 60px;
    }
}