﻿@font-face {
    font-family: 'boxley-bold';
    src: url('/fonts/boxley-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'boxley';
    src: url('/fonts/boxley.ttf') format('truetype');
}

@font-face {
    font-family: 'boxley-black';
    src: url('/fonts/boxley-black.ttf') format('truetype');
}

@font-face {
    font-family: 'SourceSansPro';
    src: url('/fonts/SourceSansPro-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'SourceSansProBold';
    src: url('/fonts/SourceSansPro-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'SourceSansProSemiBold';
    src: url('/fonts/SourceSansPro-Semibold.otf') format('opentype');
}

@font-face {
    font-family: 'SourceSansProLight';
    src: url('/fonts/SourceSansPro-Light.otf') format('opentype');
}

html, body {
    margin: 0;
    padding: 0;
    color: #03132C;
    /*font-family: SourceSansPro;*/
    background: #fafaf7;
}

a,
a:link,
a:visited,
button,
input,
.sidebar-menu a:active::before {
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: boxley-bold !important;
}

/*
    ============================================================
    BEGIN LAYOUT
    ============================================================
*/

/* ------------------------ BEGIN SIDEBAR MENU ------------------------------- */

.sidebar-menu {
    padding: 0.9rem;
}

    .sidebar-menu a,
    .sidebar-menu a:link,
    .sidebar-menu a:visited {
        color: #fff;
        font-size: 0.9rem;
        /*font-family: SourceSansPro;*/
        position: relative;
    }

        .sidebar-menu a::before {
            content: "";
            position: absolute;
            z-index: 100;
            width: 0px;
            height: 100%;
            left: 0;
            top: 0;
            background-color: var(--accent-teal);
        }

        .sidebar-menu a:hover,
        .sidebar-menu a:active,
        .sidebar-menu a.active,
        .sidebar-menu a.active:link,
        .sidebar-menu a.active:visited {
            color: var(--accent-teal);
        }

            .sidebar-menu a.active,
            .sidebar-menu a.active:link,
            .sidebar-menu a.active:visited {
                background-color: #C1F2F2;
                /*font-family: SourceSansProSemiBold;*/
                font-weight: bold;
                border-radius: 5px;
            }

                .sidebar-menu a.active::before {
                    background-color: var(--accent-teal);
                    width: 5px;
                }

    .sidebar-menu a,
    .sidebar-menu h3 {
        padding: 0.65rem 1.25rem;
        line-height: 1;
    }

    .sidebar-menu .mud-nav-link:not(.mud-nav-link-disabled) .mud-nav-link-icon.mud-nav-link-icon-default {
        color: inherit;
        font-size: inherit;
    }

    .sidebar-menu h3 {
        position: relative;
        display: block;
        margin: 1.15rem 0 0;
        font-size: 0.6rem;
        color: #ccc;
        text-transform: uppercase;
        font-family: boxley;
        letter-spacing: 0.05rem;
        word-spacing: 0.075rem;
    }

/* ------------------------ END SIDEBAR MENU ------------------------------- */

/*
    ============================================================
    END LAYOUT
    ============================================================
*/

.text-dark {
    color: #03132C;
}

.bkg-dark {
    background-color: #03132C;
}

.bkg-dark-blue {
    background-color: #193661;
}

.bkg-medium-blue {
    background-color: #114b8b;
}

.bkg-green {
    background-color: var(--accent-teal);
}

:root {
    --error-bg-color: #F6C6CE;
    --gray-bg-color: #C7C7C7;
    --subscription-soft-brown: #934F2224;
    --subscription-strong-brown: #934F224D;
    --subscription-soft-teal: #3CA3A524;
    --subscription-strong-teal: #3CA3A54D;
    --accent-teal: #37a0a2;
}

.mud-icon-size-small.fi {
    font-size: 1rem !important;
    margin: 0.25rem !important;
}

.neutral-color {
    color: var(--gray-bg-color);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.h-100 {
    height: 100%;
}

.sidebar-nav::after {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    font-size: 85%;
    background: #E0E0E0;
    line-height: 1.35;
    color: #414141;
}

.header-container {
    background-color: white !important;
}

.footer {
    background-color: white !important;
    border-top: solid 1px #e0e0e0;
}

    .footer .mud-icon-root {
        font-size: 1rem;
        top: 2px;
        position: relative;
    }

.fullwidth {
    width: 100%;
}

.w-100 {
    width: 100%;
}

.w-50 {
    width: 50%;
}

.text-decoration-underline {
    text-decoration: underline;
}

.action-cell {
    min-width: 120px;
}

.tooltip-compact {
    max-width: 300px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.evaluation-criterion-card {
    width: 350px;
    border-radius: 0;
    padding: 0.75rem;
}

.agent-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop */
    gap: 16px;
}

    .agent-cards-container .agent-card {
        width: 165px;
        height: 165px;
        border-radius: 0;
        user-select: none;
        cursor: pointer;
        transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
        background-color: rgba(255, 255, 255, 0.05);
        color: #9E9E9E;
    }

        .agent-cards-container .agent-card div {
            margin: auto;
            text-align: center
        }

        .agent-cards-container .agent-card img {
            filter: brightness(0) saturate(100%) invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
        }

        .agent-cards-container .agent-card .main-card-title {
            font-size: 85%;
            margin-top: 0.5rem;
        }

        .agent-cards-container .agent-card.selected {
            border: 1px solid #2196F3;
            filter: invert(42%) sepia(86%) saturate(7452%) hue-rotate(190deg) brightness(100%) contrast(100%);
        }

.action-btn {
    width: 100px;
}

.compact-btn.menu-btn .mud-button-label {
    padding: 0;
    max-width: 35px;
}

.compact-btn {
    height: 24px;
}

.standard-system-tool-container {
    width: 30rem;
}

.attach-webhook-tool-container {
    min-width: 40rem;
}

.rule-system-tool-container {
    max-width: 40rem !important;
}

.webhook-tool-container {
    width: 85rem !important;
}

.mud-card.evaluation-criterion-card div span .mud-badge.mud-badge-top.right {
    inset: auto auto calc(100% - 11px) calc(100% - 2px);
}

.mud-card.evaluation-criterion-card div span .mud-badge-wrapper .mud-badge {
    height: 17px
}

.custom-description-tooltip {
    max-width: 25% !important;
    white-space: normal !important;
    word-wrap: break-word;
}

.agent-header-container {
    position: fixed;
    top: 65px;
    left: 16rem;
    width: calc(100% - 13rem) !important;
    z-index: 999;
    background-color: white;
    padding: 1rem 2.5rem 1rem 2.5rem;
    box-shadow: 3px 1px 8px -5px #444;
}

    .agent-header-container + div {
        margin-top: 6rem;
    }

.agent-panels-container .mud-expansion-panels .mud-expand-panel .mud-collapse-entered .mud-collapse-wrapper {
    overflow: hidden;
}


.mud-table-cell.language-table-cell {
    border: none !important;
}

.agent-card .agent-card-icon {
    font-size: 80px
}

.agent-cards-container .mud-badge-root .mud-badge-wrapper .mud-badge.mud-badge-top.left {
    inset: auto auto calc(100% - 12px) 29px;
}

.loading-overlay {
    width: 15vw;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
}

.loading-dialog .mud-dialog {
    background: transparent;
    box-shadow: none;
}

.loading-dialog-container {
    background-color: transparent;
    box-shadow: none;
    animation: none;
}

.underline-text {
    text-decoration: underline;
}

.small-icon-warning {
    font-size: 13px;
    margin-left: 0.5rem;
}

.danger {
    color: red;
}

.credit-request {
    width: 400px;
}

.subscription-card {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    border-radius: 10px !important;
    position: relative;
}

    .subscription-card .mud-card-header {
        padding: 4px !important;
    }

.subscription-card-header {
    width: 100%;
    border-radius: 10px;
    padding: 8px 12px;
    background-color: #fff;
}

    .subscription-card-header.monthly {
        background-color: var(--subscription-soft-teal);
    }

    .subscription-card-header.annually {
        background-color: var(--subscription-soft-brown);
    }


.subscription-badge {
    top: -11px;
    right: 25px;
    font-size: 12px;
    background-color: var(--mud-palette-info) !important;
    color: white !important;
    position: absolute;
    padding: 2px 10px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.subscription-header-info {
    padding: 0px 8px;
}

.subscription-text-compact {
    height: 50px;
    line-height: 1.4 !important;
}

.subscription-header-pricing {
    padding: 8px 8px;
    background-color: white;
    border-radius: 10px;
}

/* No elevation */
.subscription-purchase-button.mud-button-root {
    box-shadow: none !important;
}

    .subscription-purchase-button.mud-button-root:hover {
        box-shadow: none !important;
    }

/* Colors by billing period */
.subscription-purchase-button.monthly {
    background-color: var(--subscription-soft-teal);
}

.subscription-purchase-button.annually {
    background-color: var(--subscription-soft-brown);
}

.subscription-purchase-button.monthly:hover {
    background-color: var(--subscription-strong-teal);
}

.subscription-purchase-button.annually:hover {
    background-color: var(--subscription-strong-brown);
}

.select-language-width {
    width: 300px;
}

.dashboard-card-badge {
    position: absolute;
    top: 4px;
    right: 6px;
}

.snackbar-missing-billing {
    min-width: 600px !important;
    width: 600px !important;
}

    .snackbar-missing-billing button {
        text-transform: none !important;
    }

.mud-dialog-actions {
    padding: 16px !important; /*set this to change all padding on dialogs*/
}

.height-description-output-agent {
    height: 60px;
    padding: 5px 5px 0 16px !important;
}

.icon-free-trial {
    background-color: rgba(33,150,243,0.058823529411764705);
    width: 80px;
    color: rgba(33,150,243,1);
}

.free-trial-info {
    font-size: 1.15rem !important;
}

.view-usecase-template-dialog {
    width: 900px;
}

.add-custom-var-agent {
    color: rgba(89,74,226,1) !important;
}


.break-long-text {
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
}

.text-warning {
    color: var(--mud-palette-warning) !important;
}

.summary-payment-box {
    padding: 14px;
    border-radius: 10px;
    background: #f9f9f9;
    margin-top: 12px;
    border: 1px solid #e4e4e4;
}

.forced-ml-3{
    margin-left:-0.9rem !important;
}


/* BLACK VERSION LOGIN */
/*-------------------IdentityPages----------------------------------------------*/
/* ========================= CONTAINERS ========================= */
/*.account-container,
.background-container {
    position: fixed;
}

.background-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}*/
/* ========================= BACKGROUND IMAGE (NATURAL) ========================= */
/*.background-container::after,
    .background-container::before {
        content: "";
        position: absolute;
        inset: 0;
    }

    .background-container::after {
        background-image: url(/images/login-background.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;*/
/* imagine complet naturala */
/*filter: none;
        z-index: 1;
    }*/
/* ========================= OPTIONAL OVERLAY ========================= */
/*Overlay modern & vibrant. Dezactivezi TOT overlay-ul comentand acest bloc*/
/*.background-container::before {
        z-index: 2;
        background: linear-gradient( 135deg, rgba(75, 192, 200, 0.55), rgba(199, 121, 208, 0.55), rgba(254, 172, 94, 0.55) );
        opacity: 0.65;
    }*/
/* ========================= ACCOUNT CARD ========================= */
/*.account-container {
    position: fixed;
    top: 50%;
    left: 78%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    padding: 2rem;
    background: transparent;
    border-radius: 12px;
    z-index: 3;
}

    .account-container .mud-input-outlined .mud-input-outlined-border {
        border-color: rgba(0, 0, 0, 0.75);
    }*/
/* Autofill fix – Chrome / Edge / Brave */
/*.account-container input:-webkit-autofill,
    .account-container input:-webkit-autofill:hover,
    .account-container input:-webkit-autofill:focus,
    .account-container textarea:-webkit-autofill,
    .account-container textarea:-webkit-autofill:hover,
    .account-container textarea:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
        box-shadow: 0 0 0 1000px transparent inset !important;
        -webkit-text-fill-color: inherit !important;
        caret-color: inherit;
        transition: background-color 9999s ease-in-out 0s;
    }*/
/*------------------- END IdentityPages----------------------------------------------*/
/*WHITE VERSION LOGIN*/
/*------------------- IdentityPages ----------------------------------------------*/
/* =========================
   BASE POSITIONING
   ========================= */
.account-container,
.background-container {
    position: fixed;
}

.background-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

    /* =========================
   BACKGROUND IMAGE
   ========================= */

    .background-container::before,
    .background-container::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .background-container::after {
        background-image: url(/images/login-background.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        filter: none;
        z-index: 1;
    }

/* =========================
   ACCOUNT CARD
   ========================= */

.account-container {
    top: 50%;
    left: 78%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    padding: 2rem;
    background: transparent;
    border-radius: 12px;
    z-index: 3;
}

    /* =========================
   INPUT TEXT (WHITE)
   ========================= */

    .account-container input.mud-input-slot {
        color: #ffffff !important;
        font-weight: 500;
        caret-color: #ffffff;
    }

        /* =========================
   PLACEHOLDER (NATURAL, SOFT)
   ========================= */

        .account-container
        input.mud-input-slot.mud-input-root.mud-input-root-outlined::placeholder {
            color: rgba(255, 255, 255, 0.75) !important;
            font-weight: 500 !important;
            opacity: 1 !important;
            /* contrast foarte subtil */
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
        }

    /* =========================
   REMOVE MUD PRIMARY COLORS
   ========================= */

    .account-container .mud-input,
    .account-container .mud-input-label,
    .account-container .mud-input-adornment,
    .account-container .mud-input-root {
        color: #ffffff !important;
    }

    /* =========================
   🔥 FIX FINAL: REMOVE PRIMARY
   ON HOVER & FOCUS
   ========================= */

    .account-container
    .mud-input-outlined:hover,
    .account-container
    .mud-input-outlined.mud-input-focused {
        color: #ffffff !important;
    }

        /* siguranță extra – nimic din interior
   nu mai poate lua Primary */
        .account-container
        .mud-input-outlined:hover *,
        .account-container
        .mud-input-outlined.mud-input-focused * {
            color: inherit !important;
        }

    /* =========================
   OUTLINED BORDER – DEFAULT
   ========================= */

    .account-container .mud-input-outlined .mud-input-outlined-border {
        border-color: rgba(255, 255, 255, 0.85) !important;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    /* =========================
   HOVER BORDER
   ========================= */

    .account-container
    .mud-input-outlined:hover
    .mud-input-outlined-border {
        border-color: #ffffff !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
    }

    /* =========================
   FOCUS BORDER
   ========================= */

    .account-container
    .mud-input-outlined.mud-input-focused
    .mud-input-outlined-border {
        border-color: #ffffff !important;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    }

    /* =========================
   AUTOFILL FIX – CHROME / EDGE
   ========================= */

    .account-container input:-webkit-autofill,
    .account-container input:-webkit-autofill:hover,
    .account-container input:-webkit-autofill:focus {
        -webkit-text-fill-color: #ffffff !important;
        box-shadow: 0 0 0 1000px transparent inset !important;
        transition: background-color 9999s ease-in-out 0s;
    }

    /* =========================
   OPTIONAL READABILITY BOOST
   ========================= */

    .account-container .mud-input-root {
        backdrop-filter: blur(2px);
    }

/*------------------- END IdentityPages -------------------------------------------*/

/* Wrapper */
.large-textarea-wrapper {
    width: 100%;
    display: flex;
}
/* Textarea base – MudTextField look */
.large-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 1200px;
    padding: 16.5px 14px;
    font-family: var(--mud-typography-body1-family, Roboto, Arial, sans-serif);
    font-size: var(--mud-typography-body1-size, 1rem);
    line-height: 1.5;
    color: var(--mud-palette-text-primary);
    background-color: transparent;
    border-radius: var(--mud-default-borderradius, 4px);
    border: 1px solid var(--mud-palette-lines-inputs);
    outline: none;
    resize: vertical;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
    /* Hover – exact Mud behavior */
    .large-textarea:hover:not(:disabled):not(:focus) {
        border-color: var(--mud-palette-text-primary);
    }
    /* Focus – Mud primary */
    .large-textarea:focus {
        border-color: var(--mud-palette-primary);
        box-shadow: 0 0 0 1px var(--mud-palette-primary);
    }
    /* Placeholder – Mud style */
    .large-textarea::placeholder {
        color: var(--mud-palette-text-secondary);
        opacity: 1;
    }
    /* Disabled */
    .large-textarea:disabled {
        background-color: var(--mud-palette-action-disabled-background);
        border-color: var(--mud-palette-lines-inputs);
        color: var(--mud-palette-text-disabled);
        resize: none;
        cursor: not-allowed;
    }
    /* Error state (optional) */
    .large-textarea.error {
        border-color: var(--mud-palette-error);
    }

        .large-textarea.error:focus {
            box-shadow: 0 0 0 1px var(--mud-palette-error);
        }
/*-------------------MEDIA----------------------------------------------*/


@media (max-width: 1199px) {
    .agent-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 767px) {
    .agent-cards-container {
        grid-template-columns: 1fr;
    }
}
