/* Document Cards */
.document-card {
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
}

/* Document Preview */
.document-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Document Details */
.document-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
}

.document-details h6 {
    color: #0d6efd;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.document-details .form-label {
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.document-details p {
    margin-bottom: 1rem;
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* File Type Icons */
.fa-file-invoice {
    color: #0d6efd;
}

.fa-file-contract {
    color: #198754;
}

.fa-file-pdf {
    color: #dc3545;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.75em;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #0d6efd;
    background: #e9ecef;
}

.upload-zone i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* OCR Results */
.ocr-results {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.ocr-results h6 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.ocr-field {
    margin-bottom: 0.5rem;
}

.ocr-field label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* Document Actions */
.document-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none;
}

.document-card:hover .document-actions {
    display: block;
}

/* Modal Customizations */
.modal-xl {
    max-width: 1200px;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .document-preview {
        min-height: 300px;
    }
    
    .document-details {
        margin-top: 1rem;
    }
}
