/* ============================================
   SEARCH CONTAINER STYLES
   ============================================ */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-container h4 {
    margin: 0;
    flex: 1;
}

/* Search Toggle Button */
.search-toggle-btn {
    background: #0c5fb2;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 140, 211, 0.3);
}

.search-toggle-btn:hover {
    background: #0c5fb2;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgb(97, 147, 198);
}

.search-toggle-btn:active {
    transform: scale(0.95);
}

/* Search Input Hidden State */
.search-input-hidden {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.4s ease;
    pointer-events: none;
    overflow: hidden;
    z-index: 10; /* Ensure search input is above other elements */
}

/* Search Input Visible State */
.search-input-visible {
    width: calc(100% - 60px); /* Full width minus button space */
    opacity: 1;
    pointer-events: auto;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input-visible {
        width: calc(100% - 60px);
    }
}

@media (max-width: 480px) {
    .search-input-visible {
        width: calc(100% - 60px);
    }
}


/* Doctor Leave Slider Styles */
.doctor-leave-box {
    background-color: #f8e8e8;
    border-left: 4px solid #C80101FF;
    padding: 6px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doctor-leave-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.doctor-leave-header i {
    color: #C80101FF;
    font-size: 20px;
    margin-right: 10px;
}

.doctor-leave-header strong {
    color: #C80101FF;
    font-size: 14px;
    font-weight: bold;
    display: block;
}

.doctor-leave-nav {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 20;
}

.doctor-leave-nav button {
    background: rgb(253, 253, 253);
    border: 1px solid #c70101;
    color: #c70101;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    flex-shrink: 0;
}

.doctor-leave-nav button:hover {
    background: #c70101;
    color: white;
    transform: scale(1.1);
}

.doctor-leave-nav button:active {
    transform: scale(0.95);
    background: #a00000;
}

.doctor-leave-content {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    touch-action: pan-y;
    user-select: none;
}

.doctor-leave-slides-container {
    display: flex;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex: 1;
    min-width: 0;
}

.doctor-leave-slide {
    min-width: 100%;
    flex-shrink: 0;
    color: #000000;
    text-align: center;
}

.doctor-leave-slide .doctor-name {
    font-size: 15px;
    font-weight: 600;
}

.doctor-leave-slide .doctor-info {
    font-size: 13px;
    opacity: 0.9;
}

.doctor-leave-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.doctor-leave-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-leave-dot.active {
    background: #C80101FF;
    width: 20px;
    border-radius: 4px;
}


/* Info Jam Besuk Styling */
.info-box {
    background-color: #e8f4f8;
    border-left: 4px solid #0066cc;
    padding: 6px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-box-content {
    display: flex;
    align-items: center;
}

.info-box-icon {
    color: #0066cc;
    font-size: 20px;
    margin-right: 10px;
}

.info-box-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.info-box-title {
    color: #0066cc;
    font-size: 14px;
    font-weight: bold;
    display: block;
}

.info-box-details {
    color: #333;
    font-size: 13px;
}

.info-box-details span {
    margin-right: 15px;
}

/* ============================================
   CUSTOM RADIO BUTTON STYLES
   ============================================ */

input[type=radio] {
    --s: 1em;     /* control the size */
    --c: #0e6eb2; /* the active color */

    height: var(--s);
    aspect-ratio: 1;
    border: calc(var(--s)/8) solid #939393;
    padding: calc(var(--s)/8);
    background:
        radial-gradient(farthest-side,var(--c) 94%,#0000)
        50%/0 0 no-repeat content-box;
    border-radius: 50%;
    outline-offset: calc(var(--s)/10);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    font-size: inherit;
    transition: .3s;
}

input[type=radio]:checked {
    border-color: var(--c);
    background-size: 100% 100%;
}
/* ============================================
input[type=radio]:disabled {
    background-image: linear-gradient(#939393, #939393);
    background-position: 50%;
    background-size: 100% 20%;
    background-repeat: no-repeat;
    background-clip: content-box;
    opacity: .5;
    cursor: not-allowed;
}
   CUSTOM RADIO BUTTON STYLES
@media print {
    input[type=radio] {
        -webkit-appearance: auto;
        -moz-appearance: auto;
        appearance: auto;
        background: none;
    }
}

/* Radio button label styling */
label.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    cursor: pointer;
    font-size: 14px;
}
/*   ============================================ */

input[type=radio] {
    --s: 1em;     /* control the size */
    --c: #0c5eb1; /* the active color */

    height: var(--s);
    aspect-ratio: 1;
    border: calc(var(--s)/8) solid #939393;
    padding: calc(var(--s)/8);
    background:
        radial-gradient(farthest-side,var(--c) 94%,#0000)
        50%/0 0 no-repeat content-box;
    border-radius: 50%;
    outline-offset: calc(var(--s)/10);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    font-size: inherit;
    transition: .3s;
}

input[type=radio]:checked {
    border-color: var(--c);
    background-size: 100% 100%;
}

input[type=radio]:disabled {
    background:
        linear-gradient(#939393, #939393)
        50%/100% 20% no-repeat content-box;
    opacity: .5;
    cursor: not-allowed;
}

@media print {
    input[type=radio] {
        -webkit-appearance: auto;
        -moz-appearance: auto;
        appearance: auto;
        background: none;
    }
}

/* Radio button label styling */
label.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    cursor: pointer;
    font-size: 14px;
}
