/* 메인 스타일시트 */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

#app {
    padding-top: 20px;
    padding-bottom: 20px;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.form-signin {
    max-width: 400px;
    padding: 15px;
    margin: auto;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.modal-header {
    background-color: #007bff;
    color: white;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.status-badge {
    font-size: 0.9em;
}

.status-available { background-color: #28a745; }
.status-pending { background-color: #ffc107; color: #212529 !important; }
.status-assigned { background-color: #17a2b8; }
.status-approved { background-color: #28a745; }
.status-rejected { background-color: #dc3545; }

/* 프로그레스 바 스타일 */
.progress {
    background-color: #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    min-width: 0;
}

#barOur {
    width: 15% !important;
}

/* 무료 프로그램 이벤트 섹션 스타일 */
#tasksSection .card-body h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
}

#tasksSection .text-muted.small {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d !important;
    margin-bottom: 1.5rem;
}

#tasksSection .border.rounded {
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

#tasksSection .border.rounded:hover {
    border-color: #007bff !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

#tasksSection .fw-semibold {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

#tasksSection .text-muted.small.mb-2 {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d !important;
    margin-bottom: 1rem;
}

#tasksSection ul.small {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1.5rem;
}

#tasksSection ul.small li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

#tasksSection .btn-primary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#tasksSection .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#ctaHelp {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

#ctaFeedback {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
    #tasksSection .card-body h4 {
        font-size: 1.3rem;
    }
    
    #tasksSection .fw-semibold {
        font-size: 1.15rem;
    }
    
    #tasksSection .text-muted.small {
        font-size: 0.95rem;
    }
    
    #tasksSection ul.small {
        font-size: 0.9rem;
    }
    
    #tasksSection .btn-primary {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}

/* ===== Chat thread (admin session detail) ===== */
.chat-thread {
    max-height: 50vh;
    overflow: auto;
    background: #f5f7fb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e9f2;
}

.chat-msg {
    display: flex;
    margin: 8px 0;
}

.chat-msg.user {
    justify-content: flex-end;
}

.chat-msg.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.chat-bubble.user {
    background: #0d6efd;
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-bubble.bot {
    background: #ffffff;
    color: #212529;
    border-top-left-radius: 4px;
}

.chat-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-meta {
    margin-top: 6px;
}
