/* Dokladia - Custom Styles */

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 1rem;
}

.card-header {
    font-weight: 600;
    border: none;
}

.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.status-unpaid {
    background-color: #ffc107;
    color: #000;
}

.status-paid {
    background-color: #28a745;
    color: #fff;
}

.status-overdue {
    background-color: #dc3545;
    color: #fff;
}

.status-review {
    background-color: #6c757d;
    color: #fff;
}

.queue-item {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.queue-status.processing {
    color: #007bff;
}

.queue-status.completed {
    color: #28a745;
}

.queue-status.failed {
    color: #dc3545;
}

#uploadProgress {
    margin-top: 1rem;
}

.modal-body .form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Animace pro načítání */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* PDF button styles */
.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: #fff;
}

/* PDF Modal styles */
#pdfModal .modal-dialog {
    max-width: 90%;
    margin: 2rem auto;
}

#pdfModal .modal-body {
    padding: 0;
    overflow: hidden;
}

#pdfFrame {
    display: block;
}

/* Responsive table actions */
.table td:last-child {
    white-space: nowrap;
}

.table .btn + .btn {
    margin-left: 0.25rem;
}

/* PDF Preview Modal */
#pdfPreviewModal .modal-body {
    height: calc(100vh - 120px);
    overflow: hidden;
}

#pdfPreviewFrame {
    min-height: calc(100vh - 120px);
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    #pdfModal .modal-dialog {
        max-width: 100%;
        margin: 0;
    }
    
    #pdfModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }
}