@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

:root {
    --stroer-orange: #FF5A10;
    --stroer-blue: #08204A;
    --stroer-light-blue: #1e3a5f;
    --timeline-header-bg: #1a3a6b;   /* softer than --stroer-blue for the timeline header */
    --slot-cell-height: 24px;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    overflow: hidden;
}

.navbar-brand {
    font-weight: 600;
    color: var(--stroer-blue) !important;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
}

.nav-tabs .nav-link:hover {
    border-color: var(--stroer-orange);
    color: var(--stroer-orange);
}

.nav-tabs .nav-link.active {
    color: var(--stroer-orange);
    background-color: transparent;
    border-color: var(--stroer-orange);
    font-weight: 500;
}

.btn-stroer {
    background-color: var(--stroer-orange);
    border-color: var(--stroer-orange);
    color: white;
}

.btn-stroer:hover {
    background-color: #e04a00;
    border-color: #e04a00;
    color: white;
}

.btn-outline-stroer {
    color: var(--stroer-orange);
    border-color: var(--stroer-orange);
    background-color: transparent;
}

.btn-outline-stroer:hover {
    color: white;
    background-color: var(--stroer-orange);
    border-color: var(--stroer-orange);
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-card.project-assigned {
    border-left: 3px solid var(--stroer-orange);
    background-color: #fff8f3;
}

.queue-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #fff7e6;
    border: 1px solid #ffd6b8;
    font-size: 0.8rem;
}

.queue-chip button {
    border: none;
    background: transparent;
    color: var(--stroer-orange);
    padding: 0;
    line-height: 1;
}

.queue-chip button:hover {
    color: #b43d00;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 250px;
}

.dropdown-header {
    background-color: #f8f9fa;
    color: var(--stroer-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--stroer-orange);
    color: white;
}

.notification-badge {
    background-color: var(--stroer-orange);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card {
    background: linear-gradient(135deg, var(--stroer-orange) 0%, #ff7040 100%);
    color: white;
    border-radius: 12px;
}

.metric-card-blue {
    background: linear-gradient(135deg, var(--stroer-blue) 0%, var(--stroer-light-blue) 100%);
    color: white;
    border-radius: 12px;
}

.metric-card-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
}

.activity-item {
    border-left: 3px solid var(--stroer-orange);
    padding-left: 12px;
}

.freelancer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--stroer-orange), var(--stroer-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.status-active { color: #28a745; }
.status-idle { color: #ffc107; }
.status-inactive { color: #dc3545; }

.skill-badge {
    background-color: #e3f2fd;
    color: var(--stroer-blue);
    border: 1px solid #bbdefb;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 90, 16, 0.05);
}

.table-hover tbody tr.selected {
    background-color: rgba(255, 90, 16, 0.1) !important;
}

.freelancer-detail {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    /* card border (1px) + thead row (0.5rem + 1.5rem + 0.5rem) + thead border-bottom (2px) */
    margin-top: calc(2.5rem + 3px);
}

.filter-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

/* Calendar Styles */
.calendar-grid {
    border-collapse: collapse;
    width: 100%;
}

.calendar-grid th,
.calendar-grid td {
    border: 1px solid #dee2e6;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    height: 40px;
}

.calendar-grid th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--stroer-blue);
}

.time-header {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--stroer-blue);
    width: 80px;
}

.slot-booked {
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-available {
    background-color: #ffc107;
    color: #212529;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-blocked {
    background-color: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: not-allowed;
}

.slot-selected {
    background-color: var(--stroer-orange) !important;
    color: white;
    box-shadow: 0 0 0 3px rgba(255, 90, 16, 0.3);
}

.week-navigation {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.slot-details-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
}

.mobile-nav {
    display: none;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.mobile-nav a.active {
    color: var(--stroer-orange) !important;
}

.mobile-nav a:not(.active) {
    color: #6c757d !important;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .freelancer-detail {
        margin-top: 1rem;
    }

    body {
        padding-bottom: 70px;
    }
}

.stroer-logo {
    width: 180px;
    height: auto;
}

.calendar-container {
    overflow-x: auto;
}

/* Tab content visibility */
.tab-content > .tab-pane {
    display: none;
}

.tab-content > .tab-pane.active {
    display: block;
}

.notification-item {
    border-left: 3px solid var(--stroer-orange);
    background: rgba(255, 90, 16, 0.05);
}

.notification-item:hover {
    background: rgba(255, 90, 16, 0.1);
    color: inherit;
}
.notification-item:hover .text-muted {
    color: #6c757d !important;
}

/* Add vertical spacing between form columns when they wrap */
.row.mb-4 [class*="col-"] {
    margin-bottom: 15px;
}

/* Ensure proper spacing for wrapped columns on smaller screens */
@media (max-width: 767.98px) {
    .row.mb-4 [class*="col-"] {
        margin-bottom: 20px;
    }
}

/* Timeline Styling */
.timeline-grid {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    height: calc(100vh - 165px);
    min-height: 200px;
}
.timeline-container {
    min-width: 100%;
    position: relative;
}
.timeline-header {
    display: grid;
    grid-template-columns: 100px 150px 1fr;
    background-color: var(--timeline-header-bg);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 2px solid #dee2e6;
}
.timeline-date-label {
    padding: 12px 8px;
    text-align: center;
    background-color: var(--timeline-header-bg);
    border-right: 1px solid rgba(255,255,255,0.15);
    position: sticky;
    left: 0;
    z-index: 25;
}
.timeline-project-header {
    padding: 12px 8px;
    text-align: center;
    background-color: var(--timeline-header-bg);
    border-right: 1px solid rgba(255,255,255,0.15);
    position: sticky;
    left: 100px;
    z-index: 25;
}
.timeline-hour-header-grid {
    display: grid;
    grid-template-columns: repeat(48, minmax(0, 1fr));
}
.timeline-hour-label {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.75rem;
    border-right: 1px solid rgba(255,255,255,0.2);
    grid-column: span 2;
}
.timeline-day-row {
    border-bottom: 2px solid #e9ecef;
    background-color: white;
}
.timeline-project-row {
    display: grid;
    grid-template-columns: 100px 150px 1fr;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
    position: relative;
    align-items: stretch;
}
.timeline-date-cell {
    padding: 12px 8px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 15;
    color: var(--stroer-blue);
    border-bottom: 1px solid #dee2e6;
    align-self: stretch;
}
.timeline-date-cell[style*="span"] {
    border-bottom: 2px solid #e9ecef; /* Stronger border for spanning cells */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.timeline-date-cell.timeline-date-placeholder {
    visibility: hidden;
    border: none;
    background: transparent;
    pointer-events: none;
}
.timeline-project-label[style*="span"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}
.timeline-project-label {
    padding: 12px 8px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: sticky;
    left: 100px;
    z-index: 10;
    align-self: stretch;
}
.timeline-project-label.timeline-project-placeholder {
    visibility: hidden;
    border: none;
    background: transparent;
    pointer-events: none;
}
.timeline-day-label {
    font-weight: 600;
    color: var(--stroer-blue);
    margin-bottom: 2px;
}
.timeline-content-grid {
    display: grid;
    grid-template-columns: repeat(48, minmax(0, 1fr));
    grid-template-rows: minmax(32px, auto);
    position: relative;
    min-height: 80px;
    padding: 4px 0;
    background-image:
            repeating-linear-gradient(to right, rgba(226,232,240,0.35) 0, rgba(226,232,240,0.35) 1px, transparent 1px, transparent calc(100% / 48)),
            repeating-linear-gradient(to right, transparent, transparent calc(100% / 24 - 1px), rgba(148,163,184,0.55) calc(100% / 24 - 1px), rgba(148,163,184,0.55) calc(100% / 24)),
            repeating-linear-gradient(to bottom, rgba(226,232,240,0.3) 0, rgba(226,232,240,0.3) 1px, transparent 1px, transparent 32px);
    background-size: 100% 100%;
}
.timeline-content-grid > * {
    z-index: 1;
}
.timeline-content-grid.has-booking-rows {
    padding-bottom: 20px;
}
.timeline-hour-cell {
    display: none;
}
.timeline-hour-cell:hover {
    background-color: #f8f9fa;
}

/* Capacity Histogram (grid row 2) */
.cap-histogram-cell {
    grid-row: 2;
    align-self: stretch;
    margin: 2px 0;
    min-height: 10px;
    border-radius: 0;
}
.cap-histogram-cell.cap-bar-partial {
    background-color: #eef7ee;
    border-top: 2px solid #2d7a47;
}
.cap-histogram-cell.cap-bar-high {
    background-color: #fdf8e8;
    border-top: 2px solid #c89b1a;
}
.cap-histogram-cell.cap-bar-full {
    background-color: #fcecea;
    border-top: 2px solid #c0392b;
}

.timeline-booking-item {
    position: relative;
    border-radius: 3px;
    padding: 2px 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15,23,42,0.12);
    font-size: 0.58rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 20px;
    z-index: 4;
    border-left: 2px solid #cbd5f5;
    color: #1e293b;
    margin-top: 2px;
}
.timeline-booking-item.booking-slot-chat {
    border-left-color: #2196f3;
    background-color: #eaf3fe;
    color: #0f2944;
}
.timeline-booking-item.booking-slot-email {
    border-left-color: #9c27b0;
    background-color: #f6e9f8;
    color: #371642;
}
.timeline-booking-item.booking-slot-phone {
    border-left-color: #4caf50;
    background-color: #eef7ef;
    color: #1f3321;
}
.booking-line {
    display: block;
}
.booking-line.booking-name {
    font-weight: 600;
    color: #0f172a;
}
.booking-line.booking-time {
    font-weight: 400;
    color: #334155;
}

/* Slot Block Bars (for capacity blocks) */
.timeline-slot-block {
    position: relative;
    border-radius: 3px;
    border-left: 3px solid;
    background-color: #ffffff;
    padding: 4px 6px;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 3;
    min-height: 54px;
}
.timeline-slot-block .slot-line {
    display: block;
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.timeline-slot-block .slot-title {
    font-weight: 600;
    font-size: 0.74rem;
}
.timeline-slot-block .slot-time {
    color: rgba(15,23,42,0.75);
}
.timeline-slot-block .slot-details {
    color: rgba(15,23,42,0.6);
}
.timeline-slot-block.slot-block-compact .slot-line {
    display: none;
}
.timeline-slot-block:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
}
.timeline-booked-slot {
    min-height: 36px;
    margin-top: 6px;
}

.timeline-slot-multi-queue {
    background-color: #e6f4ff !important;
    border-left-color: #0ea5e9 !important;
}

/* Pending-confirmation bookings: dashed border + desaturated to distinguish from confirmed */
.timeline-booked-slot[data-booking-status="pending_confirmation"] {
    opacity: 0.75;
    border-left-style: dashed !important;
}
.timeline-booked-slot[data-booking-status="pending_confirmation"] .slot-time::after {
    content: ' ⏳';
}

.timeline-slot-multi-queue .slot-title {
    color: #075985 !important;
}

/* ── Slot resize handles ─────────────────────────────────────────────────── */
.slot-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.slot-resize-handle::before {
    content: '';
    width: 3px;
    height: 18px;
    background: rgba(0,0,0,0.22);
    border-radius: 2px;
}
.slot-resize-handle-left  { left: 2px;  cursor: w-resize; }
.slot-resize-handle-right { right: 2px; cursor: e-resize; }
.timeline-slot-bookable:hover .slot-resize-handle,
.timeline-slot-bookable.is-resizing .slot-resize-handle {
    opacity: 1;
}
.timeline-slot-bookable.is-resizing {
    box-shadow: 0 0 0 2px rgba(13,110,253,0.35), 0 2px 8px rgba(0,0,0,0.15);
    cursor: default;
}

/* ── Resize confirmation popover ─────────────────────────────────────────── */
.slot-resize-popover {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    min-width: 190px;
}
.slot-resize-popover .srp-time {
    font-size: 0.88rem;
}

/* ── Booking list view ───────────────────────────────────────────────────── */
#calendarListView .table th,
#calendarListView .table td {
    white-space: nowrap;
}
#calendarListView .blv-pq-cell {
    min-width: 240px;
}
#calendarListView .blv-summary-toggle:hover {
    color: var(--stroer-orange);
}
#calendarListView .blv-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    flex-shrink: 0;
    vertical-align: middle;
}
/* xs button size (Bootstrap 5 dropped btn-xs) */
.btn-xs {
    padding: 0.1rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.4;
    border-radius: 3px;
}

/* ── Booking popover ─────────────────────────────────────────────────────── */
.booking-popover {
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
}
.booking-popover__header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-radius: 8px 8px 0 0;
}
.booking-popover__footer {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-grid {
        font-size: 0.75rem;
    }
    .timeline-container {
        min-width: 800px; /* Reduced for mobile */
    }
    .timeline-header {
        grid-template-columns: 80px 120px repeat(48, minmax(24px, 1fr));
    }
    .timeline-project-row {
        grid-template-columns: 80px 120px 1fr;
        min-height: 40px;
    }
    .timeline-date-cell {
        padding: 6px 4px;
        font-size: 0.7rem;
        left: 0;
    }
    .timeline-project-label {
        padding: 6px 4px;
        font-size: 0.7rem;
        left: 80px;
    }
    .timeline-hour-label {
        padding: 4px 2px;
        font-size: 0.6rem;
    }
    .timeline-booking-item {
        font-size: 0.6rem;
    }
    .timeline-slot-block {
        font-size: 0.6rem;
        padding: 2px 3px;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .timeline-container {
        min-width: 600px;
    }
    .timeline-header {
        grid-template-columns: 70px 100px repeat(48, minmax(20px, 1fr));
    }
    .timeline-project-row {
        grid-template-columns: 70px 100px 1fr;
        min-height: 35px;
    }
    .timeline-date-cell {
        padding: 4px 2px;
        font-size: 0.65rem;
        left: 0;
    }
    .timeline-project-label {
        padding: 4px 2px;
        font-size: 0.65rem;
        left: 70px;
    }
}

/* Outlook-style Calendar Styling (keeping for compatibility) */
.calendar-outlook {
    display: flex;
    flex-direction: column;
    height: 600px;
    font-size: 13px;
}

.calendar-header {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.time-column-header {
    border-right: 1px solid #e0e0e0;
}

.day-header {
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    color: var(--stroer-blue);
    border-right: 1px solid #e0e0e0;
}

.day-header:last-child {
    border-right: none;
}

.calendar-body {
    display: flex;
    flex: 1;
    overflow-y: auto;
}

.time-column {
    width: 80px;
    border-right: 1px solid #e0e0e0;
    background: #fafafa;
}

.time-slot {
    height: calc(var(--slot-cell-height) * 2);
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: flex-start;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex: 1;
}

.day-column {
    border-right: 1px solid #e0e0e0;
    min-height: 100%;
}

.day-column:last-child {
    border-right: none;
}

.time-slot-cell {
    height: var(--slot-cell-height);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding: 1px;
}

.time-slot-cell:hover {
    background: rgba(255, 90, 16, 0.05);
    cursor: pointer;
}

/* Slot Blocks (Calendar Events) */
.slot-block {
    position: absolute;
    top: 1px;
    left: 2px;
    right: 2px;
    height: calc(var(--slot-cell-height) - 6px);
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    border-left: 3px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Slot Count Display */
.slot-count-display {
    position: absolute;
    top: 1px;
    left: 2px;
    right: 2px;
    height: calc(var(--slot-cell-height) - 6px);
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 11px;
    padding: 2px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    line-height: 1.2;
}

.slot-count-display:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--stroer-orange);
    transform: translateY(-1px);
}

.slot-count-number {
    font-weight: 600;
    color: var(--stroer-blue);
}

.slot-count-total {
    color: #6c757d;
}

.slot-count-display.count-full .slot-count-number {
    color: #dc3545;
}

.slot-count-display.count-empty .slot-count-number {
    color: #28a745;
}

.slot-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.slot-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-details {
    font-size: 10px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Full capacity styling */
.slot-block-full {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.slot-block-full .slot-details {
    font-weight: 600;
}

/* Long blocks that span multiple 30-min slots */
.slot-block-long {
    height: calc(var(--slot-cell-height) * 2 - 6px); /* 2 slots */
}

/* Drag and Drop Styling */
.slot-block[draggable="true"] {
    cursor: grab;
}

.slot-block.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    cursor: grabbing;
    z-index: 1000;
}

.time-slot-cell.drop-target {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
    transition: all 0.2s ease;
}

.time-slot-cell.drop-invalid {
    background-color: #ffebee;
    border: 2px dashed #f44336;
}

.time-slot-cell.drop-hover {
    background-color: #c8e6c9;
    border: 2px solid #4caf50;
}

.drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    transform: rotate(5deg);
    opacity: 0.8;
}

/* Slot Booking Cards */
.slot-block-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6 !important;
}

.slot-block-card:hover {
    border-color: var(--stroer-orange) !important;
    box-shadow: 0 4px 12px rgba(255, 90, 16, 0.15);
    transform: translateY(-2px);
}

.slot-block-card.border-primary {
    border-color: var(--stroer-blue) !important;
    box-shadow: 0 4px 16px rgba(8, 32, 74, 0.2);
}

.slot-block-card.bg-light {
    background-color: rgba(8, 32, 74, 0.05) !important;
}

/* Calendar hint bar */
.calendar-hint {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 6px 16px;
    background: rgba(248, 249, 250, 0.95);
    border-top: 1px solid #dee2e6;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
}


/* Side Panel Navigation */
.side-panel {
    position: fixed;
    top: 64px;
    left: 0;
    width: 64px;
    height: calc(100vh - 56px);
    background: #ffffff;
    z-index: 1045;
    transition: width 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    border-right: 1px solid #e9ecef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.side-panel.expanded {
    width: 280px;
}


.side-panel-content {
    flex: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.side-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 48px;
    position: relative;
    outline: none;
    border: none;
    cursor: pointer;
}

.side-nav-item:focus {
    outline: none;
    box-shadow: none;
}

.side-nav-item:hover {
    background-color: #f8f9fa;
    color: var(--stroer-orange);
    text-decoration: none;
}

.side-nav-item.active {
    background-color: var(--stroer-orange);
    color: white;
    border-left: 4px solid var(--stroer-blue);
}

.side-nav-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.side-nav-text {
    margin-left: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Collapsed state styles */
.side-panel:not(.expanded) .side-nav-text {
    opacity: 0;
    width: 0;
}

.side-panel:not(.expanded) .side-nav-item {
    justify-content: center;
    padding: 12px 8px;
}

.side-panel:not(.expanded) .side-nav-item i {
    margin: 0;
}

/* Tooltips for collapsed state */
.side-panel:not(.expanded) .side-nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 0.875rem;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.side-panel:not(.expanded) .side-nav-item:hover::before {
    content: '';
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0,0,0,0.9);
    z-index: 1000;
}

.side-nav-section {
    padding: 16px 20px 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    overflow: hidden;
}

.side-panel:not(.expanded) .side-nav-section {
    opacity: 0;
    height: 0;
    padding: 0;
}

/* Main Content Shift */
.main-content {
    margin-left: 64px;
    margin-top: 56px;
    transition: margin-left 0.3s ease;
    height: calc(100vh - 56px);
    overflow-x: hidden;
    overflow-y: auto;
}

.main-content.expanded {
    margin-left: 280px;
}

/* Panel Overlay (Mobile only) */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.panel-overlay.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Navbar */
.navbar {
    z-index: 1040;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white !important;
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--stroer-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hamburger-menu:hover {
    background-color: #f8f9fa;
    color: var(--stroer-orange);
}

/* Modal z-index fixes */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* Modal vertical scrolling */
.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}


/* Admin Page Styles */
.admin-page {
    padding: 20px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.admin-page h2 {
    color: var(--stroer-blue);
    border-bottom: 2px solid var(--stroer-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .side-panel {
        left: -280px;
        width: 280px;
        top: 56px;
    }

    .side-panel.mobile-open {
        left: 0;
    }

    .main-content {
        margin-left: 0 !important;
        margin-top: 56px !important;
    }

    .main-content.expanded {
        margin-left: 0 !important;
    }
}

/* Utility classes */
.text-stroer-orange  { color: var(--stroer-orange) !important; }
.text-stroer-blue    { color: var(--stroer-blue) !important; }
.bg-stroer-orange    { background-color: var(--stroer-orange) !important; }
.bg-stroer-blue      { background-color: var(--stroer-blue) !important; }
.border-stroer-orange { border-color: var(--stroer-orange) !important; }
.border-stroer-blue  { border-color: var(--stroer-blue) !important; }

/* Form focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--stroer-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 90, 16, 0.25);
    outline: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-outlook {
        height: 500px;
    }

    .calendar-header {
        grid-template-columns: 60px repeat(5, 1fr);
    }

    .time-column {
        width: 60px;
    }

    .time-slot {
        font-size: 10px;
        padding: 3px;
    }

    .slot-block {
        font-size: 10px;
    }
}
/* ── Slot Info Panel ────────────────────────────────────────────────────── */

.slot-info-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    background: #fff;
    border-left: 1px solid #dee2e6;
    box-shadow: -4px 0 16px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.slot-info-panel--visible {
    transform: translateX(0);
}

.slot-info-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .875rem 1rem .75rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.slot-info-panel__meta {
    padding: .5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.slot-info-panel__summary {
    padding: .75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.slot-info-panel__body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.slot-info-panel__footer {
    padding: .875rem 1rem;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
    background: #f8f9fa;
}

@media (max-width: 575.98px) {
    .slot-info-panel {
        width: 100vw;
    }
}
