/* =====================================================
   PROJECT TIMELINE MANAGER
   Salmon Productions
===================================================== */

:root{
    --timeline-primary:#17a2b8;
    --timeline-success:#10b981;
    --timeline-warning:#f59e0b;
    --timeline-danger:#ef4444;

    --timeline-border:#e5e7eb;
    --timeline-bg:#f8fafc;

    --timeline-radius:14px;
}

/* =====================================================
   GLOBAL
===================================================== */

.timeline-page{
    min-height:100vh;
}

.card{
    border-radius:14px;
}

.card.shadow-base{
    transition:.2s ease;
}

.card.shadow-base:hover{
    transform:translateY(-2px);
}

/* =====================================================
   PROJECT LIST
===================================================== */

.project-row{
    cursor:pointer;
    transition:.2s ease;
}

.project-row:hover{
    background:#f8fafc;
}

.project-name{
    font-weight:600;
    color:#1f2937;
}

.project-brand{
    font-size:12px;
    color:#6b7280;
}

.project-date{
    font-size:13px;
    color:#6b7280;
}

/* =====================================================
   STATUS BADGE
===================================================== */

.status-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;

    padding:5px 10px;

    border-radius:999px;

    font-size:11px;
    font-weight:600;
    text-transform:uppercase;
}

.status-draft{
    background:#fff7ed;
    color:#ea580c;
}

.status-active{
    background:#ecfeff;
    color:#0891b2;
}

.status-running{
    background:#ecfeff;
    color:#0891b2;
}

.status-done{
    background:#ecfdf5;
    color:#059669;
}

.status-warning{
    background:#fffbeb;
    color:#d97706;
}

.status-cancelled{
    background:#fef2f2;
    color:#dc2626;
}

/* =====================================================
   PROJECT CARD
===================================================== */

.project-card{
    border:1px solid var(--timeline-border);
    border-radius:14px;
    background:#fff;

    padding:16px;

    transition:.25s ease;
}

.project-card:hover{
    border-color:#17a2b8;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.project-cover{
    width:100%;
    height:180px;

    border-radius:12px;

    background:#f1f5f9;
    overflow:hidden;
}

.project-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =====================================================
   TIMELINE MOBILE STYLE
   (seperti mockup yg kita sepakati)
===================================================== */

.timeline-container{
    position:relative;
    padding-left:90px;
}

.timeline-container::before{
    content:'';
    position:absolute;

    top:0;
    bottom:0;

    left:72px;
    width:4px;

    background:#17a2b8;
    border-radius:20px;
}

.timeline-item{
    position:relative;

    margin-bottom:28px;

    cursor:pointer;
}

.timeline-dot{
    position:absolute;

    left:-24px;
    top:10px;

    width:14px;
    height:14px;

    border-radius:50%;

    background:#17a2b8;
    border:3px solid #fff;

    box-shadow:0 0 0 2px #17a2b8;
}

.timeline-date{
    position:absolute;

    left:-90px;
    top:0;

    width:60px;

    text-align:right;
}

.timeline-date .month{
    display:block;

    font-size:11px;
    font-weight:700;

    color:#6b7280;
}

.timeline-date .day{
    display:block;

    font-size:26px;
    font-weight:800;

    line-height:1;
}

.timeline-content{
    background:#fff;

    border:1px solid #e5e7eb;
    border-radius:14px;

    padding:14px 16px;

    transition:.2s ease;
}

.timeline-content:hover{
    border-color:#17a2b8;
}

.timeline-time{
    font-size:12px;
    color:#6b7280;
}

.timeline-title{
    font-size:16px;
    font-weight:700;
    color:#111827;
}

.timeline-desc{
    margin-top:6px;

    font-size:13px;
    color:#6b7280;
}

/* =====================================================
   PROGRESS
===================================================== */

.progress-soft{
    height:10px;
    border-radius:999px;
    overflow:hidden;

    background:#e5e7eb;
}

.progress-soft .progress-bar{
    border-radius:999px;
}

/* =====================================================
   PIC AVATAR
===================================================== */

.pic-avatar{
    width:34px;
    height:34px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #fff;

    margin-left:-10px;
}

.pic-avatar:first-child{
    margin-left:0;
}

/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state{
    text-align:center;
    padding:60px 20px;
}

.empty-state i{
    font-size:48px;
    color:#cbd5e1;
}

.empty-state h5{
    margin-top:15px;
    color:#475569;
}

.empty-state p{
    color:#94a3b8;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px){

    .timeline-container{
        padding-left:70px;
    }

    .timeline-container::before{
        left:52px;
    }

    .timeline-date{
        width:45px;
        left:-70px;
    }

    .timeline-date .day{
        font-size:22px;
    }

}
/* =========================================
   COMPACT ACTION BUTTON
========================================= */

.btn-xs{
    padding: 2px 7px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    min-height: 22px !important;
    border-radius: 6px !important;
}

.pic-line-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
}

.pic-line-main{
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.pic-line-name{
    font-weight: 600;
    color: #1f2937;
}

.pic-line-role,
.pic-line-wa{
    color: #94a3b8;
}

.pic-line-badge{
    padding: 1px 6px;
    border-radius: 999px;
    background: #e0f7fb;
    color: #0ea5b7;
    font-size: 10px;
    font-weight: 700;
}

.btn-delete-project-pic,
.btn-delete-timeline{
    padding: 2px 7px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    min-height: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
}
