* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f5f7fb;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.topbar {
    height: 60px;
    background-color: #e9e9e9;
    border-bottom: 1px solid #dcdcdc;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-box {
    width: 26px;
    height: 26px;
    border: 2px solid #2d3436;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.portal-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding-right: 20px;
}

.topbar-right select {
    border: none;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
}

.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background-color: #ffffff;
    padding: 40px;
    width: 380px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.login-box h1 {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccd1d9;
    font-size: 14px;
}

.primary-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 15px;
    text-align: center ;
    
}

.primary-btn:hover {
    background-color: #0051cc;
}

.separator {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.separator span {
    background: #fff;
    padding: 0 10px;
    color: #777;
    font-size: 14px;
}

.google-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccd1d9;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
}

.google-btn img {
    width: 18px;
}

.google-btn:hover {
    background-color: #f2f2f2;
}

.forgot-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #0066ff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.language {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #546e7a;
}

.language select {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

.chatbot-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #2f8de4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    z-index: 9999;
}

.chatbot-button:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.chatbot-button svg {
    display: block;
}

.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chatbot-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #2f8de4, #6bb3f7);
    color: white;
    padding: 30px 25px;
    position: relative;
}

.chat-header h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #f5f7fb);
}

.message-card {
    background: #f1f3f6;
    padding: 18px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.message-card p {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #2f8de4;
}

.chat-footer {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #e6e9ef;
    background: #fff;
}

.chat-tab {
    font-size: 14px;
    color: #777;
    cursor: pointer;
}

.chat-tab.active {
    color: #2f8de4;
    font-weight: 600;
}


/*dashboard*/
/* GENERAL */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
}

/* HEADER */
.top-header {
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 10px 30px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-icons,
.right-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.center-title {
    font-size: 20px;
    font-weight: bold;
}

.add-btn {
    background: #4f7cff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.add-btn:hover {
    opacity: 0.9;
}

.avatar {
    background: #8e44ad;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* SUB HEADER */
.sub-header {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
}

.menu a.active {
    color: #4f7cff;
    border-bottom: 3px solid #4f7cff;
    padding-bottom: 5px;
}

.levels {
    display: flex;
    gap: 10px;
}

.outline-btn {
    border: 1px solid #ccc;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.active-btn {
    background: #4f7cff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}

/* DASHBOARD */
.container {
    width: 90%;
    margin: 30px auto;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.grid-3 {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #555;
}

.percentage {
    font-size: 36px;
    font-weight: bold;
}

.yellow { color: #f4b400; }
.red { color: #ea4335; }
.green { color: #34a853; }
.blue { color: #4285f4; }

.small-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* DONUT CHART */
.donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        #ea4335 50%,
        #fbbc05 20%,
        #34a853 20%,
        #4285f4 10%
    );
    margin: auto;
    position: relative;
}

.donut::after {
    content: "";
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    left: 25px;
}

.count-item {
    margin-bottom: 10px;
    font-size: 18px;
}

.count-item span {
    font-weight: bold;
    font-size: 22px;
}
