body {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
}

button,
.btn {
    font-family: "Montserrat", sans-serif !important;
}

.text-purple {
    color: #290d3e !important;
}

.bg-purple {
    background-color: #7e57c2 !important;
}

.bg-blue {
    background: linear-gradient(135deg, #0e1217 0%, #151a21 50%, #0e1217 100%);
}

.bg-grey {
    background-color: #3f3744 !important;
    /* background-color: #4E4A52FF !important; */
}

.login-btn {
    background-color: #341150ff !important;
}

.welcome-text {
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

/* chat bar section */
.chat-bar-container {
    position: fixed;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bar {
    width: 80%; /* Stays responsive to container width */
    max-width: 60vw; /* Reduced from 80vw to 60vw */
    background-color: #ffffffff;
    border-radius: 80px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.chat-input {
    background-color: #ffffffff;
    color: #2b2b2b;
    border: none;
    padding: 8px;
    border-radius: 15px;
    outline: none;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    overflow-y: auto;
    resize: none;
    height: 40px; /* fixed height for proper alignment */
    line-height: 24px; /* line-height helps center the text */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.company-logo {
    height: 1.3em;
    width: auto;
    margin-left: 1em;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-bar {
        padding: 6px;
        gap: 6px;
    }

    .chat-input {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .chat-bar-container {
        width: 100%;
        padding: 0 8px;
        left: 0;
        transform: none;
    }

    .chat-bar {
        width: 100%;
        max-width: 100%; /* ✅ override the desktop limit */
    }
}

.card-title {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0;
    font-weight: 900;
    font-family: "Montserrat", sans-serif;
    white-space: normal; /* Allow wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden; /* Prevent overflow */
}
/* end of chat bar section */

/* token popout section */
.token {
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
}

.custom-modal-dialog {
    max-width: 30%; /* For larger screens */
    width: 90vw;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    margin: auto;
}

@media (max-width: 576px) {
    /*for phone*/
    .custom-modal-dialog {
        max-width: 80%;
        width: 90vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.modal.show .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensure the modal takes the full screen height */
}

.custom-modal {
    border-radius: 16px;
    overflow: hidden;
}

.flash-icon {
    color: #facc15;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black,
        1px 1px 0 black;
}

.modal-header {
    background-color: #290d3e;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-title {
    text-align: center;
    width: 100%;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
}

.btn-close {
    position: absolute;
    right: 1rem; /* Responsive using rem */
    top: 50%;
    transform: translateY(-50%);
    filter: invert(1);
    opacity: 1;
}

.token-option {
    background-color: #d3d2d2ff;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.token-option:hover {
    /* Changed the background color to a lighter purple hex code */
    background-color: #c3b1e1;
    border: 2px solid #000000;
}

.token-option.active {
    background-color: #d4c3f0; /* Light Purple */
    border: 2px solid #4a186b;
}

.note {
    font-size: 0.68rem;
    color: #6c757d;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
}

.pay-btn {
    background-color: #d3d3d3;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-weight: bold;
    cursor: not-allowed;
}

.pay-btn:enabled {
    background-color: #290d3e;
    cursor: pointer;
    color: white;
}
/* end of token popout section */

/* Evo exercise/tyk section */
body {
    font-family: "Montserrat", sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}
.education-section {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}
.education-section:hover {
    transform: scale(1.02);
}
.education-section h4 {
    margin-bottom: 15px;
    color: white;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.button {
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    background-color: white;
    color: black;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button:hover {
    background-color: #4b0082;
    color: white;
}

.langgan-button {
    background-color: #0056b3;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.langgan-button:hover {
    background-color: #003d80;
}

/* Info Section */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f0f0;
}
.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background-color: #4b0082;
    color: white;
    padding: 10px 15px;
    width: 100%;
}
.header-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.header-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.header .info-icon {
    display: flex;
    justify-content: flex-end;
    font-size: 1.5rem;
    cursor: pointer;
}
.header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.header-text h1 {
    font-size: 2rem;
}
.back-icon {
    font-size: 2.5rem;
    cursor: pointer;
    position: relative;
    top: -3px;
}
.header-text .evo {
    font-weight: bold;
}
.header-text .city {
    font-weight: normal;
}

.container {
    max-width: 70% !important; /* Set a fixed width */
    margin: 0 auto;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
}
.popup-header {
    background-color: #4b0082;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup-header h5 {
    margin: 0;
    width: 100%;
    text-align: center;
}
.popup-body {
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 0 0 10px 10px;
    overflow-y: auto;
    max-height: 400px;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: white;
}
.popup-body p,
ul {
    color: black;
}
.info-button {
    display: none !important;
}
/* end of Popup */

/* subject section */
.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.next-button {
    width: 90%;
    border: 2px solid black;
    border-radius: 12px;
    background-color: white;
    transition: background-color 0.3s, color 0.3s;
}

.next-button:hover {
    background-color: black;
    color: white;
}

.sub-header {
    border-width: 6px !important;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

/* question section */
@media (max-width: 576px) {
    .sub-header {
        border-width: 4px !important; /* thinner border */
        font-family: "Montserrat", sans-serif;
        font-weight: bold;
    }

    #question-text {
        font-size: 1rem !important;
    }

    .answer-btn {
        font-size: 0.95rem !important;
        padding: 0.75rem 1rem !important;
    }
}

@keyframes sparkleGlow {
    0% {
        box-shadow: 0 0 10px 2px gold, 0 0 20px 4px orange;
        background: radial-gradient(circle, #fff8b5, #fff4a3, #fffcd3);
    }
    50% {
        box-shadow: 0 0 20px 4px gold, 0 0 30px 6px orange;
        background: radial-gradient(circle, #fff4a3, #fff8b5, #fffcd3);
    }
    100% {
        box-shadow: 0 0 10px 2px gold, 0 0 20px 4px orange;
        background: radial-gradient(circle, #fff8b5, #fff4a3, #fffcd3);
    }
}

.popup-streak-glow {
    animation: sparkleGlow 1.5s ease-in-out infinite;
    border: 2px solid gold;
    border-radius: 16px;
}

@keyframes popStar {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.star-animate {
    animation: popStar 0.6s ease-out;
}

@keyframes bounceOnce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes bounceTwice {
    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-20px);
    }
    90% {
        transform: translateY(-10px);
    }
}

@keyframes bounceInfinite {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.star-bounce-once {
    animation: bounceOnce 2s ease;
}

.star-bounce-twice {
    animation: bounceTwice 2.5s ease;
}

.star-bounce-infinite {
    animation: bounceInfinite 1.5s ease infinite;
}

#mute-button {
    background-color: #fff;
    border: none;
    font-size: 1.5rem; /* Slightly smaller font size */
    border-radius: 50%;
    width: 40px; /* Slightly smaller width */
    height: 40px; /* Slightly smaller height */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

#mute-button:hover {
    transform: scale(1.1); /* Slightly zoom effect on hover */
}

/* leaderboard section */

.leaderboard-box {
    background-color: #f0ecff;
    padding: 12px 14px;
    border-radius: 12px;
    width: 100%;
    max-width: 240px; /* reduced from 280px */
    box-sizing: border-box;
    flex: 1 1 220px;
}

.rank-name {
    white-space: normal;
    word-break: break-word;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.star-score span {
    font-size: 15px; /* slightly smaller */
}

.leaderboard-header {
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.rank-name,
.star-score {
    font-size: 15px;
}

.leaderboard-name {
    margin-top: 2px;
    word-break: break-word;
}

@media (max-width: 576px) {
    .leaderboard-box {
        padding: 10px 12px;
        max-width: 100%;
    }
    .rank-name,
    .star-score,
    .leaderboard-name {
        font-size: 14px;
    }
}
/* Container */
.leaderboard-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    font-size: 10px;
    margin-top: 21px;
    margin-bottom: 21px;
}

/* Title */
.leaderboard-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

/* Filter Form */
.leaderboard-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    color: #333;
}

.filter-select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 150px;
    width: 100%;
    max-width: 100%;
}

.filter-button {
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #218838;
}

.name-placeholder {
    max-width: 400px;
    border-radius: 20px;
    font-size: 14px;
    min-width: 250px;
    font-family: "Montserrat", sans-serif;
    border: 1px solid #a5bacaff;
}

.leaderboard-entry {
    padding: 4px 8px !important; /* Reduced from 6px 10px */
    margin: 0 -1px; /* Tighten horizontal spacing */
}

.leaderboard-entry h5 {
    font-size: 12px !important; /* Reduced from 13px */
    margin-bottom: 0 !important; /* Remove bottom margin */
    line-height: 1.2;
}

.leaderboard-details {
    font-size: 11px !important; /* Reduced from 12px */
    line-height: 1.15 !important;
    margin-top: 2px !important;
}

.leaderboard-details p {
    font-size: 10px !important;
    margin-bottom: 0.1rem !important;
    display: inline-block; /* Compact inline layout */
    width: 48%; /* Two-column layout */
}

.leaderboard-details p:nth-child(odd) {
    margin-right: 4%; /* Spacing between columns */
}

.badge {
    font-size: 10px !important; /* Smaller badge */
    padding: 0.1em 0.35em !important;
    transform: scale(0.9); /* Slightly shrink */
}

/* Medal styling adjustments */
[style*="border-left: 4px solid"] {
    border-left-width: 2px !important; /* Thinner medal border */
}

/* Compact hover effect */
.leaderboard-entry:hover {
    background-color: #f5f5f5 !important;
}

/* Two-line compact entry variant */
.compact-mode .leaderboard-entry {
    padding: 2px 6px !important;
}

.compact-mode .leaderboard-details p {
    width: 100%; /* Stack vertically */
    display: block;
    margin-bottom: 0 !important;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .leaderboard-container {
        padding: 12px;
        width: 95%;
    }

    .leaderboard-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-select,
    .filter-button {
        width: 100%;
    }

    .leaderboard-buttons {
        flex-direction: column;
    }

    .home-button,
    .cumulative-button {
        width: 100%;
    }

    .leaderboard-table,
    .cumulative-table {
        font-size: 0.8rem;
    }

    .leaderboard-table th,
    .leaderboard-table td,
    .cumulative-table th,
    .cumulative-table td {
        padding: 6px;
    }
}

/* Card styles for mobile leaderboard */
.card {
    background-color: #4a0c6d;
    border: 1px solid #ffffff22;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffdd57;
}

.card p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.btn-outline-secondary {
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: bold;
}

.cumulative-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    color: #333;
    border-left: 6px solid #ccc;
}
.cumulative-card div {
    margin-bottom: 5px;
}

.rank-gold {
    background-color: #fff8dc; /* light gold */
    font-weight: bold;
}
.rank-silver {
    background-color: #f0f0f0; /* light silver */
    font-weight: bold;
}
.rank-bronze {
    background-color: #fbe6d4; /* light bronze */
    font-weight: bold;
}

.swal2-popup.swal-wide-table {
    max-width: 90vw !important;
    overflow-x: auto;
}

.swal2-html-container {
    max-height: 60vh;
    overflow-y: auto;
}

/*price section*/
.header-wrapper {
    display: flex;
    width: 100%;
    height: 250px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
}

.header-section {
    background-image: url("/img/tyk_img/study.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0; /* Remove border-radius if you want flush sides */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    height: 250px;
    width: auto;
}

.header-tyk-title {
    background: linear-gradient(135deg, #57c295ff, #9575cd);
    color: white;
    text-align: center;
    font-size: xx-large;
    font-weight: bold;
    padding: 0 15px; /* Reduce/remove vertical padding */
    border-radius: 0; /* Match header-section */
    font-family: "Montserrat", sans-serif;
    position: relative;
    box-shadow: none;
    transition: transform 0.3s;
    width: 280px;
    flex: 1 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    box-sizing: border-box;
}

.header-image {
    height: 30%;
    -o-object-fit: contain;
    object-fit: contain; /* or contain, based on desired effect */
    flex-shrink: 0;
    width: auto; /* or a fixed width if needed */
    margin-right: 10px; /* optional spacing */
    border-radius: 0; /* or rounded corners if needed */
}

.subscription {
    background: linear-gradient(135deg, #57c295ff, #9575cd);
    color: white;
    text-align: center;
    padding: 0 15px; /* Reduce/remove vertical padding */
    border-radius: 0; /* Match header-section */
    font-family: "Montserrat", sans-serif;
    position: relative;
    box-shadow: none;
    transition: transform 0.3s;
    width: 280px;
    flex: 1 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    box-sizing: border-box;
}

.subscription:hover {
    transform: scale(1.02);
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.new-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffeb3b;
    margin: 10px 0 15px;
}

.langgan-button {
    background-color: #290d3e;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s, transform 0.2s;
}

.langgan-button:hover {
    background-color: #f50057;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .subscription {
        width: 30%;
        padding: 15px 10px;
    }

    .plan-title {
        font-size: 1rem;
    }

    .old-price {
        font-size: 0.75rem;
    }

    .new-price {
        font-size: 1.2rem;
        margin: 8px 0 12px;
    }

    .langgan-button {
        font-size: 0.85rem;
        padding: 8px 18px;
    }

    .badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        height: auto;
    }

    .header-section,
    .subscription {
        width: 100% !important;
        height: auto;
        border-radius: 0;
    }

    .header-section {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        justify-content: center;
        text-align: center;
    }

    .subscription {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        padding: 10px 12px;
    }

    .header-text {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .plan-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .old-price {
        font-size: 0.7rem;
        margin: 0;
    }

    .new-price {
        font-size: 1rem;
        margin: 6px 0 10px;
    }

    .langgan-button {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        top: -8px;
        right: -8px;
    }
}

.sejarah-btn {
    border-radius: 10px;
    font-size: clamp(14px, 4vw, 18px);
    min-width: 120px;
    flex: 1 1 45%;
    text-align: center;
}

.carta-btn {
    border-radius: 10px;
    font-size: clamp(14px, 4vw, 18px);
    min-width: 120px;
    flex: 1 1 45%;
    text-align: center;
}

@media (min-width: 768px) {
    .sejarah-btn {
        min-width: 250px;
        flex: 0 0 auto;
    }
    .carta-btn {
        min-width: 250px;
        flex: 0 0 auto;
    }
}

.tiny-text {
    font-size: 0.85rem;
}
/* end of tyk section */

/* reload balance section*/
.amount {
    text-align: center;
    color: black;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
}

.input-amount-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 5px;
}

.prefix {
    font-size: 1.5rem;
    font-weight: bold;
    color: #290d3e;
}

.custom-amount {
    border: none;
    border-bottom: 2px solid #290d3e;
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    width: 50%;
    text-align: center;
    outline: none;
    background-color: transparent;
    padding: 5px;
}

.custom-amount:focus {
    border-bottom: 2px solid #290d3e;
}

.amount-btn {
    border-radius: 10px;
    font-size: 1.1rem;
    padding: 3%;
    transition: all 0.2s ease;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    color: black;
    margin-bottom: 5%;
    background-color: white;
}

.amount-btn.active {
    background-color: #290d3e;
    color: white;
    border-color: #290d3e;
}

.row.justify-content-center > .col-4 {
    flex: 0 0 auto;
    width: 50%;
}

.payButton {
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    padding: 1%;
}

#payButton:disabled {
    background-color: #e0e0e0;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

.card-rb {
    border-radius: 12px;
    max-width: 100%;
    margin: auto;
}
/* end of reload balance section */

/* speech translator section */
.language-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center; /* Vertically align items */
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.language-selector select {
    width: 45%; /* Slightly reduced width for spacing */
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.swap-button {
    text-align: center; /* Center the icon */
    margin: 0;
}

.swap-button i {
    font-size: 1.2em; /* Adjust icon size */
    color: #6c757d; /* Optional: change icon color */
    cursor: pointer;
}

.translation-box {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: white;
}

.translation-box h5 {
    font-size: 1rem; /* Smaller heading */
    margin-bottom: 5px;
    color: #555;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.translation-box textarea {
    border: none;
    resize: none; /* Disable resize to match appearance */
    height: 80px; /* Set a fixed height */
    width: 100%; /* Fill the container */
    padding: 5px;
    font-size: 1rem;
    background-color: #f0f0f0; /* Light gray background */
}

#playTTS {
    margin-top: 10px;
}

.microphone-button {
    text-align: center;
    margin-top: 20px;
}

.microphone-button button {
    border-radius: 50%;
    padding: 15px 25px;
    background-color: #9370db; /* lavender */
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Optional: Style for the microphone icon within the button */
.microphone-button button svg {
    vertical-align: middle; /* Align with text if any */
}

/* New style for translate button */
.translate-button {
    text-align: center;
    margin-top: 20px; /* Increased gap here */
    margin-bottom: 20px; /* Added margin-bottom too */
}

.translate-button button {
    background-color: #7e57c2; /* Blue */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.translate-button button:hover {
    background-color: #201c86ff;
}

/* New Style for Hover Effect */
.microphone-button button:hover {
    background-color: #7e57c2; /* Darker lavender or a color you prefer */
}

.microphone-button button.recording {
    background-color: #dc3545; /* Red to indicate recording */
}

.microphone-button button.recording:hover {
    background-color: #c82333; /* Darker red on hover */
}

/* Speaker Icon Button Style */
#playTTS,
#downloadTTS {
    background-color: #7e57c2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    margin: 5px;
    width: auto;
    max-width: 100%;
}

#playTTS i,
#downloadTTS i {
    margin-right: 5px; /* Spacing between icon and text (if any) */
}

#playTTS:hover,
#downloadTTS:hover {
    background-color: #25219e; /* Darker green on hover */
}

/* Flex container for buttons in translation box */
.translation-box-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
/* end of speech translator section */

/* custom sweetalert section */
.custom-swal-popup {
    font-family: "Montserrat", sans-serif;
    border-radius: 12px;
}
.custom-swal-title {
    font-size: 20px;
    font-weight: 600;
}
.custom-swal-confirm,
.custom-swal-cancel {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}
/* end of custom sweetalert section */

/* chat ai*/
/* chat section */
.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto 0 auto;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    max-width: 720px;
    width: 100%;
    padding-bottom: 100px; /* ✅ add this line */
}

.message-wrapper {
    width: 100%;
    display: flex;
    margin: 10px 0;
}

.message-wrapper.user {
    justify-content: flex-end;
}

.message-wrapper.ai {
    justify-content: flex-start;
}

.message {
    padding: 8px 18px 0 18px;
    border-radius: 12px;
    word-wrap: break-word;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-message {
    border-radius: 15px 15px 15px 0;
    color: white;
}

.user-message {
    background-color: rgb(165, 161, 168);
    border-radius: 15px 15px 0 15px;
    color: white;
    padding: 10px 18px;
}

.message-label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    font-family: "Montserrat", sans-serif;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
/* end of chat section */

/* chat sidebar */
.toggle-sidebar-btn {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

.chat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #201e22;
    color: white;
    padding: 10px;
    z-index: 9998;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-sidebar.open {
    transform: translateX(0);
}

.chat-sidebar.collapsed {
    transform: translateX(-100%);
}

.container-fluid {
    transition: margin-left 0.3s ease;
}

.container-fluid.sidebar-collapsed {
    margin-left: 0;
}

.sidebar-title {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-history-item {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.2s ease;
    color: white;
    background-color: transparent;
    border: none;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sidebar-history-item .fa-trash {
    display: none;
    font-size: 14px;
    color: white;
    cursor: pointer;
}

.sidebar-history-item:hover .fa-trash {
    display: inline;
}

.sidebar-history-item .fa-trash:hover {
    color: red;
}

.sidebar-history-item.active {
    background-color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.sidebar-history-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
/* end of chat sidebar */

/* Custom scrollbar */
.chat-sidebar::-webkit-scrollbar {
    width: 6px;
}

.chat-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.chat-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
/* end of chat sidebar */

/* Suggested Prompt Pop-up */
#suggested-prompts {
    position: fixed;
    bottom: 60px; /* Keeps it close to the button */
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    padding: 8px; /* Reduce padding */
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9998;
    width: 180px; /* Adjust width */
    max-height: 150px; /* Limit height */
    overflow-y: auto; /* Enable scroll if too many items */
}

/* Reduce extra padding inside */
.popup-content {
    text-align: left;
    padding: 5px 0;
}

/* Title */
.popup-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px; /* Reduce margin */
    color: black;
}

/* List */
.prompt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each prompt */
.prompt-item {
    cursor: pointer;
    padding: 5px 8px;
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.2s;
    color: black !important; /* Ensure text is black */
}

/* Hover Effect */
.prompt-item:hover {
    background: #f5f5f5;
}

/* Suggestion Button - Stays Bottom Right */
.suggestion-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4); /* Token-style background */
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    z-index: 5000;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black,
        1px 1px 0 black;
    transition: background 0.3s ease;
}

.suggestion-button:hover {
    background: rgba(0, 0, 0, 0.6); /* Darker on hover */
}

.suggestion-button::after {
    content: "Suggestion Prompt";
    margin-left: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black,
        1px 1px 0 black;
}

/* Suggestion Pop-up - More Compact */
#suggested-prompts {
    position: fixed;
    bottom: 60px; /* Adjusted for closeness to button */
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    padding: 5px 10px; /* Reduced padding */
    border-radius: 6px; /* Smaller border radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 4000;
    width: 180px; /* Reduced width */
}

.popup-content {
    text-align: left;
    padding: 5px 0; /* Reduced padding */
}

.popup-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px; /* Reduced margin */
}

/* Prompt List - Less Space */
.prompt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prompt-item {
    cursor: pointer;
    padding: 5px 8px; /* Less padding */
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.2s;
    color: black;
}

.prompt-item:hover {
    background: #f5f5f5;
}

#save-button {
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#save-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* end of chat ai*/

/* attached file in chatbot section*/
.file-chip {
    background-color: #222;
    color: #fff;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
    max-width: 240px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.file-icon {
    font-size: 20px;
    color: #ff5ca2;
}

.file-remove {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: -6px;
    right: -6px;
}
/* end of attached file in chatbot section*/

/* upload doc section */
.upload-card {
    border-radius: 1rem;
    padding: 1.2rem;
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chat-container-doc {
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-container-doc.visible {
    display: block;
    opacity: 1;
}

.file-chip {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}
/* end of upload doc section */

/* loading bar section */
.loading-bar-container {
    height: 4px;
    width: 100%;
    background-color: #290d3e;
    overflow: hidden;
    margin-bottom: 6px;
    border-radius: 2px;
    position: relative;
}

.loading-bar-indeterminate {
    height: 100%;
    width: 40%;
    background-color: #b798d4;
    position: absolute;
    animation: loadingMove 1.2s infinite ease-in-out;
    border-radius: 2px;
}

@keyframes loadingMove {
    0% {
        left: -40%;
    }
    50% {
        left: 30%;
    }
    100% {
        left: 100%;
    }
}

.thinking-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
    font-style: italic;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.bounce-text {
    animation: bounce 1.2s infinite;
    display: inline-block;
    font-weight: bold;
    color: white;
}
/* end of loading bar section */

/* gallery section */
.card-img-gallery-top {
    border: none !important;
    border-radius: 12px !important;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.card-gallery {
    border: none !important;
    background-color: transparent;
}

@media (max-width: 576px) {
    .col-custom {
        padding: 4px;
    }
}

.nav-arrow {
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1055;
    transition: opacity 0.3s ease;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.nav-arrow:hover {
    opacity: 0.7;
}

.modal-backdrop.show {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
}

#galleryDownloadBtn {
    z-index: 1060;
    font-size: 1.2rem;
    color: #333;
}
/* end of gallery section */

/* image generator */
.image-generator-wrapper {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    max-width: 720px;
    width: 100%;
    flex-direction: column;
    transition: all 0.5s ease;
    margin-top: 30px;
}

.image-generator-wrapper.moved-top {
    align-items: flex-start;
    padding-top: 40px;
    transition: all 0.5s ease;
}

#prompt-area {
    transition: all 0.5s ease;
    margin-bottom: 1.5rem;
}

.container-img-generator {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.input-box {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: height 0.2s ease;
}

.button-group-img {
    margin-top: 10px;
}

.generate-btn,
.gallery-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.generate-btn {
    background-color: #6e5a86;
    color: white;
    transition: background-color 0.3s ease;
}

.generate-btn:hover {
    background-color: #906eb3ff;
}

.gallery-btn {
    background-color: #555;
    color: white;
    transition: background-color 0.3s ease;
}

.gallery-btn:hover {
    background-color: #333;
}

.checkbox-section {
    margin-top: 15px;
    font-family: "Montserrat", sans-serif;
}

.input-section,
.button-group-img {
    width: 100%;
}

.button-group-img {
    display: flex;
}

.generate-btn,
.gallery-btn {
    flex: 1;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loader {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.loader p {
    animation: bounce 1s infinite;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.generated-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.moved-top #prompt-area {
    margin-bottom: 2rem;
}

.image-generator-wrapper.moved-top {
    align-items: flex-start;
    padding-top: 40px;
}

.previous-images-grid .card {
    background: transparent;
}

.previous-images-grid img {
    aspect-ratio: 1 / 1;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
/* end of image generator section */

/* image and video player */
.responsive-media {
    width: 100%;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    max-width: 90%;
    border-radius: 12px;
}
/* end of image and video player */
