/* ==========================================================================
   Circle Leadership Profile 360 - CSS Stylesheet
   Chuẩn Thiết Kế 360 CORP & VuaHeThong (Mobile-First & Pixel-Perfect)
   ========================================================================== */

:root {
    --c360-primary: #0077cd;
    --c360-secondary: #00ce2c;
    --c360-dark: #0f172a;
    --c360-slate: #1e293b;
    --c360-danger: #ef4444;
    --c360-warning: #f59e0b;
    --c360-bg: #f8fafc;
}

body {
    background-color: var(--c360-bg);
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.circle-portal-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   HEADER RESPONSIVE
   ========================================================================== */
.circle-header {
    background: linear-gradient(135deg, #005299 0%, #0077cd 50%, #00a86b 100%);
    border-bottom: 3px solid var(--c360-secondary);
    padding: 1.25rem 0;
}

.circle-header h1.header-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0.25rem 0;
}

.circle-header .header-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.text-light-opacity {
    color: rgba(255, 255, 255, 0.9);
}

.max-w-700 {
    max-width: 700px;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.circle-card-box {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   ĐẶC TRƯNG MÀU SẮC RIÊNG BIỆT CHO 8 CHIỀU KÍCH (KHẢO SÁT & HEADER SECTION)
   ========================================================================== */
.dim-card-complying {
    border-left: 6px solid #ca8a04 !important;
}
.dim-header-complying {
    background: linear-gradient(135deg, #fef08a 0%, #fef9c3 100%) !important;
    border-bottom: 1px solid #fde047 !important;
}
.dim-title-complying {
    color: #a16207 !important;
}

.dim-card-protecting {
    border-left: 6px solid #ea580c !important;
}
.dim-header-protecting {
    background: linear-gradient(135deg, #fed7aa 0%, #ffedd5 100%) !important;
    border-bottom: 1px solid #fdba74 !important;
}
.dim-title-protecting {
    color: #c2410c !important;
}

.dim-card-controlling {
    border-left: 6px solid #dc2626 !important;
}
.dim-header-controlling {
    background: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%) !important;
    border-bottom: 1px solid #fca5a5 !important;
}
.dim-title-controlling {
    color: #b91c1c !important;
}

.dim-card-relating {
    border-left: 6px solid #0284c7 !important;
}
.dim-header-relating {
    background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 100%) !important;
    border-bottom: 1px solid #7dd3fc !important;
}
.dim-title-relating {
    color: #0369a1 !important;
}

.dim-card-self_awareness {
    border-left: 6px solid #4f46e5 !important;
}
.dim-header-self_awareness {
    background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%) !important;
    border-bottom: 1px solid #a5b4fc !important;
}
.dim-title-self_awareness {
    color: #3730a3 !important;
}

.dim-card-authenticity {
    border-left: 6px solid #9333ea !important;
}
.dim-header-authenticity {
    background: linear-gradient(135deg, #e9d5ff 0%, #f3e8ff 100%) !important;
    border-bottom: 1px solid #d8b4fe !important;
}
.dim-title-authenticity {
    color: #6b21a8 !important;
}

.dim-card-systems_awareness {
    border-left: 6px solid #0d9488 !important;
}
.dim-header-systems_awareness {
    background: linear-gradient(135deg, #99f6e4 0%, #ccfbf1 100%) !important;
    border-bottom: 1px solid #5eead4 !important;
}
.dim-title-systems_awareness {
    color: #0f766e !important;
}

.dim-card-achieving {
    border-left: 6px solid #16a34a !important;
}
.dim-header-achieving {
    background: linear-gradient(135deg, #bbf7d0 0%, #dcfce7 100%) !important;
    border-bottom: 1px solid #86efac !important;
}
.dim-title-achieving {
    color: #15803d !important;
}

/* Custom Range Slider */
.custom-range.circle-slider {
    height: 1.5rem;
    cursor: pointer;
}

.custom-range.circle-slider::-webkit-slider-thumb {
    background-color: var(--c360-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.custom-range.circle-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.border-right-lg {
    border-right: 1px solid #e2e8f0;
}

/* ==========================================================================
   BIỂU ĐỒ TRÒN SVG & CONTAINER
   ========================================================================== */
.circle-wheel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    user-select: none;
}

.circle-wheel-container svg {
    filter: drop-shadow(0px 6px 20px rgba(0, 0, 0, 0.08));
    width: 100%;
    height: auto;
    display: block;
}

/* Tooltip trên Biểu Đồ */
.circle-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transform: translate(-50%, -120%);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.circle-tooltip .tip-title {
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 2px;
}

.circle-tooltip .tip-score {
    font-size: 13px;
    font-weight: 800;
    color: #facc15;
}

/* ==========================================================================
   ĐỒNG NHẤT FONT SIZE KHỐI 5 BÀI THỰC HÀNH & LỜI KHUYÊN AI CHUYÊN GIA
   ========================================================================== */
.circle-habits-box {
    background-color: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 24px 28px;
}

.circle-habits-title {
    color: #0284c7;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.circle-habits-list {
    padding-left: 20px;
    margin-bottom: 0;
    font-size: 1rem; /* Đồng nhất 16px */
    color: #1e293b;
}

.circle-habits-list > li {
    margin-bottom: 14px;
    line-height: 1.6;
}

.circle-habits-list > li:last-child {
    margin-bottom: 0;
}

.circle-habits-sublist {
    list-style-type: none;
    padding-left: 16px;
    margin-top: 8px;
    margin-bottom: 6px;
    border-left: 2.5px solid #86efac;
}

.circle-habits-sublist li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.circle-habits-sublist li:last-child {
    margin-bottom: 0;
}

/* Khối Lời khuyên AI Chuyên Gia trên Web (Đồng nhất font chữ với Khối 5 Bài thực hành) */
.circle-ai-coach-card-web {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #10b981;
    border-radius: 12px;
    padding: 24px 28px;
}

.circle-ai-coach-header-web {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px dashed #6ee7b7;
    padding-bottom: 0.75rem;
}

.circle-ai-coach-badge-web {
    background-color: #047857;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-right: 12px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.3);
    flex-shrink: 0;
}

.circle-ai-coach-title-web {
    color: #065f46;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.circle-ai-coach-subtitle-web {
    font-size: 0.95rem;
    color: #047857;
    font-weight: 500;
}

.circle-ai-coach-section-web {
    margin-bottom: 14px;
    font-size: 1rem; /* Đồng nhất 16px */
    line-height: 1.6;
}

.circle-ai-coach-section-web:last-child {
    margin-bottom: 0;
}

.circle-ai-coach-label-web {
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.circle-ai-coach-text-web {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   THANH THƯỚC ĐO 3 VÙNG (RESPONSIVE CHỐNG TRÀN CHỮ TRÊN MOBILE)
   ========================================================================== */
.zone-scale-bar {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    height: 32px;
    font-weight: 800;
    font-size: 11px;
    text-align: center;
    line-height: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.zone-scale-seg {
    flex: 1;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* ==========================================================================
   RESPONSIVE CHO THIẾT BỊ DI ĐỘNG (MOBILE MAX-WIDTH 767px)
   ========================================================================== */
@media (max-width: 767.98px) {
    .circle-header {
        padding: 0.75rem 0 !important;
    }

    .circle-header h1.header-title {
        font-size: 1.35rem !important;
        line-height: 1.25;
        margin: 0.2rem 0 !important;
    }

    .circle-header .header-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.3;
        margin-bottom: 0.25rem !important;
    }

    .circle-header .lead {
        font-size: 0.85rem !important;
        line-height: 1.35;
        margin-bottom: 0.4rem !important;
    }

    .circle-header .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .circle-header .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.6rem !important;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .circle-card-box {
        padding: 16px 14px !important;
        border-radius: 10px !important;
        margin-bottom: 1.25rem !important;
    }

    .border-right-lg {
        border-right: none !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
        padding-bottom: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    .zone-scale-bar {
        height: auto !important;
        flex-direction: column !important;
        border-radius: 6px !important;
        font-size: 10px !important;
        line-height: 24px !important;
    }

    .zone-scale-seg {
        width: 100% !important;
        padding: 2px 6px !important;
    }

    .circle-habits-box, .circle-ai-coach-card-web {
        padding: 16px 14px !important;
        border-radius: 8px !important;
    }

    .circle-habits-title, .circle-ai-coach-title-web {
        font-size: 1.05rem !important;
    }

    .circle-habits-list, .circle-ai-coach-text-web {
        font-size: 0.92rem !important;
    }

    .circle-habits-list {
        padding-left: 16px !important;
    }

    .circle-habits-list > li {
        margin-bottom: 10px !important;
    }

    .circle-habits-sublist {
        padding-left: 10px !important;
        margin-top: 4px !important;
    }

    .circle-habits-sublist li {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }

    .display-3 {
        font-size: 3rem !important;
    }

    .card-header h5 {
        font-size: 0.95rem !important;
    }
}
