/* Alumni Timeline – Frontend Styles */

#atl-timeline-app {
    width: 90%;
    max-width: 90vw;
    margin: 0 auto;
}

/* ---- Controls ---- */
.atl-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.atl-controls label {
    display: flex;
    flex-direction: column;
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    gap: 4px;
}

.atl-controls select {
    padding: 6px 10px;
    font-size: 1.125rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

#atl-filter-member {
    min-width: 220px;
}

.atl-controls button {
    padding: 7px 16px;
    font-size: 1.125rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    cursor: pointer;
}

.atl-controls button:hover {
    background: #1e293b;
}

.atl-is-hidden-control {
    display: none !important;
}

.atl-icon-btn {
    padding: 6px 10px;
    font-size: 1.125rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff !important;
    color: #1e293b !important;
    cursor: pointer;
    line-height: 1;
}

.atl-icon-btn:hover {
    background: #e2e8f0 !important;
}

/* ---- Zoom button group (2×2 grid) ---- */
.atl-zoom-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-self: stretch;
}

/* ---- Timeline wrapper (for floating scroll buttons) ---- */
.atl-timeline-wrapper {
    position: relative;
}

.atl-scroll-btn {
    position: fixed;
    z-index: 999;
    width: 36px;
    height: 60px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
}

.atl-scroll-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
}

/* ---- Timeline container ---- */
#atl-timeline {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ---- vis.js group labels (role names on the left) ---- */
#atl-timeline .vis-label {
    display: flex !important;
    align-items: center !important;
}

#atl-timeline .vis-label .vis-inner {
    font-weight: 600;
    font-size: 1.125rem;
    padding: 8px 12px;
    color: #1e293b;
}

/* ---- Timeline items ---- */
#atl-timeline .vis-item {
    border-radius: 6px;
    border: none;
    overflow: hidden !important;
}

#atl-timeline .vis-item .vis-item-overflow {
    overflow: hidden !important;
}

#atl-timeline .vis-item .vis-item-content {
    overflow: visible !important;
    padding: 0 !important;
}

#atl-timeline .vis-item.vis-range .vis-item-content {
    transform: none !important;
}

/* ---- Current term bar items highlight ---- */
#atl-timeline .vis-item.vis-range.current-term-item {
    background-color: #fef9c3 !important;
}

#atl-timeline .vis-item-content img {
    border-radius: 6px;
    margin: 4px 8px 4px 4px;
    flex-shrink: 0;
}

#atl-timeline .vis-item-content {
    display: flex !important;
    align-items: center !important;
    height: 74px !important;
}

/* ---- Custom item card inside items ---- */
#atl-timeline .vis-item-content .tl-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

#atl-timeline .vis-item-content .tl-type {
    font-size: 0.65rem;
    color: #64748b;
    text-align: left;
    white-space: nowrap;
}

/* ---- Make vis items exactly 74px height ---- */
#atl-timeline .vis-item.vis-range {
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
}

/* ---- Placeholder when no image ---- */
#atl-timeline .vis-item-content .tl-no-img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    flex-shrink: 0;
    margin: 2px;
    border-radius: 6px;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}
