:root {
    --color1: #a634db;
    --color2: #000000;
    --color3: #f2f2f2;
    --color4: #fdfcf7;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --disabled-color: #aaaaaa;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --small-text: 1.22em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.15s ease-in-out;
}

body {
    font-style: normal;
    transition: all 0.15s ease-in-out;
}

.color-main {
    color: var(--color1);
}

.color-sec {
    color: var(--color2)
}

.color-white {
    color: white;
}

.color-green {
    color: var(--success-color);
}

.color-black {
    color: black;
}

.color-red {
    color: red
}


.font-bold {
    font-weight: bold;
}


.font-3xs {
    font-size: 0.70em;
}


.font-xxs {
    font-size: 0.90em;
}

.font-xs {
    font-size: 1.05em;
}

.font-s {
    font-size: 1.15em;
}

.font-m {
    font-size: 1.38em;
}

.font-l {
    font-size: 1.95em;
}

.font-xl {
    font-size: 2.55em;
}

.font-xxl {
    font-size: 3.05em;
}

.font-xxxl {
    font-size: 3.55em;
}

.show-whitespace {
    white-space: pre;
}


.underline {
    text-decoration: underline;
}

.break-all {
    word-break: break-all;
}

.line-h-1 {
    line-height: 1;
}

.line-h-1-5 {
    line-height: 1.5;
}

.container {
    padding: 0 10px;
    margin: 0 auto;
    max-width: 1400px;
}

.modal-con {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 95vh;
    align-items: center;
    justify-content: start;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color1);
    color: white;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}

.h-100vh {
    height: 100vh;
}

.h-300 {
    height: 300px;
}


.h-250 {
    height: 250px;
}

.h-200 {
    height: 200px;
}

.h-150 {
    height: 150px;
}

.h-100 {
    height: 100px;
}

.h-50 {
    height: 50px;
}


.h-5 {
    height: 5px;
}

.h-10 {
    height: 10px;
}

.h-15 {
    height: 15px;
}

.h-20 {
    height: 20px;
}

.h-25 {
    height: 25px;
}

.h-30 {
    height: 30px;
}

.h-40 {
    height: 40px;
}

.h-45 {
    height: 45px;
}

.h-50 {
    height: 50px;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.min-h-50 {
    min-height: 50px;
}

.min-h-100 {
    min-height: 100px;
}

.min-h-200 {
    min-height: 200px;
}

.min-h-300 {
    min-height: 300px;
}

.min-h-400 {
    min-height: 400px;
}


.min-h-450 {
    min-height: 450px;
}

.min-h-500 {
    min-height: 500px;
}

.min-h-95vh {
    min-height: 95vh;
}

.min-h-100vh {
    min-height: 100vh;
}

.w-2em {
    width: 2em;
}

.w-95p {
    width: 95%;
}


.w-5 {
    width: 5px;
}

.w-10 {
    width: 10px;
}

.w-15 {
    width: 15px;
}

.w-20 {
    width: 20px;
}

.w-25 {
    width: 25px;
}

.w-30 {
    width: 30px;
}

.w-40p {
    width: 40px;
}

.w-50 {
    width: 50px;
}

.w-50p {
    width: 50%;
}

.w-400 {
    width: 400px;
}

.w-300 {
    width: 300px;
}

.w-200 {
    width: 200px;
}

.w-250 {
    width: 250px;
}

.w-150 {
    width: 150px;
}

.w-100 {
    width: 100px;
}

.w-90p {
    width: 90%;
}

.h-90p {
    height: 90%;
}

.w-full {
    width: 100%;
}

.w-fit {
    width: fit-content;
}

.mx-w-full {
    max-width: 100%;
}

.mx-w-half {
    max-width: 50%;
}

.mx-h-full {
    max-height: 100%;
}

.mx-h-600 {
    max-height: 600px;
}

.mx-w-500 {
    max-width: 500px;
}

.mx-w-400 {
    max-width: 400px;
}

.mx-w-600 {
    max-width: 600px;
}

.mx-w-900 {
    max-width: 900px;
}

.mx-w-400 {
    max-width: 400px;
}

.mx-w-300 {
    max-width: 300px;
}

.mx-w-250 {
    max-width: 250px;
}

.mx-w-200 {
    max-width: 200px;
}

.mx-w-250 {
    max-width: 250px;
}

.mx-w-1200 {
    max-width: 1200px;
}

.mx-w-10 {
    max-width: 10px;
}

.img {
    max-width: 100%;
    max-height: 100%;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.col {
    flex-direction: column;
}

.row {
    flex-direction: row;
}

.row-rev {
    flex-direction: row-reverse;
}

.justify-c {
    justify-content: center;
}

.justify-sa {
    justify-content: space-around;
}

.justify-s {
    justify-content: start;
}

.justify-e {
    justify-content: end;
}

.justify-sb {
    justify-content: space-between;
}

.items-sb {
    align-items: space-between;
}

.items-c {
    align-items: center;
}

.items-e {
    align-items: end;
}

.items-s {
    align-items: start;
}

.wrap {
    flex-wrap: wrap;
}

.gap-100 {
    gap: 100px;
}

.gap-50 {
    gap: 50px;
}

.gap-40 {
    gap: 40px;
}

.gap-35 {
    gap: 35px;
}

.gap-30 {
    gap: 30px;
}

.gap-20 {
    gap: 20px;
}

.gap-10 {
    gap: 10px;
}

.gap-5 {
    gap: 5px;
}

.gap-3 {
    gap: 3px;
}

.gap-2 {
    gap: 2px;
}

.gap-1 {
    gap: 1px;
}


.p-30 {
    padding: 30px;
}

.p-40 {
    padding: 40px;
}

.p-50 {
    padding: 50px;
}

.p-60 {
    padding: 60px;
}

.p-70 {
    padding: 70px;
}

.p-80 {
    padding: 80px;
}

.p-90 {
    padding: 90px;
}

.p-100 {
    padding: 100px;
}


.p-20 {
    padding: 20px;
}

.p-15 {
    padding: 15px;
}

.p-10 {
    padding: 10px;
}

.p-5 {
    padding: 5px;
}


.p-3 {
    padding: 3px;
}

.p-2 {
    padding: 2px;
}

.p-1 {
    padding: 1px;
}

.pv-5 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.pv-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.pv-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.pv-25 {
    padding-top: 25px;
    padding-bottom: 25px;
}

.pv-30 {
    padding-top: 30px;
    padding-bottom: 30px;
}


.pv-35 {
    padding-top: 35px;
    padding-bottom: 35px;
}

.pv-50 {
    padding-top: 35px;
    padding-bottom: 35px;
}


.pv-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.pv-150 {
    padding-top: 150px;
    padding-bottom: 150px;
}

.pv-200 {
    padding-top: 200px;
    padding-bottom: 200px;
}

.pv-300 {
    padding-top: 300px;
    padding-bottom: 300px;
}

.ph-5 {
    padding-left: 5px;
    padding-right: 5px;
}

.ph-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.ph-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.ph-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.ph-30 {
    padding-left: 30px;
    padding-right: 30px;
}

.ph-50 {
    padding-left: 50px;
    padding-right: 50px;
}

.pt-100 {
    padding-top: 100px;
}

.pt-50 {
    padding-top: 50px;
}

.pt-10 {
    padding-top: 10px;
}

.mh-5 {
    margin-left: 5px;
    margin-right: 5px;
}

.mh-10 {
    margin-left: 10px;
    margin-right: 10px;
}

.mh-15 {
    margin-left: 15px;
    margin-right: 15px;
}

.mh-20 {
    margin-left: 20px;
    margin-right: 20px;
}

.mh-25 {
    margin-left: 25px;
    margin-right: 25px;
}

.mh-30 {
    margin-left: 30px;
    margin-right: 30px;
}

.mh-35 {
    margin-left: 35px;
    margin-right: 35px;
}


.mh-50 {
    margin-left: 50px;
    margin-right: 50px;
}

.mh-100 {
    margin-left: 100px;
    margin-right: 100px;
}

.mh-150 {
    margin-left: 150px;
    margin-right: 150px;
}

.mh-200 {
    margin-left: 200px;
    margin-right: 200px;
}

.mv-50 {
    margin-top: 50px;
    margin-bottom: 50px;
}

.mv-30 {
    margin-top: 30px;
    margin-bottom: 30px;
}

.mv-20 {
    margin-top: 20px;
    margin-bottom: 20px;
}



.mrt-300 {
    margin-top: 300px;
}

.mrt-200 {
    margin-top: 200px;
}

.mrt-100 {
    margin-top: 100px;
}

.mrt-50 {
    margin-top: 50px;
}

.mrt-30 {
    margin-top: 30px;
}

.mrt-25 {
    margin-top: 25px;
}

.mrt-20 {
    margin-top: 20px;
}

.mrt-10 {
    margin-top: 10px;
}

.mrt-5 {
    margin-top: 5px;
}

.mrb-100 {
    margin-bottom: 100px;
}

.mrb-50 {
    margin-bottom: 50px;
}

.mrb-30 {
    margin-bottom: 30px;
}

.mrb-20 {
    margin-bottom: 20px;
}

.mrb-10 {
    margin-bottom: 10px;
}


.w-half {
    width: 50%;
}

.z-100 {
    z-index: 100;
}

.center {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ltr {
    direction: ltr;
}

.rtl {
    direction: rtl
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--color1) 0%, #8b24c2 100%);
    padding: 5px 30px;
    border: 2px solid #ffffff44;
    color: white;
    cursor: pointer;
    text-align: center;
    border-radius: 12px;
}

.btn-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--color2) 0%, #414141 100%);
    cursor: pointer;
    color: white;
    padding: 5px 30px;
    border: none;
    text-align: center;
    border-radius: 12px;
}

.btn:hover,
.btn-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


.text-outline {
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.777);
    /* Intense black shadow */
}

.text-shadow-2 {
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.933);
    /* Intense black shadow */
}

.underline-text-1 {
    position: relative;
    display: inline-block;
    /* Ensure the text container only takes up the necessary width */
}

.underline-text-1::before {
    content: '';
    position: absolute;
    bottom: 70px;
    /* Adjust the distance from the text */
    left: 50%;
    /* Center the line horizontally */
    transform: translateX(-50%);
    /* Adjust horizontally to center the line */
    width: 50%;
    /* Adjust the length of the line */
    height: 7px;
    /* Adjust the thickness of the line */
    background-color: var(--color1);
    /* Adjust the color of the line */
    border-radius: 100px;
}

.underline-text-2 {
    position: relative;
    display: inline-block;
    /* Ensure the text container only takes up the necessary width */
}

.underline-text-2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Adjust the distance from the text */
    left: 50%;
    /* Center the line horizontally */
    transform: translateX(-50%);
    /* Adjust horizontally to center the line */
    width: 50%;
    /* Adjust the length of the line */
    height: 7px;
    /* Adjust the thickness of the line */
    background-color: var(--color2);
    /* Adjust the color of the line */
    border-radius: 100px;
}

.shadow {
    box-shadow: rgba(17, 17, 26, 0.085) 0px 1px 0px, rgba(17, 17, 26, 0.141) 0px 0px 8px;
}

.shadow-2 {
    box-shadow: rgba(0, 0, 0, 0.11) 0px 10px 20px, rgba(0, 0, 0, 0.114) 0px 6px 6px;
}

.shadow-3 {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 15px 30px, rgba(0, 0, 0, 0.15) 0px 10px 10px;
}

.shadow-4 {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 20px 40px, rgba(0, 0, 0, 0.2) 0px 15px 15px;
}

.shadow-5 {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 25px 50px, rgba(0, 0, 0, 0.25) 0px 20px 20px;
}


.btm-shadow {
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.149);
}

.corner-full {
    border-radius: 100%;
}

.corner-100 {
    border-radius: 100px;
}


.corner-20 {
    border-radius: 20px;
}

.corner-10 {
    border-radius: 10px;
}

.corner-5 {
    border-radius: 5px;
}

.border-1 {
    border: 2px solid var(--color1);
}

.border-1-l {
    border: 5px solid var(--color1);
}

.border-2 {
    border: 2px solid var(--color2);
}

.border-2-l {
    border: 5px solid var(--color2);
}

.font-1 {
    font-size: 1.2em;
}

.font-2 {
    font-size: 1.5em;
}

.text-c {
    text-align: center;
}

.text-r {
    text-align: right;
}

.text-l {
    text-align: left;
}

.pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.bg-dark {
    background-color: var(--dark-bg);
}

.bg-1 {
    background-color: var(--color1);
}

.bg-2 {
    background-color: var(--color2);
}

.bg-3 {
    background-color: var(--color3);
}

.bg-4 {
    background-color: var(--color4);
}

.bg-white {
    background-color: white;
}

.bg-green {
    background-color: var(--success-color);
}

.bg-gray {
    background-color: rgb(188, 188, 188);
}

.bg-red {
    background-color: red;
}

.bg-error {
    background-color: var(--error-color);
}

.bg-black {
    background-color: black;
}

.scroll {
    overflow: scroll;
}

.over-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
}

.absolute {
    position: absolute;
    top: 0;
    left: 0
}


input {
    padding: 5px;
    border-radius: 15px;
    border-color: var(--color1);
    outline: none;
    border-style: solid;
    font-size: var(--small-text);
}

input:focus {
    border-color: var(--color2);
}


textarea {
    height: auto;
    overflow: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

table {
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0;
}

tr {
    padding: 0;
    margin: 0;
    gap: 0;
}

td {
    padding: 0;
    margin: 0;
    gap: 0;
}

table tr {
    background-color: #e4e4e4;
}


/* Loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.close-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: black;
    color: rgb(255, 255, 255);
    font-size: 20px;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.656);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #333;
    /* Change color as needed */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.transition-all {
    transition: all 0.25s ease-in-out;
}

.border-hover-1.border-hover-2.scale.glow.shadow-glow.darker {
    transition: all 0.25s ease-in-out;
}

.underline-hover {
    transition: all 0.25s ease-in-out;
}

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

.darker-on-hover {
    /* Position the overlay */
    position: relative;
    /* Add transition for smooth effect */
    transition: background-color 0.3s ease;
}

/* Define the overlay */
.darker-on-hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0335);
    /* Adjust the alpha value to make it darker/lighter */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.darker-on-hover:hover::after {
    opacity: 1;
}

.scale:hover {
    transform: scale(1.014);
}

.border-hover-1:hover {
    outline: 2px solid var(--color1);
}

.border-hover-2:hover {
    outline: 2px solid var(--color2);
}

.glow:hover {
    box-shadow: 0 0 10px rgb(255, 255, 255);
}

.shadow-hover:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}



.disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
}

.line {
    background-color: white;
    width: 90%;
    height: 1px;
    margin: 35px 0 35px 0;
}

.none {
    opacity: 0;
    display: none;
    visibility: hidden;
}


/* for specifec pages */


/* create class page */
.active-bg {
    background-color: var(--color1);
}

.inactive-bg {
    background-color: var(--disabled-color);
}

.message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    display: none;
    z-index: 1000;
}

.categories-con {
    display: flex;
    align-items: start;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 30px;
}

.line {
    margin-top: 5px;
    width: 200px;
    height: 2px;
    background-color: black;
}

.sub-category {
    padding: 2px;
}

.category:hover {
    color: white;
    background-color: var(--color1);
}

.sub-category:hover {
    color: white;
    background-color: var(--color1);

}

.active-cat {
    color: white;
    background-color: var(--color1);
}

.image-preview {
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.file-input {
    display: none;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.file-label {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    color: #333;
    border: 2px dashed #888;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}

.file-label:hover {
    background: #e0e0e0;
    border-color: #555;
}

.file-label::before {
    content: "📷";
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-label-uploaded::before {
    content: "✅";
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.preview-card {
    text-align: center;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
}

.thumbnail-preview {
    width: 500px;
    height: 500px;
    object-fit: cover;
}

@media (max-width: 560px) {
    .image-preview {
        width: 310px;
        height: 310px;
    }

    .thumbnail-preview {
        width: 310px;
        height: 310px;
    }

}

/* user profile page */

.user-profile-class-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.user-profile-class-img:hover {
    transform: scale(1.15);
}


.user-profile-img-con {
    width: 250px;
    height: 250px;
    overflow: hidden;
    background-color: rgb(183, 183, 183);
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-profile-user-img-con {
    width: 200px;
    height: 200px;
    overflow: hidden;
    background-color: rgb(183, 183, 183);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
}

.user-profile-user-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}


.user-profile-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-profile-page-modal-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 35px;
    color: black;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    cursor: pointer;
    padding: 2px;
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 100%;
}

.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0);
    position: absolute;
    top: 0;
    left: 0;
    border: 5px solid red;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color1) 0%, #8b24c2 100%);
    /* background-color: var(--color1); */
    color: #fff;
    padding: 0;
    margin: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(166, 52, 219, 0.3);
}

.navbar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-backdrop.show {
    display: block;
    opacity: 1;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    position: relative;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
}

/* Nav Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: calc(100% - 20px);
}

/* Highlight Link - Glassmorphism */
.nav-link-highlight {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.nav-link-highlight:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 25px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Admin Link */
.nav-link-admin {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 6px;
}

.nav-link-admin:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e04848 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4);
}

.nav-link-admin::after {
    display: none;
}

/* Register Button */
.nav-link-register {
    background: #fff;
    color: var(--color1) !important;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-link-register:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-link-register::after {
    display: none;
}

/* Chat Link */
.nav-chat-link {
    position: relative;
    padding: 0.5rem 0.75rem;
}

.chat-icon {
    transition: transform 0.2s ease;
}

.nav-chat-link:hover .chat-icon {
    transform: scale(1.1);
}

.nav-chat-link::after {
    display: none;
}

/* Unread Badge */
.unread-count-nav-span {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3344 100%);
    border-radius: 50%;
    border: 2px solid var(--color1);
    visibility: hidden;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
    }
}

/* Logout Button */
.logout-btn {
    background: red;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.logout-icon {
    transition: transform 0.2s ease;
}

.logout-btn:hover {
    background: rgb(190, 0, 0);
}

.logout-btn:hover .logout-icon {
    transform: translateX(3px);
}

.logout-btn::after {
    display: none;
}

/* Hamburger Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1001;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0.6rem 1rem;
    }

    .navbar-menu {
        position: absolute;
        top: 110%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        background: var(--color1);
        border-radius: 12px 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    .navbar-menu.show {
        max-height: 500px;
        opacity: 1;
        padding: 0.75rem;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        justify-content: flex-start;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    .nav-link-highlight {
        background: rgba(255, 255, 255, 0.15);
        margin: 0.25rem 0;
        border-radius: 8px;
    }

    .nav-link-register {
        margin: 0.5rem 0;
        border-radius: 25px;
        justify-content: center;
    }

    .logout-item {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar-toggle {
        display: flex;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .brand-text {
        font-size: 1.1rem;
    }

    .brand-icon {
        font-size: 1.3rem;
    }
}

/* categories page */

.catp-hero {
    background: linear-gradient(175deg, var(--color1) 0%, #521ea5 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg %3E%3Ccircle fill='%23000000' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%233a0075' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%2355008d' cx='400' cy='400' r='400'/%3E%3Ccircle fill='%237000a7' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%238b0fc1' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%23A634DB' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.catp-parent-section {
    margin-bottom: 5rem;
}

.catp-parent-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.catp-parent-title {
    font-size: 2rem;
    color: var(--color1);
    margin: 0;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.catp-parent-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color1);
    transition: width 0.3s ease;
}

.catp-parent-title:hover {
    opacity: 0.8;
    transform: translateX(-5px);
}

.catp-parent-title:hover::after {
    width: 100%;
}

.catp-parent-dot {
    width: 12px;
    height: 12px;
    background: var(--color1);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color1);
}

.catp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.catp-card {
    min-width: 250px;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.catp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(166, 52, 219, 0.15);
    border-color: rgba(166, 52, 219, 0.2);
}

.catp-card-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}

.catp-card-count {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.catp-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fdfcf7;
    border-radius: 20px;
    border: 2px dashed #eee;
}

@media (max-width: 768px) {
    .catp-hero {
        padding: 3rem 1.5rem;
    }

    .catp-parent-title {
        font-size: 1.8rem;
    }
}