/* Main CSS - Essential Global Styles */

/* ===== CSS VARIABLES ===== */
:root {
    --easybook-main-colour: rgb(55, 81, 126);
    --easybook-main-colour-alpha: rgb(55, 81, 126, 0.9);
    --bs-primary-rgb: 55, 81, 126;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 33, 37, 41;
    --easybook-main-text-color: #ffffff;
    --profile-img-size: 100px;
}

/* ===== GLOBAL UTILITIES ===== */
.cursor-pointer {
    cursor: pointer;
}

.full-width {
    width: 100%;
}

/* ===== HEADER STYLES ===== */
#header .logo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: white;
    font-size: 30px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 2px;
    height: 40px;
    align-content: center;
}

/* ===== PROFILE IMAGE ===== */
img.profile-img {
    width: var(--profile-img-size);
    height: var(--profile-img-size);
    object-fit: cover;
    border-radius: 50%;
}

/* ===== CARD STYLES ===== */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.75rem;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    }

.list-group-item {
    transition: background-color 0.2s;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.5rem;
}

/* ===== ALERT STYLES ===== */
.alert-danger {
    background-color: #fff5f5;
    border-color: #ffe3e3;
}

/* ===== BUTTON STYLES ===== */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    background-color: transparent !important;
    background-image: none !important;
}

.btn.active {
    background-color: var(--bs-btn-active-bg) !important;
    border-color: var(--bs-btn-active-border-color) !important;
}

.btn:hover {
    color: black !important;
}

.filter-btn:not(.active) {
    background-color: transparent !important;
}

/* ===== CALENDAR STYLES ===== */
#calendar > div.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
    flex-wrap: wrap;
    font-size: 12px;
}

/* ===== APPOINTMENT CARD STYLES ===== */
.my-appointment-card {
    max-width: 350px;
    min-width: 325px;
}

.my-appointment-card-wrapper {
    padding: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */
.navbar-mobile a, .navbar-mobile {
    color: black;
}

@media (max-width: 768px) {
    #header .logo {
        font-size: 24px;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    }
}

@media (max-width: 576px) {
    #header .logo {
        font-size: 20px;
    }
}

/* Secret Backend User Access Button */
.backend-user-secret-btn {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.backend-user-secret-btn:hover {
    opacity: 0.3;
    width: 8px;
    height: 8px;
    background: rgba(47, 128, 237, 0.3);
}

.backend-user-secret-btn:active {
    opacity: 0.5;
    background: rgba(47, 128, 237, 0.5);
}

/* Alternative: Small invisible area that expands on hover */
.backend-user-secret-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    z-index: 9999;
    cursor: pointer;
}

.backend-user-secret-area::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 2px;
    height: 2px;
    background: rgba(47, 128, 237, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.backend-user-secret-area:hover::before {
    width: 6px;
    height: 6px;
    background: rgba(47, 128, 237, 0.4);
}