/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.close-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.document-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.preview-placeholder {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.preview-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.document-details {
    flex: 1;
    min-width: 300px;
}

.document-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    font-weight: 600;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.details-table td {
    padding: 8px 0;
}

.details-table td:first-child {
    width: 120px;
    color: var(--light-text);
}

.mt-3 {
    margin-top: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
