.ui-datepicker {
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#ui-datepicker-div {
  border-radius: 0;
  z-index: 2;
}

.ui-datepicker-next:hover,
.ui-datepicker-prev:hover {
  background: none;
  cursor: pointer;
}

.ui-datepicker-header {
  background: none;
  border: none;
  font-weight: normal;
}
.ui-datepicker-header .ui-datepicker-month {
  font-weight: bold;
}

.ui-datepicker-calendar a.ui-state-default {
  background: #f5f5f5;
  color: #000;
}
.ui-datepicker-calendar a.ui-state-hover {
  color: #fff;
}
.ui-datepicker-calendar a.ui-state-active {
  color: #fff;
}
.ui-datepicker-calendar .ui-state-disabled span.ui-state-disabled {
  background: #FAFAFA;
}
.ui-datepicker-calendar td a {
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  border: 0 !important;
}
.ui-datepicker-calendar td span {
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  border: 0 !important;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


/* Frondend Calendar Container Styling */
.quickcab-frontend-calendar-wrapper {
    min-height: 500px; /* Διασφαλίζει ότι το div δεν θα συμπτυχθεί στο μηδέν */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 20px 0;
}

/* Header & Buttons */

.fc-toolbar h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1e293b;
    text-transform: capitalize;
}

.fc-button {
    z-index: 1;
} 

.fc-button-primary {
    background-color: #1a3a5a !important; /* Ταυτίζεται με το μπλε του Support button σας */
    border: none !important;
    padding: 8px 16px !important;
    text-transform: capitalize !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.fc-button-primary:hover {
    background-color: #264b73 !important;
    transform: translateY(-1px);
}

.fc-button-active {
    background-color: #0d2137 !important;
}

/* Calendar Grid */
.fc-widget-header {
    background: #f8fafc;
    padding: 12px 0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.fc-day-header span {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.fc-today {
    background: #f0f7ff !important;
}

/* Events */
.fc-event {
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Tooltip (Tippy) Customization */
.tippy-box[data-theme~='custom'] {
    background-color: #1e293b;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.tippy-box[data-theme~='custom'] strong {
    color: #38bdf8;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .fc-toolbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .fc-left, .fc-right, .fc-center {
        display: block;
        margin: 0 auto !important;
        text-align: center;
    }
}

/* Responsive Fixes */
@media (max-width: 767px) {
    /* Κρύβουμε το DayGrid (κουτάκια) που δεν χωράει */
    .fc-dayGridMonth-button {
        display: none !important;
    }

    /* Σιγουρευόμαστε ότι τα κουμπιά της λίστας φαίνονται καλά */
    .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    /* Styling για τις λίστες ώστε να μοιάζουν με mobile app */
    .fc-list-view {
        border: none !important;
    }

    .fc-list-item {
        cursor: pointer;
    }

    .fc-list-item:hover td {
        background-color: #f8fafc !important;
    }

    .fc-list-heading td {
        background-color: #f1f5f9 !important;
        font-weight: 700 !important;
        color: #1a3a5a !important;
        border: none !important;
    }

    .fc-list-item-title {
        padding: 12px !important;
    }
}

/* Γενικό styling για τα κουμπιά των λιστών */
.fc-listMonth-button, .fc-listWeek-button {
    text-transform: capitalize !important;
}

/* Διασφάλιση ότι τα κουμπιά στο toolbar έχουν σωστή απόσταση */
.fc-button-group > .fc-button {
    margin: 0 2px !important;
    font-size: 0.85rem !important; /* Ελαφρώς μικρότερο font για να χωράνε τα Ελληνικά */
    white-space: nowrap;
}

/* Στα κινητά, επειδή κρύβουμε το DayGrid, κεντράρουμε τις λίστες */
@media (max-width: 767px) {
    .fc-right .fc-button-group {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .fc-button {
        flex: 1; /* Τα κουμπιά παίρνουν ίσο πλάτος στο κινητό */
    }
}

/* Login Form Styling */
.quickcab-login-wrapper {
    font-family: inherit;
    color: #1e293b;
}

#quickcab-loginform p {
    margin-bottom: 15px;
    text-align: left; /* Στοίχιση labels στα αριστερά */
}

#quickcab-loginform label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #64748b;
}

#quickcab-loginform input[type="text"],
#quickcab-loginform input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box; /* Διασφαλίζει ότι δεν ξεφεύγει από το div */
}

#quickcab-loginform input[type="text"]:focus,
#quickcab-loginform input[type="password"]:focus {
    border-color: #1a3a5a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 90, 0.1);
}

#quickcab-loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

#quickcab-loginform .login-remember label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

#quickcab-loginform #wp-submit {
    width: 100%;
    background-color: #1a3a5a !important; /* Το μπλε του Taxi Thessaloniki */
    color: #fff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#quickcab-loginform #wp-submit:hover {
    background-color: #264b73 !important;
}

/* Προσαρμογή για μικρές οθόνες */
@media (max-width: 480px) {
    .quickcab-login-wrapper {
        width: 90% !important;
        padding: 20px !important;
    }
}