﻿/* 파일 경로: G:\지금개발중\Source_Import\SimriCare24\SimriCare24\wwwroot\css\pages\index.css */

/* === 전체 스타일시트 === */
.msld2 .swiper-slide {
    position: relative;
}

.banner-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.taro_btn {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

    .taro_btn .fnav {
        text-align: center;
        width: auto;
    }

        .taro_btn .fnav ul {
            background: #e9ecef;
            border-radius: 25px;
            padding: 5px;
            display: inline-flex;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
        }

        .taro_btn .fnav li {
            width: auto;
            margin: 0;
        }

            .taro_btn .fnav li a {
                background: none;
                border: none;
                border-radius: 20px;
                color: #555;
                cursor: pointer;
                display: block;
                font-size: 1.6rem;
                font-weight: 500;
                letter-spacing: -0.5px;
                line-height: 1.2;
                margin: 0;
                padding: 10px 25px;
                position: relative;
                text-align: center;
                transition: all 0.3s ease-in-out;
                white-space: nowrap;
            }

                .taro_btn .fnav li a.active, .taro_btn .fnav li a.reservation-alert-tab.active {
                    background: #ffffff;
                    color: #7d429a;
                    font-weight: bold;
                    box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04);
                    transform: scale(1.05);
                }

.search-wrapper {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-input-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#counselor-search-input {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    font-size: 1.5rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    #counselor-search-input:focus {
        border-color: #7d429a;
        box-shadow: 0 0 0 3px rgba(125, 66, 154, 0.15);
        outline: none;
    }

.search-input-container::before {
    content: '\e97a'; /* xeicon search 아이콘 */
    font-family: 'xeicon' !important;
    position: absolute;
    left: 15px;
    font-size: 1.8rem;
    color: #adb5bd;
}

.search-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#counselor-search-button, #counselor-search-reset-button {
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#counselor-search-button {
    background-color: #7d429a;
}

    #counselor-search-button:hover {
        background-color: #5e3079;
    }

    #counselor-search-button:active {
        transform: scale(0.98);
    }

#counselor-search-reset-button {
    background-color: #6c757d;
}

    #counselor-search-reset-button:hover {
        background-color: #5a6268;
    }

    #counselor-search-reset-button:active {
        transform: scale(0.98);
    }


.teacher_list ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -4px;
    justify-content: flex-start;
}

.teacher_list li {
    box-sizing: border-box;
    flex: 0 0 25%;
    margin: 0;
    display: flex;
    min-width: 0;
    padding: 4px;
}

    .teacher_list li[data-status="0"] .box {
        background-color: #fdf5e6;
        border-color: #e6ddc9;
    }

.box {
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 15px;
    padding: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
    overflow: hidden;
}

    .box:hover {
        transform: translateY(-5px);
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    }

    .box .tname {
        margin-bottom: 8px;
        font-size: 1.7rem;
        font-weight: 500;
        text-align: center;
    }

.thumb {
    text-align: center;
}

    .thumb .img-frame {
        position: relative;
        display: block;
        width: 160px;
        height: 200px;
        border-radius: 5%;
        border: 4px solid #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        overflow: hidden;
        margin: 0 auto 10px auto;
    }

        .thumb .img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.photo-status-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    transition: background-color 0.3s;
    z-index: 10;
}

    .photo-status-banner.ready {
        background-color: rgba(20, 117, 119, 0.8);
    }

    .photo-status-banner.on {
        background: linear-gradient(45deg, rgba(217, 30, 24, 0.85), rgba(192, 57, 43, 0.9));
    }

    .photo-status-banner.appointment-alert {
        background-color: rgba(255, 140, 0, 0.85);
    }

.tdesc {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: center;
    padding: 8px 15px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-style: italic;
    font-size: 1.3rem;
    color: #555;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.call-buttons {
    margin-top: 10px;
    text-align: center;
}

.call-btn, .appointment-alert-btn, .unsubscribe-btn {
    border: none;
    color: white;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, opacity 0.3s;
}

    .call-btn.postpaid-purple {
        background-color: #7d429a;
    }

    .call-btn.prepaid-blue {
        background-color: #007bff;
    }

.appointment-alert-btn {
    background-color: #ff8c00;
    color: white;
}

.unsubscribe-btn {
    background-color: #6c757d;
    color: white;
}

.box .review {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.9em;
    color: #555;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fitem-content {
    display: none;
}

    .fitem-content.active {
        display: block;
    }

.call-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.tname-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.box .tname {
    transition: background-color 0.2s ease-in-out;
}

.tname-link:hover .tname {
    background-color: #f0f0f0;
}

@media (max-width: 1024px) {
    .teacher_list li {
        flex-basis: 33.333%;
    }
}

@media (max-width: 768px) {
    .teacher_list li {
        flex-basis: 50%;
    }
}

@media (max-width: 480px) {
    .teacher_list li {
        flex-basis: 100%;
    }
}

/* =========================================
   로딩 버튼 스타일
   ========================================= */
.call-btn.is-loading, .appointment-alert-btn.is-loading, .unsubscribe-btn.is-loading {
    color: transparent !important; /* 기존 텍스트 숨기기 */
    pointer-events: none;
    position: relative;
}

    .call-btn.is-loading::after, .appointment-alert-btn.is-loading::after, .unsubscribe-btn.is-loading::after {
        content: '';
        display: block;
        position: absolute;
        width: 16px;
        height: 16px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid rgba(255, 255, 255, 0.5);
        border-top-color: white;
        border-radius: 50%;
        animation: button-loading-spinner 1s ease infinite;
    }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* =========================================
   토스트 알림 메시지 스타일
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: -100px; /* 처음에는 화면 아래에 숨김 */
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
}

    .toast-notification.show {
        opacity: 1;
        bottom: 20px; /* 화면에 나타날 때의 위치 */
    }

    .toast-notification.success {
        background-color: #28a745; /* 초록색 */
    }

    .toast-notification.error {
        background-color: #dc3545; /* 빨간색 */
    }

    .toast-notification.info {
        background-color: #17a2b8; /* 청록색 */
    }
