@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@400;600&display=swap');


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #beb5a9;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0px;
    font-family: 'Playfair Display', 'Montserrat', sans-serif;
}

p {
    max-width: 100%;
    word-wrap: break-word;
}
/*Remove the default labels*/
.dt-search label,
.dt-length label {
    display: none;
}
/*Align all th & td*/
#myDataTable th,
#myDataTable td {
    text-align: center;
}
/* Mobile styles */
@media (max-width: 767px) {

    .dt-search {
        width: 50%;
    }

        .dt-search input.dt-input {
            width: 100% !important;
            padding: 8px 12px;
            font-size: 12px;
        }


    .dt-length {
        display: flex;
        align-items: start;
        justify-content: start;
    }
}



/*Global loader*/
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.loader-text {
    margin-top: 1rem;
    font-weight: bold;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}
/* From Uiverse.io by kat_2522 */
.loader {
    max-width: fit-content;
    color: rgba(255, 255, 255, 0.7);
    font-size: 50px;
    font-family: Mine;
    position: relative;
    font-style: italic;
    font-weight: 600;
}

    .loader span {
        animation: cut 2s infinite;
        transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .loader:hover {
        color: rgba(255, 255, 255, 0.7);
    }

    .loader::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 6px;
        border-radius: 4px;
        background-color: #3A2512;
        top: 0px;
        filter: blur(10px);
        animation: scan 2s infinite;
        left: 0;
        z-index: 0;
        transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .loader::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 5px;
        border-radius: 4px;
        background-color: #3A2512;
        top: 0px;
        animation: scan 2s infinite;
        left: 0;
        z-index: 1;
        filter: opacity(0.9);
        transition: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

@keyframes scan {
    0% {
        top: 0px;
    }

    25% {
        top: 54px;
    }

    50% {
        top: 0px;
    }

    75% {
        top: 54px;
    }
}

@keyframes cut {
    0% {
        clip-path: inset(0 0 0 0);
    }

    25% {
        clip-path: inset(100% 0 0 0);
    }

    50% {
        clip-path: inset(0 0 100% 0);
    }

    75% {
        clip-path: inset(0 0 0 0);
    }
}


:root {
    /* Enhanced Brown Color Palette */
    --bs-primary: #3A2512; /* Dark brown (text/primary elements) */
    --bs-primary-bg-subtle: #F5EEE6; /* Very light brown */
    --bs-primary-border-subtle: #E0D5C8;
    --bs-secondary: #b39086; /* Medium brown */
    --bs-secondary-bg-subtle: #F8F4F0; /* light grey */
    --bs-secondary-border-subtle: #E8DFD8; /* Darker grey */
    --bs-success: #8B9E7E; /* Muted green */
    --bs-info: #6D8B9E; /* Muted blue */
    --bs-warning: #D4A259; /* Golden brown */
    --bs-danger: #C45C5C; /* Earthy red */
    /* Text Colors */
    --bs-body-color: #3A2512;
    --bs-body-color-rgb: 58, 37, 18;
    --bs-emphasis-color: #1E1309;
    --bs-secondary-color: #7D5A50;
    /* Backgrounds */
    --bs-body-bg: #FFFDFA;
    --bs-body-bg-rgb: 255, 253, 250;
    --bs-tertiary-bg: #F5EEE6;
    /* Borders */
    --bs-border-color: #D9CDC1;
    --bs-border-color-translucent: rgba(89, 73, 58, 0.15);
}

/* Typography */
body {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-muted {
    color: #7D5A50 !important;
}

/* Backgrounds */
.bg-primary {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
    color: white !important;
}

.bg-light {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* Buttons */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4E3424;
    --bs-btn-hover-border-color: #4E3424;
    --bs-btn-focus-shadow-rgb: 58, 37, 18;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2E1D0E;
    --bs-btn-active-border-color: #2E1D0E;
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: var(--bs-primary) !important;
    --bs-btn-hover-bg: #8F6B60;
    --bs-btn-hover-border-color: #8F6B60;
    --bs-btn-focus-shadow-rgb: 125, 90, 80;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6B4A40;
    --bs-btn-active-border-color: #6B4A40;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 58, 37, 18;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

/* Forms */
.form-control {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

    .form-control:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.25rem rgba(58, 37, 18, 0.25);
    }

.form-select {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

/* Cards */
.card {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    box-shadow: 0 0.5rem 1rem rgba(58, 37, 18, 0.05);
}

/* Navs */
.nav-link {
    color: var(--bs-secondary);
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--bs-primary);
    }

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
    background-color: var(--bs-secondary) !important;
    color: var(--bs-alert-color) !important;
}
/*.navbar-dark .nav-link.active {
    background-color: var(--bs-secondary) !important;
}*/

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
}

/* Alerts */
.alert-primary {
    --bs-alert-color: var(--bs-primary);
    --bs-alert-bg: var(--bs-primary-bg-subtle);
    --bs-alert-border-color: var(--bs-primary-border-subtle);
}

/* Links */
a {
    color: var(--bs-primary);
    text-decoration: none;
}

    a:hover {
        color: #2E1D0E;
        background-color: var(--bs-secondary-bg-subtle);
        text-decoration: none;
    }

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

/* Utilities */
.border-primary {
    border-color: var(--bs-primary) !important;
}


.border-secondary {
    border-color: var(--bs-secondary) !important;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(58, 37, 18, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(58, 37, 18, 0.1) !important;
}

/* Input Group */
.input-group-text {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Override Bootstrap's default blue focus */
.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(58, 37, 18, 0.25);
}

form-control::placeholder,
.form-select::placeholder {
    font-size: 0.875rem; /* 14px if base is 16px */
    color: var(--bs-secondary-color) !important;
    opacity: 0.7 !important;
}
/* For floating labels (if using Bootstrap's floating labels) */
.form-floating .form-control::placeholder {
    color: transparent !important; /* Hides placeholder when floating label is active */
}

/* For smaller placeholder text specifically */
.form-control-sm::placeholder {
    font-size: 0.8125rem; /* 13px */
}

/* For larger placeholder text specifically */
.form-control-lg::placeholder {
    font-size: 1rem; /* 16px */
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
    border: 1px solid var(--bs-secondary);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--bs-success-text) !important;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

    /* Dropdown Item Hover Effect */
    .dropdown-item:hover, .dropdown-item:focus {
        color: #fff !important;
        background-color: var(--bs-secondary) !important;
    }

Dropdown Divider
.dropdown-divider {
    border-color: var(--bs-secondary);
    opacity: 0.5;
}

/* Active Nav Item */
.nav-item.active .nav-link {
    color: #fff !important;
    font-weight: 500;
    background-color: var(--bs-secondary);
    border-radius: 0.25rem;
}

/* Dropdown Toggle Arrow */
.navbar .dropdown-toggle::after {
    border-top-color: var(--bs-success-text);
    transition: transform 0.3s ease;
}

.hover-text-white:hover {
    color: #fff !important;
}

/* Open Dropdown Animation */
.dropdown-menu.show {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


.list-group-item.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

#marketTable {
    table-layout: fixed;
    width: 100%;
}

    #marketTable th,
    #marketTable td {
        padding: 0; /* compact spacing */
        font-size: 0.75rem;
        border: none;
        white-space: nowrap;
        font-weight: lighter;
    }

    #marketTable td {
        font-weight: lighter;
    }

    #marketTable th {
        font-weight: bolder;
        font-size: 0.85rem;
        white-space: wrap;
        padding-top: 0.5rem;
        color: var(--bs-secondary);
    }

        #marketTable th:nth-child(1),
        #marketTable td:nth-child(1) {
            width: 54%; /* Company */
            white-space: wrap;
        }

        #marketTable th:nth-child(2),
        #marketTable td:nth-child(2) {
            width: 17%; /* Price */
        }

        #marketTable th:nth-child(3),
        #marketTable td:nth-child(3) {
            width: 15%; /* Change */
        }

        #marketTable th:nth-child(4),
        #marketTable td:nth-child(4) {
            width: 14%; /* % */
        }


/*subscrtption modal*/

.clear-content {
    z-index: 1;
    line-height: 1.6;
    font-size: 1rem;
}

.blurred-section {
    position: relative;
    max-height: 40vh;
    overflow: hidden;
}

.blurred-text {
    filter: blur(2px);
    opacity: 0.7;
    line-height: 1.6;
    font-size: 1rem;
    padding: 3rem 1rem;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.95) 100%);
    z-index: 2;
    padding: 3rem 1rem;
}

/*Long description in tables*/
description-container {
    max-width: 100%;
    word-wrap: break-word;
}

.short-text, .full-text {
    white-space: pre-line;
}

.full-text {
    margin-top: 5px;
}

.wobble-hover {
    animation: subtleWobble 8s infinite;
    transform-origin: center;
}

@keyframes subtleWobble {
    0%, 100% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(-1deg);
    }

    4% {
        transform: rotate(1deg);
    }

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

    98% {
        transform: rotate(0deg);
    }
    /* Long pause between wobbles */
}

/* Optional: Add hover effect */
.wobble-hover:hover {
    animation: excitedWobble 0.5s infinite;
}

@keyframes excitedWobble {
    0%, 100% {
        transform: rotate(-2deg);
    }

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

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #9c1c2b 100%);
}

/*Remove padding and adjust colors */
.hover-bg-secondary:hover {
    background-color: var(--bs-secondary) !important;
}


.navbar-nav .nav-link {
    padding: 0.75rem 1.5rem;
}

/*payment toggle button*/
.form-check-input:checked {
    background-color: #3A2512;
    border-color: #3A2512;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}



/*Cards for dashbaord*/
.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

.recent-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

    .recent-item:hover {
        background-color: #f8f9fa;
    }

    .recent-item:last-child {
        border-bottom: none;
    }




.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

}

.custom-radio:checked {
    background-color: var(--bs-secondary);
    border-color: white;
}

.custom-radio {
    accent-color: var(--bs-secondary);

}

.news-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 60px;
    width: 70px;
    height: 70px;
    background: #FFFDFA;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 3px ;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);*/
    transition: all 0.3s ease;
    z-index: 1050;
}

    .news-chat-toggle:hover {
        transform: scale(1.1);
        /*box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);*/
    }

    .news-chat-toggle i {
        color: #3A2512;
        font-size: 24px;
    }

/* Chat Container */
.news-chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1040;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

    .news-chat-container.show {
        display: flex;
    }

/* Chat Header */
.news-chat-header {
    background: linear-gradient(135deg, #3A2512 0%, #b39086 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .news-chat-header h5 {
        margin: 0;
        font-size: 16px;
    }

.news-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

    .news-chat-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* Chat Messages */
.news-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 15px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

    .news-chat-message.user {
        align-self: flex-end;
        background: linear-gradient(135deg, #3A2512 0%, #b39086 100%);
        color: white;
    }

    .news-chat-message.bot {
        align-self: flex-start;
        background: #f8f9fa;
        color: #333;
        border: 1px solid #e9ecef;
    }

.news-chat-typing {
    align-self: flex-start;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 15px;
    display: none;
    border: 1px solid #e9ecef;
}

.news-chat-typing-dots {
    display: flex;
    gap: 4px;
}

.news-chat-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    animation: typing-pulse 1.4s infinite;
}

    .news-chat-typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .news-chat-typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing-pulse {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }
}

/* Chat Input */
.news-chat-input-container {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.news-chat-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    resize: none;
    min-height: 38px;
    max-height: 100px;
}

    .news-chat-input:focus {
        border-color: #3A2512;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.news-chat-send {
    background: linear-gradient(135deg, #3A2512 0%, #b39086 100%);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    color: white;
}

    .news-chat-send:hover:not(:disabled) {
        transform: scale(1.05);
    }

    .news-chat-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Welcome Message */
.news-chat-welcome {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .news-chat-container {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        bottom: 90px;
    }

    .news-chat-toggle {
        right: 20px;
        bottom: 20px;
    }
}

/* From Uiverse.io by imtausef */
.tooltip-container {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 17px;
    border-radius: 10px;
}

.tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-70%);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border-radius: 15px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2), inset -5px -5px 15px rgba(255, 255, 255, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
}

.profile {
    background: #2a2b2f;
    border-radius: 10px 15px;
    padding: 10px;
    border: 1px solid #b39086;
}

.tooltip-container:hover .tooltip {
    top: -150px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.icon {
    text-decoration: none;
    color: #fff;
    display: block;
    position: relative;
}

.layer {
    width: 55px;
    height: 55px;
    transition: transform 0.3s;
}

.icon:hover .layer {
    transform: rotate(-35deg) skew(20deg);
}

.layer span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all 0.3s;
}

.layer span,
.text {
    color: #3A2512;
    border-color: #b39086;
}

.icon:hover.layer span {
    box-shadow: -1px 1px 3px #b39086;
}

.icon .text {
    position: absolute;
    left: 50%;
    bottom: -5px;
    opacity: 0;
    font-weight: 500;
    transform: translateX(-50%);
    transition: bottom 0.3s ease, opacity 0.3s ease;
}

.icon:hover .text {
    bottom: -35px;
    opacity: 1;
}

.icon:hover .layer span:nth-child(1) {
    opacity: 0.2;
}

.icon:hover .layer span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}

.icon:hover .layer span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}

.icon:hover .layer span:nth-child(4) {
    opacity: 0.8;
    transform: translate(15px, -15px);
}

.icon:hover .layer span:nth-child(5) {
    opacity: 1;
    transform: translate(20px, -20px);
}

.layer span.fab {
    font-size: 30px;
    line-height: 64px;
    text-align: center;
    fill: #3A2512;
    background: #fff;
}

.user {
    display: flex;
    gap: 10px;
}

.img {
    width: 50px;
    height: 50px;
    font-size: 25px;
    font-weight: 700;
    border: 1px solid #3A2512;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #fff;
}

.about {
    color: #ccc;
    padding-top: 5px;
}
