/* Print Location Button Styles */

.print-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin-left: 10px;
}

.print-location-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.print-location-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.print-location-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.print-location-btn i {
    font-size: 16px;
}

/* Loading skeleton state */
.print-location-btn.print-btn-loading {
    background: linear-gradient(90deg, #667eea 25%, #8d7de2 50%, #667eea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Ensure sidebar header can accommodate the print button */
.sidebar__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animation for button appearance */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.print-location-btn {
    animation: fadeInScale 0.3s ease;
}

/* Print-specific styles for the main page */
@media print {
    /* Hide everything except the print content when printing from main page */
    body > *:not(.print-content) {
        display: none !important;
    }
    
    .print-location-btn {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .print-location-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .print-location-btn i {
        font-size: 16px;
    }
}
