@tailwind base;
@tailwind components;
@tailwind utilities;


:where([class^="ri-"])::before {
    content: "\f3c2";
}

.notification-item.unread {
    background-color: rgba(0, 147, 221, 0.02);
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: #f9fafb;
}

.sidebar {
    width: 260px;
    transition: all 0.3s;
    z-index: 50;
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.sidebar-mini {
    width: 70px;
}

.sidebar-mini .menu-text {
    display: none;
}

.sidebar-mini .menu-item {
    display: flex;
    justify-content: center;
}

.content-area {
    transition: all 0.3s;
}

.main-content {
    min-height: calc(100vh - 64px);
}

@media (max-width: 1024px) {
    .content-area {
        margin-left: 0 !important;
    }

    .sidebar {
        top: 0;
        left: 0;
        height: 100vh;
        background: white;
        z-index: 1001;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: opacity 0.3s;
        opacity: 0;
        pointer-events: none;
    }

    .overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.menu-item {
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-item:hover {
    background-color: rgba(0, 147, 221, 0.05);
}

.menu-item.active {
    background-color: rgba(0, 147, 221, 0.1);
    color: #0093DD;
}

.menu-item.active i {
    color: #0093DD;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 50;
}

.show {
    display: block;
}

.stat-card {
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 50;
        height: 100vh;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 45;
    }
}

table.dataTable>thead>tr>th{
    /* border-bottom: 0!important; */
    background-color: #fafafa;
    padding: 15px!important;
}

table.dataTable>thead>tr>th:first-child{
    border-top-left-radius: 10px;
}

table.dataTable>thead>tr>th:last-child{
    border-top-right-radius: 10px;
}




.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_length select:focus-visible,
.dataTables_wrapper .dataTables_filter input
 {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    outline:none;
}


.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 50%;
    transition: all 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{
    background: #0093DD!important;
    color: white!important;
}

h1.ce-header{
    font-size: 32px;
}

h2.ce-header{
    font-size: 24px;
}

h3.ce-header{
    font-size: 18.72;
}

h4.ce-header{
    font-size: 16px;
}

h5.ce-header{
    font-size: 13.28px;
}

h6.ce-header{
    font-size: 10.72px;
}

h1.ce-header,
h2.ce-header,
h3.ce-header,
h4.ce-header,
h5.ce-header,
h6.ce-header
{
    font-weight: 700;
}

.ce-block__content {
    max-width: 100%;
    padding: 10px;
}


.ce-toolbar__content {
    max-width: 50px;
    margin: 0 auto;
    position: relative;
}


.ce-toolbar__actions, .ce-toolbar__actions:hover {
    background:  black;
    color: white;
}

.ce-toolbar__plus, .ce-toolbar__plus:hover,
.ce-toolbar__settings-btn, .ce-toolbar__settings-btn:hover {
    color: white;
    background: black;
}


.error{
    font-size: 14px;
    color: #ff4500;
    padding: 10px;
}

.form-header{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}


.tag-container{
     padding: 15px;
     display: inline-block;
     border: 1px solid #ccc;
     width: 100%;
     border-radius: 5px;
}

.tag-container .tags{
     display: inline;
}

.tag-container .tag{
     padding: 5px 8px;
     border-radius: 5px;
     background-color: #0093DD;
     display: inline-block;
     font-size: 14px;
     margin-bottom: 10px;
     color:white;
     max-width: 100%;
     white-space: wrap;
     word-break: break-all;
}

.tag-container .tag span{
    cursor: pointer;
}

.tag-container .input-tag,
.tag-container .input-tag:focus,
.tag-container .input-tag:focus-within{
     border: none;
     outline:none;
     margin-left: 10px;
     font-size: 14px;
     min-width: 200px;
     width: 100%;
     background-color: transparent;
}


.d-flex-update-img-container{
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-basis: 48%;
    gap: 10px;
}


.d-flex-update-img-container .img-container{
    overflow: hidden;
    border: 1px solid #cccccc;
    border-radius: 7px;
    height: 200px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-flex-update-img-container .img-container img{
    height: 100%;
    width: auto;
}

.white-space-nowrap{
    white-space: nowrap;
}

.ql-container{
    min-height: 300px;
}


.table-container {
    overflow-x: auto;
}

.table-container table {
    min-width: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.subscribed {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.status-badge.unsubscribed {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #4b5563;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}


.bulk-actions {
    display: none;
}

.bulk-actions.show {
    display: flex;
}



.tab-button {
    position: relative;
}

.tab-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s;
}

.tab-button.active::after {
    background-color: #0093DD;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


@media (max-width: 640px) {

    .email-table th:nth-child(4),
    .email-table td:nth-child(4) {
        display: none;
    }
}


 .industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.social-icon {
    transition: all 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.client-logo {
    transition: all 0.2s ease;
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.social-icon {
    transition: all 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.client-logo {
    transition: all 0.2s ease;
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: white;
    border: 2px solid #d1d5db;
    transition: all 0.2s;
}

.custom-checkbox.checked {
    background-color: #0093DD;
    border-color: #0093DD;
}

.custom-checkbox.checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: #0093DD;
}

input:checked+.switch-slider:before {
    transform: translateX(20px);
}


 .image-upload-container {
        position: relative;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
      }
      .image-upload-container:hover .image-upload-overlay {
        opacity: 1;
      }
      .image-upload-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s;
      }
      .char-counter {
        position: absolute;
        bottom: 8px;
        right: 12px;
        font-size: 12px;
        color: #6b7280;
      }
