body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

/* --- THEME STYLES --- */
/* Dark Theme (Default) */
.theme-dark {
    --bg-primary: #111827;
    /* gray-900 */
    --bg-secondary: #1f2937;
    /* gray-800 */
    --bg-tertiary: #374151;
    /* gray-700 */
    --text-primary: #f3f4f6;
    /* gray-100 */
    --text-secondary: #9ca3af;
    /* gray-400 */
    --border-color: #374151;
    /* gray-700 */
    --accent-color: #3b82f6;
    /* blue-600 */
}

/* Minimalist Theme */
.theme-minimalist {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    /* gray-50 */
    --bg-tertiary: #f3f4f6;
    /* gray-100 */
    --text-primary: #111827;
    /* gray-900 */
    --text-secondary: #6b7280;
    /* gray-500 */
    --border-color: #e5e7eb;
    /* gray-200 */
    --accent-color: #2563eb;
    /* blue-600 */
}

/* Modern Theme */
.theme-modern {
    /* --bg-primary: #f3f4f6; */
    --bg-primary: #fafafa;
    /* gray-100 */
    --bg-secondary: #ffffff;
    --bg-tertiary: #e5e7eb;
    /* gray-200 */
    --text-primary: #1f2937;
    /* gray-800 */
    --text-secondary: #6b7280;
    /* gray-500 */
    --border-color: #e5e7eb;
    /* gray-200 */
    /* --accent-color: #7c3aed; */
    --accent-color: #90b982;
    /* violet-600 */
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    background: url("../images/bg.jpeg");
    overflow: hidden;
}

.card {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    /* box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}
.card-container{
    border-radius: 0.75rem;
    padding: 0px;
    border: 1px solid var(--border-color);
}
.card-container .card-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}
.card-container .card-header .card-title{
    font-size: 16px;
    padding: 0 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap:5px;

}
.card-container .card-header .card-title .icon{
    width: 28px;
    height: 28px;
    background: #ececff;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-container .card-header .card-title svg{
    width: 60%;
    height: 60%;
}
.card-container .card-body{
    height: calc(100% - 50px);
    padding: 15px;
    padding-top: 0px;
}

.theme-modern .card {
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.nav-link.active {
    /* background-color: var(--accent-color); */
    background: rgb(196, 3, 230);
    background: linear-gradient(90deg, #a14aff 0%, #ea72ff 100%);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.07), 0 1px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    color: white;
}

.nav-link:hover {
    background-color: var(--bg-tertiary);
}

#sidebar {
    /* background-color: var(--bg-secondary); */
    /* border-right: 1px solid #e7ece6;
    background-image: linear-gradient( 118deg,  rgba(255,244,228,1) 7.1%, rgba(240,246,238,1) 67.4% ); */
    border-right: 1px solid #f0f0f0;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    width: 230px;
}

#sidebar ul li a {
    display: flex;
    height: 40px;
    align-items: center;
    border-radius: 40px;
    padding: 0px 15px;
    font-size: 12px;
}

#sidebar ul li a:hover {
    background: #00000010;
}

#sidebar ul li a.active:hover {
    background: rgb(196, 3, 230);
    background: linear-gradient(90deg, #a14aff 0%, #ea72ff 100%);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.07), 0 1px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

#sidebar .logo {
    font-size: 18px;
    margin-bottom: 25px;
    justify-content: center;
}

header {
    /* background-color: var(--bg-secondary); */
    /* background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color); */
    background: rgba(255, 255, 255, 0.9);
}

.main-container {
    height: calc(100% - 64px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
}

.toast-notification {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    z-index: 100;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background-color: #16a34a;
}

.toast-info {
    background-color: #2563eb;
}



/* .status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
} */
.status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 12px;
    position: relative;
    background: #f1f1f1;
    padding-left: 25px;
}

.status-tag::before {
    content: " ";
    width: 10px !important;
    height: 10px !important;
    border-radius: 10px;
    position: absolute;
    background: #ccc;
    top: 9px;
    left: 10px;
}

.severity-high::before {
    background: #f44336;
    color: #fecaca;
}

.severity-medium::before {
    background: #ff9800;
    color: #fdba74;
}

.severity-low::before {
    background: #4caf50;
    color: #bbf7d0;
}

.nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

.feed-source-twitter {
    border-color: #1DA1F2;
}

.feed-source-reuters {
    border-color: #FF8000;
}

.feed-source-bloomberg {
    border-color: #D40069;
}

.feed-source-local-news {
    border-color: #16a34a;
}

/* Litepicker adjustments */
.litepicker {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.litepicker .container__months .month-item-header,
.litepicker .container__tooltip {
    color: var(--text-primary) !important;
}

.litepicker .container__months .month-item-header select {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

.litepicker .container__months .month-item .day-item:not(.is-disabled):hover {
    background-color: var(--bg-tertiary) !important;
}

.litepicker .container__months .month-item .day-item.is-start-date,
.litepicker .container__months .month-item .day-item.is-end-date {
    background-color: var(--accent-color) !important;
}

.litepicker .container__months .month-item .day-item.in-range {
    background-color: var(--accent-color) !important;
    opacity: 0.5;
}

.litepicker .container__footer {
    background-color: var(--bg-secondary) !important;
    border-top-color: var(--border-color) !important;
}

.litepicker .container__footer .button-cancel,
.litepicker .container__footer .button-apply {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.litepicker .container__footer .button-apply {
    background-color: var(--accent-color) !important;
}

/* ApexCharts adjustments */
.apexcharts-tooltip {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.apexcharts-tooltip .apexcharts-tooltip-title {
    background: var(--bg-tertiary) !important;
    border-bottom-color: var(--border-color) !important;
}

.custom-table.action-right tr th:last-child,
.custom-table.action-right tr td:last-child {
    text-align: right;
}

/* .custom-table thead tr {
    background: #f1f6ed;
} */

.custom-table thead tr th {
    font-weight: 600;
}

.recent-activity li {
    display: flex;
    gap: 10px;
}
.recent-activity li .icon {
    width: 25px;
    height: 25px;
    border-radius: 25px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.recent-activity li .icon svg{
    width: 60%;
    height: 60%;
    
}
.recent-activity li .content {
    width: calc(100% - 30px);
}

.recent-activity li .text-gray-400 {
    font-size: 12px;
    margin-top: 4px;
}

.custom-tab .active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.custom-tab :not(.active) {
    color: #ccc
}

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

.text-sm {
    font-size: 12px !important;
}

#modals-container .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: saturate(180%) blur(5px);
    background: #171f3050;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modals-container .modal-backdrop .modal-content {
    max-width: 800px;
    min-width: 600px;
    padding: 15px;
    border-radius: 10px;
}

.btn-gradient-purple {
    background-color: #9C27B0;
    background-image: linear-gradient(62deg, #9C27B0 0%, #673AB7 100%);
    border: none;
    color: #fff;
    transition: all 300ms linear;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);


}

.btn-gradient-purple:hover {
    background-color: #9C27B0 !important;
    background-image: linear-gradient(45deg, #9C27B0 0%, #673AB7 50%) !important;
    border: none !important;
    color: #fff !important;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05) !important;
}

.wave {
    animation-name: wave-animation;
    /* Refers to the name of your @keyframes element below */
    animation-duration: 2.5s;
    /* Change to speed up or slow down */
    animation-iteration-count: infinite;
    /* Never stop waving :) */
    transform-origin: 70% 70%;
    /* Pivot around the bottom-left palm */
    display: inline-block;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    /* The following five values can be played with to make the waving more or less extreme */
    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    /* Reset for the last half to pause */
    100% {
        transform: rotate(0.0deg)
    }
}

#section-title h2 {
    font-size: 18px;
}

.widget-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.widget-container .card {
    padding: 15px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    width: calc(100%/3 - 15px);
    flex-wrap: nowrap;
    position: relative;
    border: none;
}

.widget-container .card .text-gray-400 {
    order: 1;
    font-size: 12px;
    margin-top: 0;
}

.widget-container .card .text-4xl {
    order: 2;
    font-size: 16px !important;
    color: #302467;
}

.card-purple {
    background: #e5e1f1;
    background: linear-gradient(0deg, #e5e1f1 0%, #d1c8fa 100%);
    border-color: #d8d2f3;
}

.widget-container .card .icon {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    justify-content: center;
    display: flex;
    align-items: center;
    position: absolute;
    right: -10px;
    top: -10px;
}
.widget-container .card .icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.icon.blue {
    background: #92e3fe;
    background: linear-gradient(180deg, #92e3fe 0%, #086af7 100%);
    box-shadow: 0px 0px 8px 0px #92e3fe;
}

.icon.green {
    background: #87eaac;
    background: linear-gradient(180deg, #87eaac 0%, #12b996 100%);
    box-shadow: 0px 0px 8px 0px #87eaac;
}

.icon.purple {
    background: #9674fe;
    background: linear-gradient(180deg, #9674fe 0%, #8344ff 100%);
    box-shadow: 0px 0px 8px 0px #9674fe;
}

.icon.red {
    background: #ff9584;
    background: linear-gradient(180deg, #ff9584 0%, #f64c81 100%);
    box-shadow: 0px 0px 8px 0px #ff9584;
}

.icon.cyan {
    background: #32e8ff;
    background: linear-gradient(180deg, #32e8ff 0%, #00b1c7 100%);
    box-shadow: 0px 0px 8px 0px #32e8ff;
}


#back-btn-section .inline-flex{
    border-radius: 30px;
    background: #ececff;
}
button{
    border-radius: 30px !important;
}
.border-round{
    border-radius: 30px !important;
}

.seach-section{
    position: relative;
}
.seach-section input{
    padding-left: 35px;
}
.seach-section .icon{
    position: absolute;
    left: 15px;
    top: 9px;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seach-section .icon svg{
   width: 80%;
   height: 80%;
   opacity: 0.6;
}
.with-bg-image{
    /* background: url("https://www.freevector.com/uploads/vector/preview/30349/Abstract_background_vector_1.jpg"); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.card.with-bg-image .card-header{
    backdrop-filter: saturate(180%) blur(5px);
     background: rgba(255, 255, 255, 0.2);
     border-top-left-radius: 10px ;
     border-top-right-radius: 10px ;
}

.alert{
    margin-bottom: 15px;
    background: #fef7ff;
    border: 1px solid #f8ceff;
}
.alert h3{
    color: #9C27B0;
}
.alert .space-y-2 .text-gray-400,
.alert .space-y-2 .text-purple-600{
    color: #595959 !important;
}

.status-tag-risk{
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    position: relative;
    background: #fcf1f1;
    border: 1px solid #F4433630;
    color: #ff695d;
}
select,
textarea,
input{
    border-radius: 30px !important;
}