/* Schedule Page Custom Styles */
.schedule-page {
    background: #fdfdfd;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
    width: 70%;
    /* Đồng bộ với .search-line */
}

.custom-select .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.custom-select .select-trigger span:first-child {
    font-weight: 500;
}

.custom-select .select-menu {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    display: none;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.custom-select.is-open .select-menu {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.custom-select .select-menu li {
    padding: 12px 30px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select .select-menu li:hover {
    background: #f4f8ec;
    color: #095540;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hotline Banner */
.hl-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #095540 0%, #0d6e53 100%);
    padding: 25px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(9, 85, 64, 0.15);
    color: #fff;
    gap: 25px;
}

.hl-icon-wrap {
    width: 60px;
    height: 60px;
    background: #CFE38B;
    color: #095540;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(203, 224, 130, 0.4);
}

@keyframes phoneRingAnimation {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.hl-icon-wrap i {
    animation: phoneRingAnimation 1.5s ease-in-out infinite;
    transform-origin: center center;
}

.hl-content {
    display: flex;
    flex-direction: column;
}

.hl-title {
    font-size: 16px;
    font-weight: 700;
    color: #CFE38B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hl-title small {
    font-size: 13px;
    font-weight: 400;
    color: #a7c7bd;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 5px;
}

.hl-number {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Schedule List layout replacing Table */
.schedule-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.sc-card {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 24px;

    background: #ffffff;
    border-radius: 16px;
    padding: 25px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f3f1;
    transition: all 0.3s ease;
}

.sc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(9, 85, 64, 0.08);
    border-color: #CFE38B;
}

.sc-doctor {
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #CFE38B;
    padding: 3px;
    flex-shrink: 0;
}

.sc-info strong {
    display: block;
    font-size: 18px;
    color: #095540;
    margin-bottom: 5px;
    font-weight: 800;
}

.sc-info p {
    margin: 0;
    font-size: 14px;
    color: #77847c;
    font-weight: 400;
}

.sc-detail {
    grid-column: span 3;
    display: flex;
    justify-content: center;
}

.sc-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sc-label {
    font-size: 12px;
    color: #8fa098;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.sc-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;

    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: left;
}

.sc-action {
    grid-column: span 3;
    display: flex;
    justify-content: flex-end;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: #CFE38B;
    color: #095540;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.sc-btn:hover {
    background: #095540;
    color: #fff;
}

@media screen and (max-width: 991px) {
    .sc-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .sc-doctor {
        flex: 1 1 auto;
    }

    .sc-detail {
        width: 100%;
        flex: none;
        gap: 15px;
        flex-direction: column;
        padding-left: 80px;
    }

    .sc-col {
        width: 100%;
        align-items: flex-start;
    }

    .sc-action {
        width: 100%;
        flex: none;
    }

    .sc-btn {
        width: 100%;
    }

    .custom-select {
        width: 100%;
    }

    .hl-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 15px;
    }

    .hl-title small {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Custom Action Sheet cho Hotline */
.custom-action-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.custom-action-sheet.active {
    display: block;
}

.cas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.cas-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUpCas 0.3s ease-out;
}

@keyframes slideUpCas {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cas-buttons {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cas-btn {
    padding: 16px;
    text-align: center;
    font-size: 18px;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
}

.cas-buttons .cas-btn {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cas-buttons .cas-btn:last-child {
    border-bottom: none;
}

.cas-btn-primary {
    color: #007aff;
}

.cas-btn-cancel {
    background: #fff;
    border-radius: 14px;
    color: #ff3b30;
    font-weight: 600;
}

/* Desktop Only Banner */
.hl-desktop-only {
    display: none;
}

.hl-mobile-only {
    display: flex;
}

.hl-zalo-desktop-btn {
    background: #fff;
    color: #095540;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hl-zalo-desktop-btn:hover {
    background: #CFE38B;
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .hl-desktop-only {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hl-mobile-only {
        display: none;
    }

    /* Disable Custom Action Sheet on Desktop */
    .custom-action-sheet {
        display: none !important;
    }
}