* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

button,
input,
select,
textarea {
    font-family: "Montserrat", sans-serif;
}

hr.menu-divider {
    border-top: 1px solid #eeeeee69 !important;
    margin: 15px 0 !important;
}

:root {
    --black: #000;
    --white: #fff;
    --primary: #2C83CE;
}

.main-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: auto;
}

.pubmaxx-login-container {
    background: url(../img/pubmaxx-bg.png) no-repeat center top;
    display: flex;
    justify-content: center;
    background-size: cover;
    align-items: center;
    height: 100vh;

}

.pubmaxx-container {
    display: flex;
    width: 70%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pubmaxx-container .left-panel {
    width: 400px;
    background: url(../img/cloud-gif_2.gif) no-repeat center;
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    padding-left: 30px;
}

.pubmaxx-container .left-panel .content {
    text-align: center;
    padding: 20px;
}

.pubmaxx-container .left-panel h4 {
    font-weight: 400;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 34px;
}

.pubmaxx-container .left-panel .logo img {
    width: 70px;
}

.left-panel h1 {
    font-size: 28px;
    margin-bottom: 34px;
}

.pubmaxx-container .left-panel p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.pubmaxx-container .right-panel {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    padding-left: 20px;
}

.pubmaxx-container .form-container {
    width: 100%;
    max-width: 350px;
}

.pubmaxx-container .form-container h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    text-align: center;
}

.pubmaxx-container .form-container .subtitle {
    color: var(--black);
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
    font-size: 15px;
    margin-top: 4px;

}

.pubmaxx-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.pubmaxx-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #CFCFCF;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    outline: none;
    background-color: #F6F6F6;
    color: #919191;
    transition: 0.3s;
}

.pubmaxx-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.pubmaxx-container .forgot {
    display: inline-block;
    font-size: 13px;
    color: #2C83CE;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 25px;
}

.pubmaxx-container button,
.pubmaxx-container .reset-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pubmaxx-container .reset-btn {
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.pubmaxx-container button:hover,
.pubmaxx-container .reset-btn:hover {
    background: #187bcd;
    transform: scale(1.04);
}


.pubmaxx-container .right-panel form>div {
    position: relative;
}

.pubmaxx-container .right-panel span {
    position: absolute;
    left: 0;
    bottom: 9px;
    font-size: 11px;
    color: #ff0000bf;
    font-weight: 400;
}

.pubmaxx-container .right-panel span.success-alert {
    color: #008000e3;
}


.sidebar {
    width: 230px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    color: white;
    transition: width 0.4s ease;
    z-index: 9;
}

.sidebar.show {
    display: block;
    top: 0;
}

.inner-nav {
    background-color: #2C83CE;
    border-top-right-radius: 50px;
    height: 100%;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.4s ease;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    transition: opacity 0.3s;
}

.logo a,
.logo a:hover {
    text-decoration: none;
}

.logo img {
    width: 190px;
    transition: width 0.4s;
}

.dashboard {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.dashboard h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.dashboard .email {
    font-size: 13px;
    opacity: 0.9;
    line-height: 24px;
    margin: 0;
    font-weight: 400;
    display: inline-block;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: pointer;
}

.dashboard span {
    position: fixed;
    top: 122px;
    left: 20px;
    background: #b6b6b6;
    color: #000;
    border-radius: 4px;
    padding: 2px 7px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.dashboard .email:hover+span {
    opacity: 1;
    visibility: visible;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
    transition: all 0.4s ease;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}

.menu .submenu a {
    font-size: 12px;
    padding: 8px;
    margin-top: 4px;
}

.menu a.active,
.menu a:hover {
    background-color: #D9EDFF;
    color: #000;
}

.collapse-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.collapse-btn img {
    width: 30px;
    transition: transform 0.3s;
}

.collapse-btn:hover img {
    transform: scale(1.1);
}

/* COLLAPSED STATE */
.collapsed {
    width: 80px;
}

.collapsed .logo img {
    width: 70px;
    margin: 0 auto;
}

.collapsed .dashboard h3,
.collapsed .dashboard .email {
    display: none;
}

.collapsed .menu a span+span {
    display: none;
}

.collapsed .menu {
    width: 100%;
}

.collapsed .menu a {
    justify-content: center;
    padding: 6px 0;
}

.collapsed .collapse-btn {
    transform: rotate(180deg);
}


.filter-bar {
    background: #F2F9FF;
    border-radius: 10px;
    padding: 16px 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.inner-filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #000;
    flex-shrink: 0;
}

.filter-label .material-symbols-outlined {
    font-size: 20px;
    margin-right: 6px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #000;
}

.filter-item input.form-control {
    width: 160px;
}

.filter-item label {
    font-weight: 600;
    margin-bottom: 4px;
}

.filter-bar input[type="date"],
.filter-bar select {
    background: #E0EFFB;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    color: var(--black);
    outline: none;
    min-width: 160px;
    line-height: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button.apply-btn,
button.reset-btn {
    background: var(--white);
    border: 1px solid #707070;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

button.apply-btn:hover,
button.reset-btn:hover {
    background: #e9e9e9;
}

.export-btn-container {
    display: flex;
    justify-content: end;
    margin-top: 20px;
}

.export-btn-container button {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    border: 0;
    border-radius: 5px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
}

.export-btn-container button span {
    font-size: 17px;
}

.export-btn-container button span+span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.export-btn-container button:hover span+span {
    opacity: 1;
    width: auto;
    margin-left: 4px;
}



.performance-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px 14px 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.performance-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    margin-bottom: 4px;
}

.performance-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.table-container {
    width: 100%;
    padding-bottom: 20px;
    height: 100%;
    max-height: 500px;
    overflow: auto;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #D6D6D6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a19f9f;
}


.table-container {
    overflow-x: auto;
    border-radius: 6px;
}

.performance-card table {
    border-collapse: collapse;
    width: 100%;
    /* table-layout: fixed; */
    /* min-width: 1300px; */
}

.resize-table-container table {
    table-layout: fixed;
    min-width: 1300px;
}

.performance-card table th,
.performance-card table td {
    text-align: left;
    white-space: nowrap;
    position: relative;
}


.performance-card th {
    padding: 12px 10px;
    font-size: 14px;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    position: relative;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.resize-table-container table th {
    cursor: col-resize;
}

.resize-table-container table th,
.resize-table-container table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    cursor: col-resize;
    user-select: none;
    height: 100%;
    background: transparent;
}

.resize-table-container .resizer::after,
.resize-table-container .resizing .resizer::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 2px;
    height: 100%;
    background: #00000033;
    opacity: 0.8;
}

.performance-card td {
    padding: 12px 10px;
    font-size: 14px;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.performance-card tbody tr:nth-child(odd) {
    background: #F9F9F9;
}

.performance-card tbody tr:hover {
    background: #eef6ff;
}

.performance-card .no-data {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 15px;
}

.mobile-header {
    display: none;
}

.profile-form-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 40px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    margin: auto;
}

.profile-form-container label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 6px;
}

.profile-form-container input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 15px;
    color: #333;
    outline: none;
}

.profile-form-container .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -10px;
}

.profile-form-container button {
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.profile-form-container .btn-submit {
    background-color: var(--primary);
    color: #fff;
}

.profile-form-container .btn-submit:hover {
    background-color: #226dad;
}

.profile-form-container .btn-reset {
    background-color: #f2f2f2;
    color: #666;
}

.profile-form-container .btn-reset:hover {
    background-color: #e0e0e0;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    appearance: none;
    cursor: pointer;
}

.custom-dropdown::-ms-expand {
    display: none;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-wrapper::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #000000;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


.custom-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 131, 206, 0.3);
}



.pagination-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 8px;
    font-size: 13px;
    color: #000;
}

.pagination-container select {
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 4px 24px 4px 8px;
    font-size: 14px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><polygon fill='black' points='0,0 10,0 5,6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    cursor: pointer;
}

.pagination-container .nav-btn {
    border: none;
    background: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    color: #656565;
    transition: color 0.2s;
}

.pagination-container .nav-btn:hover {
    color: #000;
}

.inner-nav>div {
    height: 100%;
}

/* sidebar related changes */
.menu {
    display: flex;
    flex-direction: column;
    width: 222px;
    overflow: auto;
    height: 90%;
}


.menu-item,
.menu-toggle {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.menu-toggle {
    justify-content: space-between;
    /* background-color: #f5f5f5; */
    font-weight: 600;
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
}

.submenu-item {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #555;
}

.menu-group.open .submenu {
    display: flex;
    padding-left: 10px;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-group.open .toggle-icon {
    transform: rotate(180deg);
}

/* sidebar related changes */
.reset-container .inner-grp {
    position: relative;
}

.reset-container input.active {
    border: 1px solid #1DAE00;
    padding-right: 36px;
}

.reset-container .inner-grp span {
    display: none;
}

.reset-container .inner-grp span.active {
    color: #1DAE00;
    position: absolute;
    left: unset;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 0;
    display: block;
}

.profile-form-container .error {
    color: #ff0000;
    font-size: 13px;
}

.date-filter {
    cursor: pointer;
    position: relative;
}

.date-filter input {
    pointer-events: none;
}

.date-filter:focus-within,
.date-filter:hover {
    background-color: #f9f9f9;
    border-radius: 5px;
}

.chosen-single {
    width: 160px;
}

.performance-card .no-data {
    text-align: center;
    padding: 20px;
    color: #A6A6A6;
    font-size: 13px;
    font-weight: 400;
}

.back-login {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 26px;
}

.pubmaxx-container .back-login a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
}

.back-login a img {
    width: 7px;
}

.form-group .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    line-height: 10px;
    transition: color 0.2s ease;
}

.form-group .toggle-password span {
    color: #919191;
    font-size: 20px;
    position: unset;
}

.form-group .toggle-password:hover {
    color: #000;
}

.charts-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.charts-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.charts-card.hide {
    display: none;
}

.chart-card {
    display: flex;
    align-items: center;
}

.chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}



.charts-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.charts-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.charts-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 20px;
    text-align: left;
}

.charts-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.charts-no-data.hide {
    display: none;
}

.charts-no-data img {
    width: 80px;
}

.charts-no-data h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 5px;
    color: #4A4A4A;
}

.charts-no-data p {
    font-size: 14px;
    color: #4A4A4A;
    font-weight: 400;
    margin: 0;
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-btn {
    background: transparent;
    border: 0;
    color: #B3DCFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding-top: 3px;
    position: relative;
}

.notification-btn::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #AF2F2F;
    border-radius: 50%;
    top: 9px;
    position: absolute;
    right: 4px;
}

.notification-btn span {
    font-size: 32px;
}

/* Hide red bubble class */
.notification-btn.hide-bubble::after {
    display: none;
}

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

    25% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-12deg);
    }

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

.notification-btn.shake {
    animation: shake 0.4s ease-in-out;
}

.notify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 71%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 99;
}

.drawer {
    position: fixed;
    top: 0;
    right: -60%;
    width: 50%;
    max-width: 90%;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-radius: 12px 0 0 12px;
    padding-bottom: 20px;
}

.drawer.active {
    right: 0;
}

.notify-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 20px 18px;
}

.drawer-header .left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.drawer-header a {
    color: #2C83CE;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #2C83CE;
}

.drawer-header a:focus {
    text-decoration: none;
}

.drawer-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primaryText);
}

.close-drawer {
    cursor: pointer;
    line-height: 0;
    transition: transform 0.3s ease;

}

.close-drawer img {
    width: 14px;
}

.drawer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: auto;
    padding: 20px;
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.empty-state.hide {
    display: none;
}

.empty-state .icon-circle {
    margin: 0 auto 30px;
}

.empty-state .icon-circle img {
    width: 70px;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.empty-state p {
    font-size: 14px;
    color: #777;
}

.notification-container {
    padding: 42px 0;
}

.notification-list {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 14px;
    width: 100%;
    height: 100%;
}

.notification-list.hide {
    display: none;
}

.notification-card {
    display: flex;
    align-items: center;
    background: #F6F6F6;
    padding: 22px 26px;
    border-radius: 18px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
    gap: 40px;
    width: 100%;
}

.notification-card.today {
    background: #F2F9FF;
}

.timesdate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.notification-card .time-label,
.notification-card .date-label {
    font-size: 14px;
    color: #6B6B6B;
    display: block;
    text-align: left;
    text-wrap-mode: nowrap;
    font-weight: 500;
}

.notification-card .time-label {
    color: #000000;
}

.notification-card.today .time-label,
.drawer-notification-list .notification-card.today .date-label {
    color: #2C83CE;
}

.notification-card h4 {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--black);
    text-align: left;
}

.notification-card p {
    margin: 0;
    font-size: 18px;
    color: var(--black);
    line-height: 22px;
    text-align: left;

}

.drawer-notification-list .notification-card {
    flex-direction: column;
    width: 100%;
    align-items: start;
    gap: 8px;
}

.drawer-notification-list .notification-card h4 {
    margin: 0;
}

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    padding: 20px;
    z-index: 9999;
}

.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    background: #fff;
    width: 600px;
    max-width: 100%;
    padding: 32px 30px 25px;
    border-radius: 12px;
    transform: translateY(-20px);
    transition: 0.3s ease;
    position: relative;
}

.contact-modal-overlay.active .modal {
    transform: translateY(0);
}

/* Header */
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primaryText);
    font-weight: 700;
}

.close-contact-modal {
    font-size: 44px;
    cursor: pointer;
    font-weight: 300;
    position: absolute;
    right: 12px;
    top: -7px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.close-contact-modal:hover,
.close-drawer:hover,
.close-icon:hover {
    transform: rotate(90deg);
}

/* Form fields */
.contact-modal-overlay label {
    display: block;
    margin-top: 25px;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-modal-overlay .form-box {
    position: relative;
}

.contact-modal-overlay .input-field,
.contact-modal-overlay textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
    background: #F2F3F5;
    color: #666666;
    font-weight: 500;
    font-size: 13px;
}

.contact-modal-overlay textarea {
    height: 120px;
    resize: none;
    display: block !important;
    visibility: visible !important;
}

#contactModal #cke_editor1 {
    display: none !important;
}

.attach-wrapper {
    margin: 24px 0 15px;
    display: flex;
    align-items: center;
    /* gap: 12px; */
}

.attach-wrapper input {
    opacity: 0;
    width: 174px;
}

.attach-btn {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: absolute;
}

.attach-btn>span {
    font-size: 16px;
}


.file-name {
    font-size: 14px;
    color: #555;
    /* margin-left: 86px; */
}


/* Submit button */
.submit-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

#contactModal .submit-btn {
    padding: 6px 34px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.25s, box-shadow 0.25s;
}

#contactModal .submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


.integration-container {
    display: flex;
    overflow: hidden;
    height: 82vh;
    padding: 42px 0 20px;
}


.integration-container .left {
    width: 30%;
    overflow-y: auto;
    padding-right: 10px;
    border-right: 1px solid #b4b4b4;
}

.integration-container .right {
    width: 70%;
    overflow-y: auto;
    background: #fff;
}

.integration-container .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: column;
}

.integration-container .tab-title {
    border: none;
    cursor: pointer;
    color: var(--black);
    font-weight: 600;
    background-color: transparent;
    text-align: left;
    font-size: 15px;
}


.integration-container .menu-group {
    display: none;
}

.integration-container .menu-group.active {
    display: block;
}

.integration-container .left h3 {
    cursor: pointer;
    margin: 15px 0 5px;
    color: #6B6B6B;
    font-weight: 500;
    font-size: 13px;
    position: relative;
}


.sub-menu h3::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: #ccc;
}


.integration-container .sub-menu h3.active {
    color: #2C83CE;
}

.integration-container .right h3 {
    margin: 15px 0 5px;
    color: #6B6B6B;
    font-weight: 500;
    font-size: 13px;
}

.integration-container .tab-item {
    margin-bottom: 24px;
}

.integration-container .tab-item ul {
    list-style: none;
    padding-left: 15px;
    line-height: normal;
}

.integration-container .right ul,
.integration-container .right ol {
    line-height: normal;
    padding-left: 14px;
}

.integration-container .right li {
    font-size: 12px;
    font-weight: 400;
}


.integration-container .sub-menu {
    margin-left: 15px;
    display: none;
    position: relative;
}

.integration-container .tab-item.active .sub-menu {
    display: block;
}

.sub-menu::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0;
    width: 1px;
    height: 100%;
    background: #e0e0e0;
}

.integration-container .tab-item li {
    cursor: pointer;
    margin: 12px 0;
    color: #6B6B6B;
    font-weight: 500;
    font-size: 13px;
}

.integration-container .content {
    display: none;
    padding: 0 10px 0 40px;
}

.integration-container .content h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 6px;
}

.integration-container .content p {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    color: var(--black);
    margin: 6px 0;
}

.integration-container .content.active {
    display: block;
}

.integration-container .section-block {
    padding-bottom: 15px;
}


.highlight {
    background: #ffff0052;
}

.code-box {
    position: relative;
    margin: 15px 0;
}

.code-box button{
        position: absolute;
    right: 10px;
    top: 9px;
    background-color: transparent;
    outline: none;
    border: 0;
}

.code-box code {
    white-space: pre;
}

.code-box pre{
    padding-top: 40px;
}

.code-box::-webkit-scrollbar {
    height: 6px;
}

.code-box::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}


.doc-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.doc-section h3 {
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.doc-section h4 {
    font-size: 15px;
    margin-top: 12px;
}



.doc-section p,
.doc-section li {
    font-size: 15px;
    line-height: 1.6;
}

.doc-section ul,
.doc-section ol {
    margin-left: 20px;
}

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

.thanks-popup-box {
    background: #fff;
    width: 350px;
    padding: 32px 20px 26px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
}

.thanks-popup-box .close-icon {
    position: absolute;
    top: -4px;
    right: 8px;
    font-size: 37px;
    transition: transform 0.3s ease;

    cursor: pointer;
}

.thanks-popup-box .checkmark {
    margin-bottom: 20px;
}

.thanks-popup-box .checkmark img {
    width: 80px;
}

.thanks-popup-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--black);
    line-height: 28px;
}

.thanks-popup-box p {
    color: #4D4D4D;
    font-size: 15px;
    margin-bottom: 25px;
    font-weight: 500;
}

.thanks-popup-box .ok-btn {
    background: var(--primary);
    color: var(--white);
    padding: 7px 55px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.thanks-popup-box .ok-btn:hover {
    transform: scale(1.05);
}

/* Smooth animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.error-text {
    color: #ff0000;
    font-size: 12px;
    margin-top: 4px;
    position: absolute;
    left: 0;
    bottom: -20px;
}


@media (max-width: 850px) {
    .pubmaxx-container {
        flex-direction: column;
        width: 95%;
        height: 90vh;
        overflow: auto;
        scrollbar-width: none;
    }

    .pubmaxx-container .left-panel {
        border-radius: 20px 20px 0 0;
        justify-content: center;
        height: 400px;
        width: 100%;
        background: var(--primary);
        padding-left: 0;
    }

    .pubmaxx-container .right-panel {
        padding: 30px 20px;
    }
}



@media (max-width:786px) {
    .sidebar {
        display: none;
        position: fixed;
        z-index: 1000;
        height: 100%;
    }

    .collapse-btn {
        display: none;
    }

    .collapsed {
        width: 70px;
    }

    .appWrapper.header-fixed.aside-fixed #content {
        left: 0;
        width: 100%;
        top: 0;
    }

    .tile .tile-header {
        flex-direction: column-reverse;
        padding: 0 0 12px;
    }

    .tile .tile-header div {
        width: 100%;
    }

    .tile .tile-header ul {
        width: 100%;
        text-align: right;
        margin: 0;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo {
        padding: 0;
    }

    .mobile-header button {
        background-color: transparent;
        border: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .mobile-header button span {
        font-size: 26px;
    }

    .filter-bar {
        position: relative;
        padding: 8px;
        padding-top: 38px;
    }

    .filter-label {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .filter-item {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .tile-body {
        margin: 0;
    }

    .tile .tile-header h1 {
        font-size: 12px;
        font-weight: 700;
        line-height: 16px;
    }

    .tile .tile-header h2 {
        font-size: 12px;
        line-height: 23px;
    }

    .logo img {
        width: 120px;
    }

    .page {
        padding: 0px 20px 20px;
    }

    .filter-item label {
        font-size: 12px;
        width: 80px;
    }

    .inner-filter-bar,
    .dropdown-wrapper {
        width: 100%;
    }

    .dropdown-wrapper {
        width: calc(100% - 80px);
    }

    .filter-bar input[type="date"],
    .filter-bar select {
        font-size: 12px;
        line-height: 10px;
        width: calc(100% - 80px);
        min-width: unset;
    }

    .filter-bar select {
        width: 100%;
    }

    .sidebar .logo {
        display: none;
    }

    .profile-form-container {
        padding: 15px;
    }

    .profile-form-container form {
        width: 100%;
    }

    .list-inline .nav-profile {
        padding: 0;
    }

    button.apply-btn,
    button.reset-btn {
        font-size: 10px;
    }

    .actions-btns {
        display: flex;
        gap: 5px;
        justify-content: end;
        width: 100%;
    }

    .admin-filter-grp .filter-item label {
        width: 100px;
    }

    .admin-filter-grp .filter-item input.form-control,
    .admin-filter-grp .dropdown-wrapper {
        width: calc(100% - 100px);
    }

    .integration-container {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .integration-container .content {
        padding-left: 0;
    }

    .integration-container .left,
    .integration-container .right {
        width: 100%;
        height: auto;
    }

    .integration-container .left {
        border: none;
        border-bottom: 1px solid #b4b4b4;
    }

    .integration-container .right {
        padding-top: 20px;
    }

    .notification-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notification-card h4 {
        font-size: 15px;
    }

    .notification-card p {
        font-size: 14px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .filter-item {
        width: 100%;
    }

    button.apply-btn {
        align-self: flex-end;
        padding: 5px 8px;
        font-size: 10px;
    }

    .export-btn-container {
        margin-top: 10px;
    }

    .export-btn-container button {
        font-size: 10px;
    }

    .performance-card {
        padding: 10px;
        margin-top: 10px;
    }

    .performance-card th,
    .performance-card td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .performance-card h2 {
        font-size: 12px;
    }

    .performance-card p {
        font-size: 11px;
    }

    .dashboard span {
        top: 40px;
    }
}

@media (max-width: 600px) {
    .profile-form-container .form-container {
        padding: 20px;
    }

    .profile-form-container label {
        font-size: 15px;
    }

    .profile-form-container input {
        font-size: 14px;
    }

    .profile-form-container button {
        font-size: 13px;
        padding: 8px 14px;
    }

    .charts-card {
        padding: 15px;
    }

    .no-data-icon {
        font-size: 48px;
    }

    .notification-card {
        padding: 18px;
    }

    .drawer-header {
        flex-direction: column;
        align-items: start;
        gap: 12px;
    }



}



@media (max-width: 500px) {
    .pubmaxx-container .left-panel p {
        font-size: 13px;
    }

    .pubmaxx-container .form-container h2 {
        font-size: 20px;
    }

    .pubmaxx-container .form-container .subtitle {
        font-size: 12px;
    }

    .pubmaxx-container .left-panel h4 {
        margin-bottom: 24px;
    }

    .left-panel h1 {
        margin-bottom: 10px;
    }

    .pagination-container {
        font-size: 13px;
        gap: 6px;
    }

    .pubmaxx-container button,
    .pubmaxx-container .reset-btn {
        font-size: 14px;
    }

    .pagination-container select {
        padding: 4px 18px 4px 6px;
    }

    .tile .tile-header ul {
        margin: 10px 0;
    }

    .tile .tile-header .btn {
        font-size: 11px;
    }

    .drawer {
        width: 100%;
        border-radius: 0;
        right: -100%;
    }

    .contact-modal {
        padding: 20px;
    }

    .submit-btn {
        width: 100%;
    }

    .submit-wrap {
        justify-content: center;
    }

    .attach-wrapper {
        flex-direction: column;

    }

}



@media (max-width:400px) {
    .thanks-popup-box {
        width: 90%;
    }
}


@media (min-width:1266px) {
    .contact-modal {
        width: 800px;
    }

    .contact-modal-header h2 {
        font-size: 32px;
    }

    .contact-modal-overlay label {
        font-size: 20px;
    }

    .contact-modal-overlay .input-field,
    .contact-modal-overlay textarea,
    .attach-btn {
        font-size: 18px;
    }

    .attach-btn>span {
        font-size: 20px;
    }

    #contactModal .submit-btn {
        font-size: 22px;
    }

    .thanks-popup-box .checkmark img {
        font-size: 110px;
    }

    .thanks-popup-box h2 {
        font-size: 30px;
        line-height: 36px;
    }

    .thanks-popup-box {
        width: 480px;
    }

    .thanks-popup-box p,
    .thanks-popup-box .ok-btn {
        font-size: 24px;
    }

    .thanks-popup-box .close-icon {
        top: -9px;
        font-size: 50px;
    }




}