/* ==========================================================================
   PAGE: CHỌN NHANH GIỜ ĐẸP (VERTICAL TIMELINE UI)
   ========================================================================== */

#page-chon-nhanh .timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline Item Structure */
.timeline-item {
    display: flex;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0px;
}

/* Left Column: Icon & Line */
.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    position: relative;
    min-width: 40px;
    flex-shrink: 0;
}

.timeline-line {
    position: absolute;
    top: 40px;
    bottom: -10px;
    width: 2px;
    background-color: #e5e7eb;
    transition: background-color 0.4s ease;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #9ca3af;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Right Column: Content */
.timeline-content {
    flex: 1;
    padding-top: 0.25rem;
    transition: opacity 0.3s ease;
    min-width: 0;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.timeline-description {
    color: #6b7280;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* STATES */

/* 1. Active State */
.timeline-item.active .timeline-icon {
    background-color: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.timeline-item.active .timeline-line {
    background-color: #e5e7eb;
}

.timeline-item.active .timeline-title {
    color: #111827;
}

/* 2. Completed State */
.timeline-item.completed .timeline-icon {
    background-color: #0d7377;
    border-color: #0d7377;
    color: #fff;
}

.timeline-item.completed .timeline-title {
    color: #0d7377;
}

.timeline-item.completed .timeline-line {
    background-color: #0d7377;
}

/* 3. Disabled State */
.timeline-item.disabled .timeline-content {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
    user-select: none;
}

.timeline-item.disabled .timeline-icon {
    background-color: #f3f4f6;
    color: #d1d5db;
    border-color: #f3f4f6;
}

.icon-check::before {
    display: none;
}

.timeline-item.completed .icon-check::before {
    display: block;
}


/* Icons pseudo-elements */
.icon-check::before {
    content: "✓";
    font-weight: 900;
}

/* Removed .icon-lock::before */

.icon-star::before {
    content: "★";
    font-size: 1rem;
}

/* Dynamic States not covered by utility classes */
.mode-card-small.selected {
    color: #fff;
    border-color: #0d7377;
    background-color: #0d7377;
}

.mode-card-small.selected svg {
    color: #fff;
}

.mode-card-small.selected .mode-description {
    color: #d1d5db;
}

/* Result Area Min Height */
#result-wrapper {
    min-height: 100px;
}

/* Full Width Result Section */
.result-fullwidth {}

/* Add max-width for very large screens to keep content readable */
@media (min-width: 1400px) {
    .result-fullwidth {
        max-width: 1400px;
        left: auto;
        right: auto;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 2rem;
    }
}

/* Widget Result Styling (Ported from Plugin) */
.cgs-gio-tot-widget {
    font-family: inherit;
}

/* Mobile responsive adjustments for Widget */
@media (max-width: 480px) {
    .cgs-gio-tot-widget .show-am-lich {}

    .cgs-gio-tot-widget .widget-left,
    .cgs-gio-tot-widget .widget-middle,
    .cgs-gio-tot-widget .widget-right,
    .cgs-gio-tot-widget .widget-menh {}

    .cgs-gio-tot-widget .widget-menh {
        display: none;
        /* Hide Menh on super small screens if needed, matching plugin logic */
    }
}