/* ============================================
   Dashboard - Optimalizované CSS styly
   ============================================ */

/* === LAYOUT WRAPPER === */
.dashboard-wrapper {
    max-width: 400px;
    margin: 1.5rem auto 1.2rem auto;
    padding: 0;
    background: none;
}

/* === OZNÁMENÍ SEKCE === */
.notifications-section {
    margin-bottom: 1.5rem;
}

.notifications-header {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 1rem;
}

.notification-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 0.7rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-date {
    color: #F6384E;
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-message {
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

/* === STORIES / MEDIA SEKCE === */
.stories-section {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.story-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2px;
}

.story-upload-inner {
    width: 100%;
    height: 100%;
    background: #131517;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-upload-circle {
    width: 56px;
    height: 56px;
    background: #131517;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #131517;
    position: relative;
}

.story-upload-icon-wrapper {
    width: 38px;
    height: 38px;
    background: #131517;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-upload-icon {
    color: white;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 31px;
    text-align: center;
    display: block;
    width: 100%;
    height: 100%;
}

.stories-preview {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.story-item {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #515151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-item img,
.story-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === VOLNÉ SMĚNY TLAČÍTKO === */
.free-shifts-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.free-shifts-counter {
    margin-left: auto;
    background: #F6384E;
    color: #fff;
    border-radius: 1rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.8em;
    font-weight: 600;
    min-width: 2em;
    text-align: center;
}

/* === PRÁZDNÝ STAV === */
.empty-state {
    background: #222;
    border: 1px solid #333;
    border-radius: 0.7rem;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.empty-state-icon {
    color: #F6384E;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.empty-state-text {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

/* === ZRUŠENÉ REZERVACE INFO === */
.cancelled-reservations-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.cancelled-reservations-info i {
    color: #6b7280;
    font-size: 0.9rem;
}

.cancelled-reservations-info strong {
    color: #fff;
    font-weight: 700;
}

/* === REZERVACE KARTY === */
.calendar-reservations-modern {
    margin-top: 10px;
}

.reservation-card {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: visible;
}

.reservation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Barevné varianty pozadí karty */
.reservation-card--orange { background: #fef3c7; }
.reservation-card--green { background: #d1fae5; }
.reservation-card--red { background: #fee2e2; }
.reservation-card--default { background: #f3f4f6; }



.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reservation-time-wrapper {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reservation-time {
    background: #6b7280;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.reservation-duration {
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

/* Délka barevné varianty */
.reservation-duration--30 { background: #059669; }
.reservation-duration--60 { background: #2563eb; }
.reservation-duration--90 { background: #a21caf; }
.reservation-duration--120 { background: #f59e42; }
.reservation-duration--over { background: #dc2626; }

.reservation-whole-day {
    background: #6b7280;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.reservation-branch-badge {
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.reservation-branch-badge--andel { background: #2563eb; }
.reservation-branch-badge--vinohradska { background: #a21caf; }
.reservation-branch-badge--vrsovice { background: #059669; }
.reservation-branch-badge--other { background: #64748b; }

.reservation-title-section {
    margin-bottom: 8px;
}

.reservation-title {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.reservation-badges {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.reservation-badges-inner {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    min-height: 28px;
}

/* Badge styly */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 12px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    color: #fff;
}

.badge--review { background: #F6384E; }
.badge--2girls { background: #F6384E; }
.badge--2kam { background: #2563eb; }
.badge--3kam { background: #a21caf; }
.badge--4kam { background: #059669; }
.badge--outcall { background: #8b5cf6; }
.badge--chocolate { background: #7c2d12; }
.badge--milking { background: #be185d; }

/* === DRAWER - DETAIL REZERVACE === */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, visibility;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.reservation-drawer {
    position: fixed;
    bottom: -100vh;
    left: 0;
    right: 0;
    width: 100%;
    height: 80vh;
    background: #131517;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-radius: 20px 20px 0 0;
    will-change: transform;
    border: 1px solid #333;
}

.reservation-drawer.open {
    transform: translateY(-100vh);
}

.drawer-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #F6384E;
    border-radius: 2px;
}

.drawer-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #131517 0%, #1a1d21 100%);
    position: relative;
}

.drawer-title-section {
    flex: 1;
    margin-right: 16px;
}

.drawer-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.drawer-subtitle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-badge,
.pobocka-badge {
    background: #F6384E;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pobocka-badge {
    background: #2563eb;
}

.drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.drawer-close:hover {
    color: #fff;
}

.drawer-content {
    padding: 24px;
    background: #131517;
    flex: 1;
    overflow-y: auto;
}

.reservation-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section,
.badges-section {
    background: #1a1d21;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a2a2a;
}

.section-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #F6384E;
    font-size: 0.9rem;
}

.detail-grid {
    display: grid;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 80px;
}

.detail-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: 16px;
}

.title-value {
    font-weight: 700;
    color: #f3f4f6;
    text-align: left;
}

.duration-highlight {
    background: #F6384E;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.reservation-detail-badge {
    background: #2a2a2a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border: 1px solid #3a3a3a;
    transition: all 0.2s ease;
    min-height: 36px;
}

.reservation-detail-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reservation-detail-badge i {
    font-size: 0.9rem;
}

.duration-badge {
    background: #F6384E;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 8px;
}

/* === SCROLL LOCK === */
html.no-scroll,
body.no-scroll {
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
}

/* === DETAIL INFO TEXTY (LEGACY PODPORA) === */
.reservation-detail-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.reservation-detail-info {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.reservation-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
