@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Libre+Caslon+Text:wght@400;700&family=Work+Sans:wght@300;400;600;700&display=swap');

:root {
    --white: #ffffff;
    --black: #000000;
    --grey: #f5f5f5;
    --dark-grey: #666;
    --dark-grey-light: #6666;
    --primary: #286181;
    --primary-light: #4a89aa;
    --primary-dark: #1a4660;
    --green: #2ecc71;
    --yellow: #f39c12;
    --red: #e74c3c;

    --font-body:  'Host Grotesk', Verdana;
    --font-sans: 'Work Sans', sans-serif;
    --font-header: 'Libre Caslon Text', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--grey);
    color: var(--black);
    line-height: 1.6;
}

a{
    text-decoration:none;
    color: inherit;
}

.color-primary{
    color: var(--primary);
}

.popup-content{
    scrollbar-width:none;
}

.btn, .ctrl-btn {
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    border: none;
    font-family: var(--font-body);
    text-transform: capitalize;
    font-size: 0.85rem;
    display:inline-block;
    padding: 1rem 1.5rem;
    letter-spacing: 0.5px;
}

.small.btn{
    padding:0.35em 0.6em;
    font-size: 0.7rem;
}

.ctrl-btn{
    flex: unset;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--grey);
}


.positive {
    color: var(--green);
}

.negative {
    color: var(--red);
}

/* Layout */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 2rem 1rem;
    position: sticky;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-x:auto;
    scrollbar-width:thin;
    scrollbar-color: var(--grey), var(--primary-dark);
    top: 0;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey);
}

.logo img{
    height: 40px;
}

.logo h1 {
    font-family: var(--font-header);
    text-transform: uppercase;
    /* font-size: 1.8rem; */
    letter-spacing: 1.5px;
    color: var(--primary);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--black);
}

.nav-item span {
    font-family:var(--font-header);
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-item:hover:not(.active) {
    background-color: var(--grey);
}

.nav-item i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    width:100%;
}


/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey);
}

.welcome h2 {
    font-family: 'Libre Caslon Text', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome p {
    color: var(--dark-grey);
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    justify-content:space-between;
}

.notification-btn, .profile-btn, .menu-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.menu-btn:hover, .notification-btn:hover, .profile-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container{
    padding: 0 0rem 2rem;
}

@media (max-width: 900px) {
    .sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo img{
        height:15px;
    }

    .nav-item{
        flex-direction: column;
        gap: 0.4em;
    }
    
    .nav-item span {
        /* display: none; */
        font-size: 0.5em;
        /* font-weight: 600; */
        /* font-family: var(--font-sans); */
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    
    .main-content {
        margin-left: 80px;
    }

    .content-container{
        padding: 0 0rem 1rem;
        /* width:90%; */
    }
}

@media (max-width: 768px) {    
    .action-buttons {
        flex-direction: column;
    }

    .main-content {
        margin-left: 80px;
        width: 100%;
        padding: 1rem;
        overflow-y:auto;
        height:100vh;
    }

     .content-container{
        padding: 0 0rem 1rem;
        width:100%;
     }

    .nav-item i{
        font-size:1.2em;
    }
}

.menu-btn{
    display:none;
}

@media (max-width: 480px){     
    .nav-item i{
        font-size:1.2em;
    }

    .content-container{
        padding: 0 0rem 1rem;
    }

    .header {
        align-items: end;
        flex-direction: column-reverse;
        width: 100%;
        gap: 1em;
    }

    .header-actions{
        margin-bottom:0.5em;
        width:100%;
    }

    .main-content {
        margin-left: 0px;
        width: 100%;
        padding: 1rem;
        overflow-y:auto;
        height:100vh;
    }

    .main-content.w-menu{
        margin-left: 80px;
    }

    .sidebar{
        display:none;
    }

    .sidebar.active{
        display:block;
    }

    .menu-btn{
        display:flex;
    }

    .nav-item span {
        /* display: none; */
        font-size: 0.5em;
    }
}

/* Notifications List */
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width:none;
}

.notifications-list .notification-details{
    font-size: 13px;
    color: var(--dark-grey)
}

.notifications-list .notification-details ul{
    MARGIN-LEFT: 1EM;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: var(--grey);
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    background: var(--white);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--grey);
    position: relative;
}

.notification-item.unread::before {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notification-icon {
    background: var(--grey);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--black);
}

.notification-content p {
    font-size: 0.85rem;
    color: var(--dark-grey);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.notification-content small {
    font-size: 0.75rem;
    color: var(--dark-grey-light);
}

.notification-details {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--grey);
    display: none;
}

.show-more-btn {
    font-size: 0.8rem;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0.3rem 0;
    cursor: pointer;
    display: block;
    margin-top: 0.3rem;
}

.show-more-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
details summary {
    list-style: none;
    padding: 0;
    margin: 0;
}

details summary::-webkit-details-marker {
  display: none;
}

details .profile-menu {
    display: none;
    position: absolute;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    right: 5%;
}

details .profile-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9em;
}

details .profile-menu a i {
    font-size: 0.7em;
}

details .profile-menu a:hover {
    color: var(--primary);
}

details:hover .profile-menu {
    display: block;
}

[disabled]{
    cursor:not-allowed;
}

.wallet-action-form .amount-input, .wallet-action-form .bank-select{
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom:1em;
}

/* 
.badge{
    font-size: 12px;
    padding: 0.2em 0.4em;
    border-radius: 10px;
    display: inline-block;
}

.badge.approved {
    background: var(--green);
    color: var(--white);
}

.badge.pending {
    background: var(--yellow);
    color: var(--black);
}

.badge.rejected {
    background: var(--red);
    color: var(--white); 
}
    */