/* Document Action Buttons */
.document-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-action:hover {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #9ca3af;
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-action .bi {
    font-size: 1rem;
}

.btn-action.primary {
    background-color: #0ea5e9;
    color: white;
    border: 1px solid #0ea5e9;
}

.btn-action.primary:hover {
    background-color: #0284c7;
    border-color: #0284c7;
}

/* Icons */
.bi-printer::before { content: "\F52E"; } /* Bootstrap Icon code */
.bi-download::before { content: "\F30A"; }
.bi-envelope::before { content: "\F32F"; }
.bi-file-pdf::before { content: "\F3D5"; }
.bi-send::before { content: "\F51C"; }
.bi-x-lg::before { content: "\F659"; }

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

/* Email Dialog Content */
.email-dialog {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.dialog-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
}

.dialog-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.dialog-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dialog-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: #f9fafb;
}

/* Form Styles within Dialog */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-control {
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.text-muted {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .document-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .email-dialog {
        width: 95%;
        max-height: 90vh;
    }
}
