/* ==========================================================
   TRADERDIARY TOPBAR
========================================================== */

.top-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:25px;

    margin-bottom:35px;

    flex-wrap:wrap;

}

/* ==========================================================
LEFT
========================================================== */

.header-left{

    display:flex;

    align-items:center;

    gap:18px;

}

.header-title h1{

    font-size:34px;

    font-weight:700;

    color:var(--text);

    margin:0 0 6px;

}

.header-title p{

    color:var(--muted);

    font-size:15px;

    margin:0;

}

/* ==========================================================
RIGHT
========================================================== */

.header-right{

    display:flex;

    align-items:center;

    gap:16px;

    flex-wrap:wrap;

}

/* ==========================================================
SEARCH
========================================================== */

.search-box{

    width:300px;

    display:flex;

    align-items:center;

    gap:12px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:16px;

    padding:14px 18px;

    transition:var(--transition);

}

.search-box:hover{

    border-color:var(--primary);

}

.search-box:focus-within{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(34,197,94,.12);

}

.search-box i{

    color:var(--muted);

    font-size:18px;

}

.search-box input{

    flex:1;

    background:none;

    border:none;

    color:var(--text);

    font-size:15px;

}

.search-box input::placeholder{

    color:var(--placeholder);

}

/* ==========================================================
DATE
========================================================== */

.header-date{

    display:flex;

    align-items:center;

    gap:10px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:16px;

    padding:14px 18px;

}

.header-date input{

    background:none;

    border:none;

    color:var(--text);

}

.header-date input::-webkit-calendar-picker-indicator{

    filter:invert(1);

    cursor:pointer;

}

/* ==========================================================
NOTIFICATION
========================================================== */

.notification-btn{

    position:relative;

    width:52px;

    height:52px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:16px;

    color:var(--text);

    transition:var(--transition);

}

.notification-btn:hover{

    border-color:var(--primary);

    color:#fff;

    transform:translateY(-2px);

}

.notification-btn i{

    font-size:22px;

}

.notification-count{

    position:absolute;

    top:6px;

    right:6px;

    min-width:20px;

    height:20px;

    background:var(--primary);

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-size:11px;

    font-weight:700;

}

.notification-count:empty{

    display:none;

}

/* ==========================================================
USER
========================================================== */

.header-user{

    position:relative;

}

.user-toggle{

    display:flex;

    align-items:center;

    gap:14px;

    padding:8px 14px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    color:#fff;

    transition:var(--transition);

}

.user-toggle:hover{

    border-color:var(--primary);

    background:var(--card-hover);

    color:#fff;

}

.user-avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    overflow:hidden;

    background:var(--primary);

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-weight:700;

}

.user-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.user-info h5{

    margin:0;

    font-size:15px;

    color:#fff;

}

.user-info small{

    color:var(--muted);

}

/* ==========================================================
DROPDOWN
========================================================== */

.user-dropdown{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    padding:10px;

    min-width:240px;

    box-shadow:var(--shadow-lg);

}

.user-dropdown .dropdown-item{

    border-radius:12px;

    color:var(--text-light);

    padding:12px 14px;

    transition:var(--transition);

}

.user-dropdown .dropdown-item:hover{

    background:var(--card-hover);

    color:var(--primary);

}

.user-dropdown i{

    margin-right:10px;

    width:20px;

}

/* ==========================================================
RESPONSIVE
========================================================== */

@media(max-width:992px){

    .search-box{

        width:220px;

    }

}

@media(max-width:768px){

    .top-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .header-right{

        width:100%;

    }

    .search-box{

        width:100%;

    }

    .user-info{

        display:none;

    }

}