/* Additional custom styles for ISOLA SCREEN */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .ticket-print-page {
        page-break-after: always;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
}

.ticket-print-preview {
    background: white;
    color: black;
    border: 2px dashed #ccc;
    margin-bottom: 1rem;
    padding: 1rem;
}

/* Thermal Print Modal Styles */
.print-method-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1f2937;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid #374151;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: white;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thermal-print-btn,
.browser-print-btn,
.cancel-print-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thermal-print-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.thermal-print-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

.browser-print-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.browser-print-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.cancel-print-btn {
    background: #6b7280;
    color: white;
}

.cancel-print-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.notification-success {
    background: linear-gradient(135deg, #059669, #047857);
    border-left: 4px solid #10b981;
}

.notification-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-left: 4px solid #ef4444;
}

.notification-info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-left: 4px solid #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
}

.fade-out {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

/* Loading animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print button styles */
.print-single-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.print-single-btn:hover {
    background: #1d4ed8;
}

#printAllBtn {
    background: linear-gradient(135deg, #059669, #047857);
}

#printAllBtn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
}

#printAllBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Thermal Print Loading Styles */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notification styles */
.alert-success {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Thermal Print Loading Styles */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}