/* =========================================
   HOTELIX MOBILE EXPERIENCE 📱
   =========================================
   Kompletna mobilna verzija za telefone
   Verzija: 1.0
   ========================================= */

/* ===== MOBILE HEADER (Hamburger) ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 1100;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-logo img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.mobile-header-logo span {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.hamburger-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.hamburger-btn:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.2);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hamburger animacija kada je otvoren */
body.mobile-menu-open .hamburger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.mobile-menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}
body.mobile-menu-open .hamburger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Quick Actions u header-u */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-header-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-header-btn:active {
    background: rgba(255,255,255,0.2);
}

/* ===== MOBILE SIDEBAR OVERLAY ===== */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.3s;
}

body.mobile-menu-open .mobile-sidebar-overlay {
    display: block;
    opacity: 1;
}

/* ===== MOBILE SIDEBAR ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 1300;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: 100px;
}

body.mobile-menu-open .mobile-sidebar {
    transform: translateX(0);
}

.mobile-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-sidebar-header .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sidebar-header img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.mobile-sidebar-header .title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.mobile-sidebar-close {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.mobile-sidebar-nav {
    padding: 16px 12px;
}

.mobile-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.mobile-nav-btn:active,
.mobile-nav-btn.active {
    background: var(--accent);
    color: #fff;
}

.mobile-nav-btn .icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 12px 0;
}

.mobile-nav-section-title {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px 8px;
}

/* ===== BOTTOM NAVIGATION BAR ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    z-index: 1100;
    padding: 8px 16px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.bottom-nav-btn .icon {
    font-size: 24px;
    line-height: 1;
}

.bottom-nav-btn.active {
    color: var(--accent);
}

.bottom-nav-btn.active .icon {
    transform: scale(1.1);
}

/* Central Add Button */
.bottom-nav-btn.add-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    min-width: 56px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(16,185,129,0.4);
    flex-direction: row;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-btn.add-btn svg {
    width: 26px;
    height: 26px;
}

.bottom-nav-btn.add-btn .icon,
.bottom-nav-btn.add-btn span:not(.icon) {
    display: none;
}

/* Badge na dugmetu */
.bottom-nav-btn .badge-count {
    position: absolute;
    top: 0;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===== MOBILE CALENDAR ENHANCEMENTS ===== */

/* Mobile Calendar Header - Date Navigator */
.mobile-calendar-header {
    display: none;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .mobile-calendar-header {
        display: block;
    }
}

.mobile-calendar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mobile-calendar-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.mobile-calendar-title .nav-btns {
    display: flex;
    gap: 8px;
}

.mobile-calendar-title .nav-btn {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-calendar-title .nav-btn:active {
    background: #e2e8f0;
}

/* Date Pills Horizontal Scroll */
.mobile-date-pills {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-date-pills::-webkit-scrollbar {
    display: none;
}

.mobile-date-pill {
    flex-shrink: 0;
    min-width: 52px;
    padding: 10px 8px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: center;
}

.mobile-date-pill:active {
    transform: scale(0.95);
}

.mobile-date-pill.today {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.mobile-date-pill.selected {
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-date-pill.has-reservation {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.mobile-date-pill.has-reservation.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mobile-date-pill .day-name {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mobile-date-pill.selected .day-name {
    color: rgba(255,255,255,0.8);
}

.mobile-date-pill .day-num {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.mobile-date-pill.selected .day-num {
    color: #fff;
}

/* Quick Stats Row */
.mobile-quick-stats {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .mobile-quick-stats {
        display: grid;
    }
    
    /* Sakrij desktop stats na mobilnom */
    .stats-grid {
        display: none !important;
    }
}

.mobile-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mobile-stat-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.mobile-stat-card .label {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.mobile-stat-card.green .value {
    color: #10b981;
}

.mobile-stat-card.orange .value {
    color: #f59e0b;
}

/* ===== MOBILE CALENDAR VIEW ===== */
.mobile-calendar-view {
    display: none;
}

/* Horizontalni scroll kalendar */
.mobile-calendar-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mobile-calendar-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-date-card {
    flex-shrink: 0;
    width: 70px;
    padding: 12px 8px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    scroll-snap-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.mobile-date-card.today {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.mobile-date-card.selected {
    background: var(--accent);
    color: #fff;
}

.mobile-date-card .day-name {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.mobile-date-card.selected .day-name {
    color: rgba(255,255,255,0.8);
}

.mobile-date-card .day-num {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.mobile-date-card .month {
    font-size: 10px;
    color: #94a3b8;
}

.mobile-date-card.selected .month {
    color: rgba(255,255,255,0.7);
}

/* Dots za rezervacije */
.mobile-date-card .res-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 6px;
}

.mobile-date-card .res-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.mobile-date-card.selected .res-dot {
    background: #fff;
}

/* ===== MOBILE ROOM LIST ===== */
.mobile-room-list {
    padding: 0 16px 16px;
}

.mobile-room-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-room-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mobile-room-card.occupied .mobile-room-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mobile-room-info {
    flex: 1;
}

.mobile-room-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.mobile-room-status {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.mobile-room-card.occupied .mobile-room-status {
    color: #10b981;
    font-weight: 600;
}

.mobile-room-guest {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    margin-top: 4px;
}

.mobile-room-action {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border: none;
    border-radius: 10px;
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
}

/* ===== MOBILE QUICK ADD MODAL ===== */
.mobile-quick-add {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 2000;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-quick-add.active {
    display: block;
    transform: translateY(0);
}

.mobile-quick-add-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.mobile-quick-add-overlay.active {
    display: block;
}

.mobile-quick-add-handle {
    width: 40px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 12px auto;
}

.mobile-quick-add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-quick-add-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.mobile-quick-add-close {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.mobile-quick-add-body {
    padding: 20px;
}

.mobile-form-group {
    margin-bottom: 16px;
}

.mobile-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.mobile-form-group input,
.mobile-form-group select,
.mobile-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px; /* Sprečava zoom na iOS */
    background: #f8fafc;
    transition: all 0.2s;
}

.mobile-form-group input:focus,
.mobile-form-group select:focus,
.mobile-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.mobile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Room Selection Pills */
.mobile-room-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-room-pill {
    padding: 10px 16px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-room-pill.selected {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-room-pill.occupied {
    background: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.6;
}

.mobile-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.mobile-submit-btn:active {
    transform: scale(0.98);
}

/* ===== MOBILE RESERVATION LIST ===== */
.mobile-res-list {
    padding: 16px;
}

.mobile-res-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #10b981;
}

.mobile-res-card.unpaid {
    border-left-color: #f59e0b;
}

.mobile-res-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mobile-res-guest {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.mobile-res-room {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.mobile-res-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.mobile-res-dates .arrow {
    color: #cbd5e1;
}

.mobile-res-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.mobile-res-price {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

.mobile-res-actions {
    display: flex;
    gap: 8px;
}

.mobile-res-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-res-action-btn.edit {
    background: #dbeafe;
    color: #2563eb;
}

.mobile-res-action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {
    /* Prikaži mobilne elemente */
    .mobile-header {
        display: flex;
    }
    
    .bottom-nav {
        display: block;
    }
    
    /* Sakrij desktop sidebar */
    .sidebar {
        display: none !important;
    }
    
    /* Prilagodi main content */
    .main {
        margin-left: 0 !important;
        padding-top: 76px !important; /* Header height + spacing */
        padding-bottom: 90px !important; /* Bottom nav height + spacing */
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Prilagodi kartice */
    .card {
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Kalendar kontrole */
    .calendar-controls {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .calendar-controls .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Kalendar tabela - horizontal scroll */
    .calendar-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .calendar-grid table {
        min-width: 800px;
    }
    
    .calendar-grid th {
        min-width: 70px;
        font-size: 10px;
        padding: 8px 4px;
    }
    
    .calendar-grid td {
        min-width: 70px;
        height: 45px;
        font-size: 10px;
    }
    
    .calendar-grid .room-name {
        min-width: 60px;
        font-size: 11px;
        padding-left: 8px;
    }
    
    /* Forma za rezervacije */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Sprečava zoom na iOS */
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    /* Arrivals/Departures grid */
    .ad-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px;
    }
    
    /* Tabele */
    .table-container {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    table th,
    table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Modali */
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-box,
    .modal-card {
        width: 100%;
        max-width: none;
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .modal-header,
    .modal-header-modern {
        padding: 16px;
    }
    
    .modal-body,
    .modal-body-modern {
        padding: 16px;
    }
    
    .modal-footer,
    .modal-footer-modern {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .modal-footer .btn,
    .modal-footer-modern .btn-modern {
        flex: 1 1 45%;
        padding: 12px;
    }
    
    /* Sakrij nepotrebne elemente */
    .page-controls-bar {
        display: none !important;
    }
    
    /* Sakrij Powered by footer na mobilnom - preklapa se sa bottom nav */
    #poweredByFooter {
        display: none !important;
    }
    
    /* Otvorene rezervacije kartice */
    .mobile-open-res-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    }
    
    .mobile-open-res-card:active {
        transform: scale(0.98);
    }
    
    /* Glass hover kartice - sakrij na mobilnom */
    .reservation-glass-card {
        display: none !important;
    }
    
    /* Filters */
    .filters {
        padding: 12px;
        gap: 8px;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
    
    /* Settings tabs */
    .settings-tabs {
        padding: 4px;
        gap: 2px;
    }
    
    .settings-tab {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    /* Toast notifications */
    .toast,
    .notification-toast {
        bottom: 90px !important; /* Above bottom nav */
        left: 16px !important;
        right: 16px !important;
        max-width: none !important;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .mobile-header {
        padding: 0 12px;
    }
    
    .hamburger-btn {
        width: 40px;
        height: 40px;
    }
    
    .bottom-nav-btn {
        padding: 6px 10px;
        font-size: 9px;
    }
    
    .bottom-nav-btn .icon {
        font-size: 20px;
    }
    
    .bottom-nav-btn.add-btn {
        width: 50px;
        height: 50px;
    }
    
    .mobile-date-card {
        width: 60px;
        padding: 10px 6px;
    }
    
    .mobile-date-card .day-num {
        font-size: 20px;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-header {
        height: 50px;
    }
    
    .bottom-nav {
        height: 60px;
    }
    
    .main {
        padding-top: 60px !important;
        padding-bottom: 70px !important;
    }
    
    .mobile-quick-add {
        max-height: 80vh;
    }
}

/* Safe area za iPhone X+ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .mobile-sidebar {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

/* ===== PULL TO REFRESH INDICATOR ===== */
.pull-to-refresh {
    display: none;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1050;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pull-to-refresh.active {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pull-to-refresh .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== DESKTOP MODE TOGGLE ===== */
/* Kada korisnik izabere desktop verziju na mobilnom */
body.force-desktop .mobile-header,
body.force-desktop .mobile-sidebar,
body.force-desktop .mobile-sidebar-overlay,
body.force-desktop .bottom-nav,
body.force-desktop .mobile-quick-add,
body.force-desktop .mobile-quick-add-overlay,
body.force-desktop .mobile-calendar-header,
body.force-desktop .mobile-quick-stats {
    display: none !important;
}

body.force-desktop .sidebar {
    display: flex !important;
    transform: translateX(0) !important;
}

body.force-desktop .main {
    margin-left: 240px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Floating dugme za povratak na mobile verziju */
.back-to-mobile-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 9999;
    transition: all 0.2s;
}

.back-to-mobile-btn:active {
    transform: scale(0.95);
}

body.force-desktop .back-to-mobile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== EMPTY STATE ===== */
.mobile-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.mobile-empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mobile-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.mobile-empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

.mobile-empty-state .btn {
    display: inline-flex;
}

