/* ==================== PRINT CONTROLS STYLES ==================== */

.print-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.print-test-btn,
.print-settings-btn {
    background: rgba(0, 123, 255, 0.9);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.print-test-btn:hover,
.print-settings-btn:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-2px);
}

/* ==================== MODAL STYLES ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ==================== PRINT STATUS STYLES ==================== */

.print-status {
    margin-bottom: 30px;
}

.print-status h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-label {
    font-weight: 500;
    color: #555;
}

.status-value {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-loading {
    background: #e2e3e5;
    color: #6c757d;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==================== PRINT OPTIONS STYLES ==================== */

.print-options {
    margin-top: 20px;
}

.print-options h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 4px;
}

.option-label input[type="checkbox"],
.option-label input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
}

.option-label span {
    color: #555;
    font-size: 14px;
}

/* ==================== BUTTON STYLES ==================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .print-controls {
        top: 10px;
        right: 10px;
        flex-direction: column;
    }

    .print-test-btn,
    .print-settings-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ==================== PRINT SUCCESS ANIMATION ==================== */

@keyframes printSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.print-success {
    animation: printSuccess 0.5s ease;
}

/* ==================== HIDE ON KIOSK MODE ==================== */

body.kiosk-mode .print-controls {
    display: none !important;
}