/*html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}*/

/*body {
    min-height: 100vh;
    background: #f8f9fa;
}*/
/* Make body responsive */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}
.sidebar {
    min-height: 100vh;
    background: #343a40;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.sidebar-top {
    flex-basis: 35%;
    flex-shrink: 0;
    flex-grow: 0;
    min-height: 0;
}
.sidebar-bottom {
    flex-basis: 65%;
    flex-shrink: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.sidebar .nav-link {
    color: #adb5bd;
}
.sidebar .nav-link.active, .sidebar .nav-link:hover {
    color: #fff;
    background: #495057;
}
.welcome-content {
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    /*height: 100vh;*/
}
.main-content {
    flex: 1;
}
/*@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
        height: auto;
    }
    .welcome-content {
        height: auto;
        padding: 2rem 0;
    }
}*/
/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 10px;
    }
    .sidebar {
        min-height: auto;
        height: auto;
    }
    .welcome-content {
        height: auto;
        padding: 2rem 0;
    }
}
.selected {
    background-color: #495057 !important;
    color: #fff !important;
}
.selected:hover {
    background-color: #495057 !important;
    color: #fff !important;
}
/* Shop card styles moved to shop_card_styles.css for modern design */
/* 
.shop-card {
    transition: transform 0.2s;
}
.shop-card:hover {
    transform: scale(1.02);
    background-color: #595e62 !important;
    color: #fff !important;
}
*/
.buttonselected:hover {
    background-color: #dbdbdb !important;
    color: #fff !important;
}
/* Shop card selected styles moved to shop_card_styles.css for modern design */
/*
.shop-card.selected,
.shop-card.selected .card-footer,
.shop-card.selected .card-body {
    background-color: rgb(195, 27, 27) !important;
}
.shop-card.selected .card-footer {
    background-color: white !important;
}
*/
/*calendar*/
/* Slot height is now dynamically controlled by JavaScript - see select_page.php */
/* Set a fixed height for the time slots */
#calendar {
 /* min-height: 600px;*/
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
}
/* Lower the toolbar text size */
.fc-toolbar-title,
.fc-toolbar-chunk,
.fc-button {
  font-size: 0.9rem !important;
}

.fc-event-title, .fc-event-main {
    font-size: 0.7em !important;
    line-height: 1.3;
    white-space: pre-wrap !important; /* Povolí zalomenie len pre dlhé texty a rešpektuje \n */
    overflow: visible !important; /* Umožní zobrazenie zalomeného textu */
    word-wrap: break-word; /* Zalomí dlhé slová */
    /*padding: 1px 2px !important; /* Malý padding pre lepšie rozloženie */
}

/* Dynamické prispôsobenie výšky v rámci slotu */
.fc-event {
    height: auto !important; /* Povolí dynamickú výšku */
    min-height: 100% !important; /* Zachová minimálnu výšku slotu */
    padding: 1px !important; /* Vnútorný priestor */
    box-sizing: border-box !important;
}

.fc-event .fc-event-main-frame {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Hover pointer pre voľné sloty */
.fc-event[data-status="available"] {
    cursor: pointer !important;
}

.fc-event[data-status="available"]:hover {
    cursor: pointer !important;
    opacity: 0.9 !important;
    transform: scale(1.02) !important;
    transition: all 0.2s ease !important;
}

/* Všeobecný cursor pointer pre klikateľné eventy */
.fc-event {
    cursor: pointer !important;
}

.fc-event:hover {
    cursor: pointer !important;
}

/* Štýly pre back button a selected shop */
.back-to-shops-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.back-to-shops-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.selected-shop-only .shop-card {
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    border: 2px solid #007bff;
    transform: none;
}

.selected-shop-only .shop-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
}