@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brand-blue: #0d6efd;
    --brand-blue-dark: #0b5ed7; /* dark variant */
    --brand-grey: #6c757d;
    --brand-light: #f8f9fa;
    --deep-electric-blue: #1023FF;
    --royal-violet: #5A00FF;
    --magenta-glow: #C000FF;
    --aqua-cyan-glass: #2FF6FF;
    --pearl-purple: #e2dcf2;
    --pearl-purple-2-white-grad: linear-gradient(to top right, #e2dcf2, #e3e3e3, #ffffff);
    --purple: #9a00fa;
}
html {
    font-size: 14px;
    font-family: 'Roboto', 'Roboto Condensed', sans-serif;
    background: #f3f5f7;
    color: #222;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.app-wrapper {
    width: 100vw;
    min-height: 100dvh; /* dynamic viewport height */
}

body {
    margin-bottom: 40px;
    background: linear-gradient(to bottom right, #f7f8fa, #e2e4e7);
    color: #1a1a1a;
}
html, body {
    height: 100%;
    margin: 0;
    font-size: 14px;
    font-family: 'Roboto', 'Roboto Condensed', sans-serif;
    background: #f3f5f7;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9; /* light background */
}
.top-logo-wrapper {
    background-color: rgba(255, 255, 255, 0.9); /* semi-transparent light overlay */
    padding: 6px;
    border-radius: 4px;
    display: inline-block;
}

.top-logo-img {
    height: 40px !important; /* adjust as needed */
    display: block;
}
.wide-nav {
    min-width: 170px; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.mud-menu-item {
    text-decoration: none !important;
}
.mud-menu-item .mud-menu-item-text {
    font-size: 1.4rem !important;
}

.mud-nav-link {
    text-decoration: none !important;
    color: inherit; /* so it doesn't look weird */
    transition: color 0.2s ease, background-color 0.2s ease;
    font-size: 1.2rem;
}

    /* default state */
    .mud-nav-link:hover {
        text-decoration: none !important;
        background-color: rgba(0,0,0,0.2);
        color: var(--aqua-cyan-glass); 
    }

    /* if you also want to tweak the active state */
    .mud-nav-link.mud-nav-link-active {
        background-color: rgba(0,0,0,0.1);
        color: #8a2be2;
    }

.footer {
    background: linear-gradient(to bottom, rgba(51, 65, 85, 0.8), rgba(100, 116, 139, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff !important;
}
.footer a{
    color:white;
}
main {
    flex: 1;
}
.normal-text {
    text-transform: none;
}
.mud-button-label {
    text-transform: none !important;
}
/* === Headings === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-weight: 500;
    color: #8a2be2;
    margin-bottom: 0.75rem;
    letter-spacing: 0.4px;
}
.bottm-border {
    padding-bottom: 0px;
    border-bottom: 2px solid #1e90ff;
    margin-bottom: 5px;
}
h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.85rem;
}
.hdr-icon{
    width: 60px;
    height: auto;
}
/* === Gradient Primary Buttons === */
.btn-primary {
    background: linear-gradient(135deg, #1e90ff, #8a2be2);
    border: none;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1c86ee, #6a0dad);
        box-shadow: 0 6px 18px rgba(138, 43, 226, 0.45);
        transform: translateY(-1px);
    }

/* === Card Styling === */
.card {
    background: linear-gradient(145deg, #ffffff, #eaecee);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(100, 100, 100, 0.1);
    color: #333;
}

/* === Input Fields === */
.form-control {
    background: #f7f9fb;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 0.4rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .form-control:focus {
        border-color: #8a2be2;
        box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
        background-color: #fff;
        color: #000;
    }

    .form-control::placeholder {
        color: #999;
        font-style: italic;
    }

/* === Tables === */
.table {
    color: #111;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

    .table th, .table td {
        border-color: #ddd;
    }

/* === Links === */
a {
    color: #1e90ff;
    text-decoration: none;
}

    a:hover {
        color: #6a0dad;
        text-decoration: underline;
    }

/* === Footer === */
footer {
    background-color: #2f2f2f; /* steel gray */
    color: #ccc;
    font-size: 0.85rem;
    padding: 10px 0;
    text-align: center;
    line-height: 20px !important;
    position: fixed !important;
    bottom: 0px !important;
    left: 0px !important;
}

/* === Smooth Hover Effects === */
.btn:hover,
.card:hover,
input:hover,
.form-control:hover {
    transition: all 0.3s ease;
    filter: brightness(1.02);
}

.bg-gradient-primary {
    background: linear-gradient(to right, #3b82f6, #1e3a8a ); /* dark blue to blue */
}

.bg-gradient-success {
    background: linear-gradient(to right, #21C35C, #17A64C ); /* dark green to emerald */
}

.bg-gradient-warning {
    background: linear-gradient(to right, #F66F15, #EC5A0D ); /* dark amber to yellow */
}

.bg-gradient-danger {
    background: linear-gradient(to right, #7f1d1d, #ef4444); /* dark red to red */
}
.bg-gradient-secondary {
    background: linear-gradient(to right, #334155, #64748b); /* dark slate to cool gray */
}
.bg-gradient-ultimate {
    background: linear-gradient(to right, #A550F4, #9435EB); /* dark slate to cool gray */
}

.bg-gradient-secondary-glass {
    background: linear-gradient(to bottom, rgba(51, 65, 85, 0.8), rgba(100, 116, 139, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.bg-light-glass {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(243, 244, 246, 0.8)); /* light glassy */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #000000 !important; /*  black border */
}


/* Solid Gradient Card */
.card.brand-gradient {
    background: linear-gradient(135deg, #1e90ff, #8a2be2);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Glassy Gradient Card */
.card.glassy-brand-gradient {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.3), rgba(138, 43, 226, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.equal-height {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.text-purple-accent4 {
    background: linear-gradient(to right, #0d6efd 0%, /* Bootstrap Primary at start */
    #5f4bb6 40%, /* Midpoint color */
    #8a2be2 100% /* Final accent color */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mud-nav-link-active {
    background-color: rgba(33, 150, 243, 0.1); /* light blue highlight */
    border-left: 4px solid #1e88e5; /* match primary color */
    color: #1e88e5 !important;
    font-weight: 600;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.v-text-primary {
    color: #594ae2 !important;
}
.text-purple {
    color: #9435EB !important;
}
/* OFF = RED */
.mud-switch-span:has(.mud-switch-input:not(:checked)) .mud-switch-track {
    background: #d32f2f !important;
}

.mud-switch-span:has(.mud-switch-input:not(:checked)) .mud-switch-thumb-medium {
    border: 2px solid #d32f2f !important;
    background: #d32f2f95 !important;
}

/* ON = GREEN */
.mud-switch-span:has(.mud-switch-input:checked) .mud-switch-track {
    background: #2e7d32 !important;
}

.mud-switch-span:has(.mud-switch-input:checked) .mud-switch-thumb-medium {
    border: 2px solid #2e7d32 !important;
    background: #2e7d3295 !important;
}
.lead-converted{
    background-color: lightgreen !important;
}
.lead-not-converted {
    background-color: transparent !important;
}
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-box-custom {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.kanban-column {
    width: 280px;
    min-height: 500px;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
}
.kanban-card {
    background: white;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: grab;
    user-select: none;
}
.kanban-card:active {
    cursor: grabbing;
}
.mud-badge.mud-badge-top.right.mud-badge-overlap {
    /* Original: calc(100% - 12px) */
    inset: auto auto calc(100% - 20px) calc(100% - 20px) !important;
}