/* ==============================
   ACCOUNT HEALTH DASHBOARD
   PART 1
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --green:#22c55e;
    --green-bg:#eafaf0;

    --orange:#f59e0b;
    --orange-bg:#fff8ea;

    --red:#ef4444;
    --red-bg:#ffecec;

    --text:#222;
    --sub:#777;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.3s;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:#f4f6fb;

    color:var(--text);

    min-height:100vh;

}


/*==============================
CONTAINER
==============================*/

.container{

    width:min(100%,700px);

    margin:auto;

    padding:24px 18px 120px;

}


/*==============================
HEADER
==============================*/

header{

    margin-bottom:28px;

}

.title{

    margin-bottom:20px;

}

.title h1{

    font-size:30px;

    font-weight:700;

}

.title p{

    color:var(--sub);

    margin-top:5px;

}


/*==============================
SEARCH
==============================*/

.search-box{

    display:flex;

    align-items:center;

    gap:12px;

    background:#fff;

    border-radius:15px;

    padding:15px 18px;

    box-shadow:var(--shadow);

}

.search-box i{

    color:#888;

    font-size:18px;

}

.search-box input{

    flex:1;

    border:none;

    outline:none;

    background:none;

    font-size:15px;

    font-family:Poppins;

}


/*==============================
BRAND LIST
==============================*/

.brand-list{

    display:flex;

    flex-direction:column;

    gap:18px;

}


/*==============================
CARD
==============================*/

.brand-card{

    background:#fff;

    border-radius:20px;

    padding:18px;

    box-shadow:var(--shadow);

    cursor:pointer;

    transition:.25s;

    display:flex;

    justify-content:space-between;

    align-items:center;

    position:relative;

    overflow:hidden;

}

.brand-card:hover{

    transform:translateY(-3px);

}

.brand-card:active{

    transform:scale(.98);

}


/*==============================
LEFT BORDER
==============================*/

.brand-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:7px;

    height:100%;

}


/*==============================
LEFT SIDE
==============================*/

.brand-info{

    display:flex;

    align-items:center;

    gap:16px;

}

.brand-icon{

    width:58px;

    height:58px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

}

.brand-text h3{

    font-size:18px;

    font-weight:600;

}

.brand-text p{

    color:#777;

    margin-top:4px;

    font-size:14px;

}


/*==============================
RIGHT
==============================*/

.arrow{

    font-size:22px;

    color:#999;

}


/*==============================
STATUS BADGE
==============================*/

.badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:7px 15px;

    border-radius:999px;

    font-size:13px;

    font-weight:600;

    margin-top:10px;

}


/*==============================
GREEN
==============================*/

.green{

    background:var(--green-bg);

}

.green::before{

    background:var(--green);

}

.green .brand-icon{

    background:var(--green-bg);

    color:var(--green);

}

.green .badge{

    background:var(--green);

    color:white;

}


/*==============================
ORANGE
==============================*/

.orange{

    background:var(--orange-bg);

}

.orange::before{

    background:var(--orange);

}

.orange .brand-icon{

    background:var(--orange-bg);

    color:var(--orange);

}

.orange .badge{

    background:var(--orange);

    color:white;

}


/*==============================
RED
==============================*/

.red{

    background:var(--red-bg);

}

.red::before{

    background:var(--red);

}

.red .brand-icon{

    background:var(--red-bg);

    color:var(--red);

}

.red .badge{

    background:var(--red);

    color:white;

}


/*==============================
HOVER EFFECT
==============================*/

.brand-card:hover .arrow{

    transform:translateX(5px);

    transition:.3s;

}


/*==============================
SCROLLBAR
==============================*/

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#cfcfcf;

    border-radius:20px;

}


/*==============================
SMALL MOBILE
==============================*/

@media(max-width:480px){

    .title h1{

        font-size:26px;

    }

    .brand-card{

        padding:16px;

    }

    .brand-icon{

        width:50px;

        height:50px;

        font-size:20px;

    }

    .brand-text h3{

        font-size:16px;

    }

}


/*====================================
DETAIL PANEL
====================================*/

.overlay{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(4px);

    display:flex;

    justify-content:flex-end;

    opacity:0;
    visibility:hidden;

    transition:.35s;

    z-index:999;

}

.overlay.show{

    opacity:1;
    visibility:visible;

}

.details-panel{

    width:100%;
    max-width:700px;

    height:100vh;

    background:#f7f8fc;

    overflow-y:auto;

    transform:translateX(100%);

    transition:.35s ease;

    display:flex;
    flex-direction:column;

}

.overlay.show .details-panel{

    transform:translateX(0);

}



/*====================================
HEADER
====================================*/

.panel-header{

    position:sticky;

    top:0;

    background:#fff;

    padding:20px;

    display:flex;

    align-items:center;

    gap:16px;

    box-shadow:0 2px 12px rgba(0,0,0,.05);

    z-index:100;

}

.panel-header button{

    width:48px;
    height:48px;

    border:none;

    border-radius:14px;

    background:#f1f3f7;

    cursor:pointer;

    transition:.25s;

    font-size:18px;

}

.panel-header button:hover{

    background:#e5e7eb;

}

.panel-header h2{

    font-size:22px;
    font-weight:600;

}

#statusBadge{

    display:inline-block;

    margin-top:8px;

    padding:6px 14px;

    border-radius:50px;

    font-size:13px;

    font-weight:600;

    color:#fff;

}



/*====================================
TIMELINE
====================================*/

#timeline{

    padding:22px;

}

.timeline-item{

    background:#fff;

    border-radius:18px;

    margin-bottom:18px;

    overflow:hidden;

    box-shadow:0 6px 20px rgba(0,0,0,.06);

}



/*====================================
TIMELINE HEADER
====================================*/

.timeline-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 20px;

    cursor:pointer;

    user-select:none;

    transition:.25s;

}

.timeline-header:hover{

    background:#fafafa;

}

.timeline-header h3{

    font-size:17px;

}

.timeline-header i{

    transition:.35s;

}

.timeline-item.active .timeline-header i{

    transform:rotate(180deg);

}



/*====================================
BODY
====================================*/

.timeline-body{

    max-height:0;

    overflow:hidden;

    transition:max-height .4s ease;

    background:#fcfcfc;

}

.timeline-item.active .timeline-body{

    max-height:800px;

}

.timeline-content{

    padding:0 22px 22px;

}



/*====================================
TITLE
====================================*/

.advisory-title{

    font-size:15px;

    font-weight:600;

    margin-bottom:15px;

}



/*====================================
LIST
====================================*/

.advisory-list{

    list-style:none;

    display:flex;

    flex-direction:column;

    gap:14px;

}

.advisory-list li{

    display:flex;

    align-items:flex-start;

    gap:12px;

    line-height:1.7;

    color:#444;

    font-size:15px;

}

.advisory-list li i{

    margin-top:5px;

    color:#f59e0b;

}



/*====================================
DATE
====================================*/

.timeline-date{

    color:#888;

    font-size:13px;

}



/*====================================
STATUS BAR
====================================*/

.status-good{

    background:#22c55e;

}

.status-watch{

    background:#f59e0b;

}

.status-banned{

    background:#ef4444;

}



/*====================================
ANIMATION
====================================*/

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.timeline-item{

    animation:fadeUp .45s ease;

}



/*====================================
EMPTY STATE
====================================*/

.empty{

    text-align:center;

    padding:60px 20px;

    color:#999;

}

.empty i{

    font-size:60px;

    margin-bottom:20px;

}



/*====================================
LOADER
====================================*/

.loader{

    width:45px;
    height:45px;

    border:5px solid #eee;

    border-top:5px solid #3b82f6;

    border-radius:50%;

    animation:spin .8s linear infinite;

    margin:60px auto;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}



/*====================================
FLOATING STATUS LEGEND
====================================*/

.legend{

    position:fixed;

    bottom:18px;

    right:18px;

    background:#fff;

    border-radius:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    padding:15px 18px;

    display:flex;

    flex-direction:column;

    gap:10px;

    font-size:13px;

    z-index:200;

}

.legend-item{

    display:flex;

    align-items:center;

    gap:10px;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

}

.dot.green{

    background:#22c55e;

}

.dot.orange{

    background:#f59e0b;

}

.dot.red{

    background:#ef4444;

}



/*====================================
RESPONSIVE
====================================*/

@media(max-width:768px){

    .details-panel{

        max-width:100%;

    }

}

@media(max-width:600px){

    .panel-header{

        padding:18px;

    }

    .panel-header h2{

        font-size:20px;

    }

    .timeline-header{

        padding:16px;

    }

    .timeline-content{

        padding:0 16px 18px;

    }

    .advisory-list li{

        font-size:14px;

    }

    .legend{

        left:12px;

        right:12px;

        bottom:12px;

    }

}

@media(max-width:400px){

    .panel-header button{

        width:42px;

        height:42px;

    }

    .panel-header h2{

        font-size:18px;

    }

    .timeline-header h3{

        font-size:15px;

    }

}