/* Global Typography */
body {
    font-family: 'Outfit', sans-serif !important;
}

/* Global Utilities */
.truncate-10 {
    display: inline-block;
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Itinerary Maker Components */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card.active {
    border-color: #2867A6;
    background-color: #EFF6FF;
}

.day-card {
    min-height: auto;
    transition: all 0.3s ease;
}

.day-card:hover {
    transform: translateY(-2px);
}

.day-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.toggle-btn svg {
    transition: transform 0.3s ease;
}

.tipo-arrow,
.categoria-arrow,
.empresa-arrow {
    transition: transform 0.3s ease;
}

.atividade-item {
    cursor: move;
}

.atividade-item:active {
    opacity: 0.7;
}

.activity-item {
    cursor: move;
    transition: all 0.2s ease;
}

.activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-left {
    width: 240px;
    min-height: calc(100vh - 64px);
}

/* Hide native scrollbars while keeping the area scrollable */
.sidebar-left.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.sidebar-left.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* WebKit */
.main-itinerary {
    flex: 1;
    overflow-x: auto;
}

/* Print Page Styling (Unified) */
.print-page {
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    padding: 18mm;
    margin: 0 auto 12mm auto;
    background: white;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

@media screen {
    #previewContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #previewContainer .print-page {
        width: 100%;
        max-width: 520px;
        /* fit within the right sidebar */
        min-height: 260px;
        padding: 12px;
        margin: 10px 0;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        page-break-after: auto;
    }

    #previewContainer .print-page img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    body {
        background: white;
    }

    .print-page {
        box-shadow: none !important;
        border: none !important;
        margin: 0;
        padding: 12mm;
    }

    .no-print {
        display: none !important;
    }

    .page-break {
        page-break-after: always;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;

        /* Clickable email styling */
        .clickable-email {
            cursor: pointer;
            transition: color 0.2s ease;
        }
    }
}

/* Clickable email styling */
.clickable-email {
    cursor: pointer;
    transition: color 0.2s ease;
}

.clickable-email:hover {
    color: #2867A6;
    text-decoration: underline;
}

/* Toast Notification Container */
#toast-container {
    max-width: 400px;
}

/* Premium Drag & Drop Effects */
.dragging {
    opacity: 0.5 !important;
    transform: rotate(2deg) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    cursor: grabbing !important;
    z-index: 1000 !important;
}

/* Smoother transitions for drag items */
.atividade-item,
.tipo-header {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Enhanced Drag-over state for drop zones */
.drag-over {
    border: 2px dashed #2867A6 !important;
    background-color: rgba(40, 103, 166, 0.04) !important;
    box-shadow: inset 0 0 15px rgba(40, 103, 166, 0.1) !important;
    transform: scale(1.005);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.activities-list {
    min-height: 100px;
    transition: all 0.3s ease;
}