@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
* {
    font-family: 'Jost', sans-serif;
}
body {
    font-family: 'Jost', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #f5f5f5 100%);
    color: #333;
    font-weight: 600;
}

.dashboard-container {
    padding: 30px 66px 66px 66px;
    min-height: 100vh;
}

/* Top Navigation Bar */
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 20px;
    gap: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-logo {
    background: #fff;
    border-radius: 5px;
    padding: 10px 30px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-logo img {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
}

.dashboard-search {
    flex: 1;
    max-width: 400px;
}

.dashboard-search input {
    width: 100%;
    border-radius: 25px;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#container {
    display: flex;
    padding: 0;
    min-height: calc(100vh - 140px);
}

/* FIXED 320px WIDTH FOR SIDEBAR ON ALL PAGES */
#sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-right: 20px;
    height: fit-content;
    flex-shrink: 0;
}

#sidebar h2 {
    margin-top: 0;
    color: #ff5733;
    font-size: 1.5rem;
    text-align: center;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li {
    margin-bottom: 2px;
}
#sidebar a {
    text-decoration: none;
    color: #333;
    padding: 12px 15px;
    display: block;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.95em;
}

#sidebar a:hover {
    background-color: #10226E;
    color: white;
    transform: translateX(5px);
}

#main {
    flex-grow: 1;
    padding: 20px;
}

.box {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.box h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.button {
    background-color: #345DEB;
    color: white;
    padding: 12px 20px;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95em;
    transition: all 0.3s;
    margin: 3px;
}

.button:hover {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.balance {
    font-size: 48px;
    color: #ff5733;
    font-weight: bold;
    margin: 15px 0;
}

h1 {
    color: white;
    margin-bottom: 30px;
    font-weight: 300;
    font-size: 2em;
}

.two-column {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.two-column .box {
    flex: 1;
    margin-bottom: 0;
}

/* Service List Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    padding: 20px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #345DEB;
    color: #fff;
}


/* Different background colors for each service */

.service-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-card ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.service-card li {
    margin-bottom: 8px;
    font-size: 0.95em;
    position: relative;
    padding-left: 15px;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.8);
    font-weight: bold;
}

.service-card-6 li::before,
.service-card-7 li::before,
.service-card-8 li::before {
    color: rgba(0,0,0,0.6);
}

/* MOBILE RESPONSIVENESS - SIDEBAR REMAINS 320px ON MOBILE TOO */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 6px !important;
    }
    
    .dashboard-topbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .dashboard-search {
        max-width: 100%;
    }
    
    #container {
        flex-direction: column;
        padding: 0;
    }
    
    /* KEEP 320px WIDTH EVEN ON MOBILE */
    #sidebar {
        width: 320px !important;
        min-width: 470px !important;
        max-width: 320px !important;
        margin-right: 0;
        margin-bottom: 10px;
        padding: 15px;
    }
    
    #main {
        padding: 10px;
    }
    
    .box {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .two-column {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .service-card {
        padding: 15px;
    }
}

/* Sticky Topbar */
.sticky-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white !important;
    margin-bottom: 20px;
}

/* Update dashboard-container to account for sticky topbar */
.dashboard-container {
    padding: 15px 17px 33px 15px;
    min-height: 100vh;
}

/* Ensure topbar stays above other content */
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Enhanced shadow when scrolling */
.sticky-topbar.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive for sticky topbar */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 6px !important;
    }
    
    .sticky-topbar {
        margin-bottom: 10px;
    }
}

/* Live Chat Widget Styles */
#live-chat-box {
    font-family: 'Jost', sans-serif;
}
#chat-messages {
    font-size: 0.97em;
    min-height: 60px;
}
.chat-message {
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    max-width: 80%;
    word-break: break-word;
}
.chat-message.user {
    background: #ffecd2;
    align-self: flex-end;
    margin-left: auto;
}
.chat-message.admin, .chat-message.support {
    background: #e6f7ff;
    align-self: flex-start;
    margin-right: auto;
}
#chat-input:focus {
    outline: 2px solid #ff5733;
}