/* Google Font Import - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-quicksand);
}

:root {
    /* ===== Colors ===== */
    --body-color: #f9f9f9;
    --sidebar-color: #fff;
    --primary-color: #695cfe;
    --primary-color-light: #f6f5ff;
    --toggle-color: #ddd;
    --text-color: #707070;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;

    --font-family-quicksand: "Quicksand", serif;
}

body {
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);
}

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

body.dark {
    --body-color: #18191a;
    --sidebar-color: #242526;
    --primary-color: #3a3b3c;
    --primary-color-light: #3a3b3c;
    --toggle-color: #fff;
    --text-color: #ccc;
}

/* ===== Sidebar ===== */
/* live mode */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
}

/* dev mode */
/* .sidebar {
    position: fixed;
    top: 40px;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
} */

.sidebar.close {
    width: 88px !important;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
    height: 30px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon {
    min-width: 30px;
    border-radius: 6px;
}

.sidebar .icon {
    min-width: 45px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.sidebar .text,
.sidebar .icon {
    color: var(--text-color);
    transition: var(--tran-03);
}

.sidebar .text {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
}

.sidebar.close .text {
    opacity: 0;
}

/* =========================== */

.sidebar header {
    position: relative;
}

.sidebar header .image-text {
    display: flex;
    align-items: center;
}

.sidebar header .logo-text {
    display: flex;
    flex-direction: column;
}

header .image-text .name {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 600;
}

header .image-text .profession {
    font-size: 12px;
    margin-top: -2px;
    display: block;
}

.sidebar header .image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.sidebar header .image img {
    width: 60px;
    border-radius: 6px;
}

.sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: #707070;
    color: var(--sidebar-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
    color: var(--text-color);
}

.sidebar.close .toggle {
    transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
    margin-top: 10px;
}

.sidebar li.search-box {
    border-radius: 6px;
    background-color: var(--primary-color-light);
    cursor: pointer;
    transition: var(--tran-05);
}

.sidebar li.search-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    background-color: var(--primary-color-light);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--tran-05);
}

.sidebar li a {
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}

.sidebar li a:hover {
    background-color: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
    color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
    color: var(--text-color);
}

.sidebar .menu-bar {
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

.sidebar .menu-bar .mode {
    border-radius: 6px;
    background-color: var(--primary-color-light);
    position: relative;
    transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
    height: 50px;
    width: 60px;
}

.mode .sun-moon i {
    position: absolute;
}

.mode .sun-moon i.sun {
    opacity: 0;
}

body.dark .mode .sun-moon i.sun {
    opacity: 1;
}

body.dark .mode .sun-moon i.moon {
    opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
    position: absolute;
    right: 0;
    height: 100%;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}

.toggle-switch .switch {
    position: relative;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
    transition: var(--tran-05);
}

.switch::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    background-color: var(--sidebar-color);
    transition: var(--tran-04);
}

body.dark .switch::before {
    left: 20px;
}

/* live mode */
.home {
    position: absolute;
    top: 0;
    top: 0;
    left: 250px;
    height: 100vh;
    width: calc(100% - 250px);
    background-color: var(--body-color);
    transition: var(--tran-05);
}

/* dev mode */
/* .home {
    position: absolute;
    top: 40px;
    left: 250px;
    height: 100vh;
    width: calc(100% - 250px);
    background-color: var(--body-color);
    transition: var(--tran-05);
} */

.home .textContent {
    font-size: 12px;
    font-weight: 500;
    /* color: var(--text-color); */
    padding: 6px 30px;
}

.sidebar.close~.home {
    left: 80px;
    height: 100vh;
    width: calc(100% - 80px);
}

body.dark .home .text {
    color: var(--text-color);
}

.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 300px;
    background-color: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.4s ease;
    z-index: 1000;
}

.side-panel.active {
    right: 0;
}

.side-panel-header {
    background-color: #4a90e2;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
}

.filter-content {
    padding: 20px;
}

@media only screen and (max-width: 900px) {
    .home {
        left: 80px !important;
        width: 90%;
        top: auto;
    }

    .sidebar.close~.home {
        left: 80px !important;
        width: 90%;
        padding: 3px;
    }

    .home .textContent {
        padding: 0px 0px;
    }

    .cover {
        position: fixed;
        bottom: 0;
        padding: 10px 0px;
        width: 100%;
        background: #fff;
        color: #000;
        z-index: 9999;
        text-align: center;
        height: 70px;
    }

    .sidebar {
        right: auto !important;
        left: 0 !important;
        z-index: 9999;
    }

    .sidebar .menu-bar {
        height: calc(100% - 120px);
    }
}

@media only screen and (max-width: 767px) {
    .home {
        left: 0 !important;
        width: 100%;
        top: auto;
    }

    .sidebar.close~.home {
        left: 0 !important;
        width: 100%;
        padding: 3px;
    }

    .home .textContent {
        padding: 0px 0px;
    }

    .cover {
        position: fixed;
        bottom: 0;
        padding: 10px 0px;
        width: 100%;
        background: #efefef;
        color: #000;
        z-index: 9999;
        text-align: center;
        height: 60px;
    }

    .sidebar {
        right: 0 !important;
        left: auto !important;
        z-index: 9999;
    }

    .sidebar .menu-bar {
        height: calc(100% - 120px);
    }
}


.signup-modal-content {
    border-radius: 24px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.2);
}

.signup-modal-header {
    border-bottom: none;
    padding: .5rem .5rem .5rem;
    background: transparent;
}

.signup-modal-title {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
    width: 70%;
}

.signup-modal-body {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .login-modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        animation: slideUp 0.4s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        80% {
            transform: translateY(-10px);
            opacity: 1;
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Desktop animation: Slide in from the left */
@media (min-width: 769px) {
    .login-modal-dialog {
        animation: slideInLeft 0.4s ease-out;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

.signup-form-group {
    margin-bottom: 1.5rem;
}

.signup-form-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

.signup-form-control {
    padding: 0.6rem .5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    font-size: .7rem;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
}

.signup-form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
    outline: none;
}

.signup-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 16px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

.signup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5457ea, #7c4def);
}

.signup-btn-primary:active {
    transform: translateY(0);
}

.signup-social-login {
    margin-top: 2.5rem;
    text-align: center;
}

.signup-social-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    position: relative;
}

.signup-social-text::before,
.signup-social-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e5e7eb;
}

.signup-social-text::before {
    left: 0;
}

.signup-social-text::after {
    right: 0;
}

.signup-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.7rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signup-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.signup-fb-btn {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.signup-google-btn {
    background: linear-gradient(135deg, #ea4335, #d62516);
}

.signup-twitter-btn {
    background: linear-gradient(135deg, #1da1f2, #0c8bd9);
}

.signup-form-check-input {
    border-radius: 6px;
    width: 1.1rem;
    height: 1.1rem;
}

.signup-form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.signup-form-check-label {
    color: #6b7280;
    font-size: 0.95rem;
}

.signup-forgot-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.signup-forgot-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.signup-btn-close {
    box-shadow: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: none;
    padding: 2px 4px;
    border-radius: 50%;
    font-size: 16px;
}

.signup-btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.signup-social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.signup-input-icon {
    margin-right: 0.5rem;
    color: #6b7280;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.user-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 15px;
    box-shadow: 2px 3px 4px 0px #ececec;
    cursor: pointer;
    margin-top: 10px;
    padding: 10px;
}

.user-card-main-content {
    display: flex;
    gap: 15px;
    width: 100%;
}

.user-card-main-content img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-info {
    font-size: 11px;
    text-align: left;
}

.card-angle {
    margin-left: auto;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 1px 2px 8px 0px rgb(0 0 0 / 16%);
}



/* mobile sidebar */