/* invoice-modal.css */

/* Modal Özelleştirmeleri */
#invoiceModal .modal-dialog {
    max-width: 1200px;
}

#invoiceModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#invoiceModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 1.5rem;
}

#invoiceModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#invoiceModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* İşlem Butonları */
.invoice-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.invoice-actions .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.invoice-actions .btn i {
    font-size: 1rem;
}

/* Fatura İçerik Alanı */
.invoice-preview {
    min-height: 600px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.invoice-preview::-webkit-scrollbar {
    width: 8px;
}

.invoice-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.invoice-preview::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.invoice-preview::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fatura Tablosu Stilleri */
.table-hover tbody tr {
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.show .modal-dialog {
    animation: fadeIn 0.3s ease-out;
}

/* Toast Container */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    #invoiceModal .modal-dialog {
        max-width: 95%;
        margin: 1rem;
    }
    
    .invoice-actions {
        flex-direction: column;
    }
    
    .invoice-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .invoice-preview {
        min-height: 400px;
        padding: 1rem;
    }
    
    #invoiceModal .modal-header {
        padding: 1rem;
    }
    
    #invoiceModal .modal-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .invoice-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Stilleri */
@media print {
    .modal-header,
    .modal-footer,
    .invoice-actions {
        display: none !important;
    }
    
    .invoice-preview {
        border: none;
        background: white;
        max-height: none;
        overflow: visible;
    }
}

/* Buton Renk Özelleştirmeleri */
.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
}

.btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-dark:hover {
    background-color: #212529;
    border-color: #212529;
}

/* Share Modal Stilleri */
#shareModal .input-group {
    margin-bottom: 1rem;
}

#shareModal input[readonly] {
    background-color: #f8f9fa;
    cursor: text;
}

/* Card Stilleri */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 2rem;
}

.card-body {
    padding: 1.5rem;
}

/* Başlık Stilleri */
h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Alert Stilleri */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert i {
    margin-right: 0.5rem;
}
