* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #0f2936;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/bulleye-1.png");
    background-repeat: no-repeat;
    background-position: -350px 50px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.app-container {
    position: relative;
    display: flex;
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Styles */
.sidebar {
    position: relative;
    width: 260px;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: transparent;
    flex-shrink: 0;
}

.sidebar-title {
    font-family: 'Figtree', Helvetica;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 4px;
    flex: 0 1 auto; /* Allow nav to shrink/grow based on content, not take all space */
    overflow-y: auto;
    min-height: 0; /* Important: allows flex child to shrink below content size */
    max-height: calc(100vh - 64px - 120px); /* viewport - header - user section (approx) */
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 16px;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgb(52 111 129 / 56%);
    border-color: rgb(52 111 129);
}

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-item:hover .nav-icon {
    opacity: 0.9;
}

.nav-label {
    font-family: 'Figtree', Helvetica;
    font-weight: 500;
    font-size: 16px;
    color: #d1d5db;
    transition: color 0.2s;
}

.nav-item.active .nav-label {
    color: #ffffff;
}

.nav-item:hover .nav-label {
    color: #ffffff;
}

.nav-chevron {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: color 0.2s;
}

.nav-item.active .nav-chevron {
    color: #03a266;
}

.nav-item:hover .nav-chevron {
    color: #9ca3af;
}

/* Submenu alignment - align submenu items with parent text */
.submenu-items {
    padding-left: 32px; /* Icon width (20px) + gap (12px) */
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background-color: transparent;
    padding: 24px;
}

.content-wrapper {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: rgba(49, 114, 128, 0.41);
    border-radius: 0;
    border: 1px solid rgba(42, 77, 93, 0.5);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Navigation Bar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-shrink: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    font-size: 14px;
    color: #9ca3af;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
}

.breadcrumb-separator {
    font-size: 14px;
    color: #9ca3af;
}

.navbar-controls {
    display: flex;
    gap: 12px;
}

.select-wrapper {
    position: relative;
}

.select-input {
    width: 180px;
    padding: 8px 36px 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%231f2937'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

.select-input:focus {
    outline: 2px solid #03a266;
    outline-offset: 2px;
}

/* Filter selectors - ensure background overrides select */
.select-input.select {
    width: 180px;
    padding: 8px 36px 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%231f2937'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

/* Separator */
.separator {
    width: 100%;
    border-top: 2px dashed rgb(14 41 54);
    flex-shrink: 0;
}

/* Prospects Container */
.prospects-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
}

.prospects-inner {
    height: 100%;
    background: #346F82;
    border-radius: 12px;
    padding: 14px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.prospects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.prospects-title {
    font-family: 'Figtree', Helvetica;
    font-weight: 400;
    font-size: 28px;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.prospects-list {
    background: rgb(0 0 0 / 0%);
    border-radius: 8px;
    overflow-y: auto;
    flex: 1;
    padding-right: 6px;
}

/* Prospect Row */
.prospect-row {
    position: relative;
    border-top: 1px dashed rgba(3, 162, 102, 0.3);
    background: rgba(26, 61, 77, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.prospect-row:hover {
    background: rgba(15, 41, 54, 0.4);
}

.prospect-row.expanded {
    background: rgba(15, 41, 54, 0.6);
}

.prospect-header {
    display: grid;
    grid-template-columns: 70px 36px minmax(180px, 1fr) 100px 140px 100px 180px 1fr 50px;
    gap: 12px;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    font-size: 14px;
}

/* Company index grid (8 columns: logo, name, products, website, prospects, location, description, expand) */
.prospect-header.company-header {
    grid-template-columns: 36px minmax(150px, 220px) 100px 250px 100px 150px 1fr 50px;
}

/* Toggle Button */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

/* Reset margin when inside grid rows */
.prospect-row .toggle-container,
.monitor-row .toggle-container {
    margin-top: 0;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: #03a266;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-slider {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle-switch.off {
    background: #1c4754;
}

.toggle-switch.off .toggle-slider {
    transform: translateX(20px);
}

.follow-text {
    font-size: 12px;
    color: #d1d5db;
}

/* Company Name */
.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-right: 30px;
}

/* Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    min-width: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Score badge color variants (English names) */
.score-green { background: #11aa64; color: #ffffff; }    /* Excellent */
.score-blue { background: #009acc; color: #ffffff; }     /* Good */
.score-yellow { background: #d4a574; color: #ffffff; }   /* Fair */
.score-orange { background: #bd8a4e; color: #ffffff; }   /* Poor */
.score-red { background: #b04646; color: #ffffff; }      /* Low */
.score-gray { background: #5a7a84; color: #ffffff; }     /* Neutral/Default */

/* Website Link */
.website-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4db8e8;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: 10px;
}

.website-link:hover {
    color: #6dc9f0;
}

.globe-icon {
    width: 14px;
    height: 14px;
}

/* Stakeholders Badge */
.stakeholders-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 5px 14px;
    border-radius: 16px;
    background: #3d8fa8;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

/* Description Text */
.description-text {
    font-size: 15px;
    color: #e5e7eb;
    line-height: 1.5;
}

.description-text.product {
    color: #d1d5db;
    margin-left: 12px;
}

/* Expand Icon */
.expand-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-center: center;
}

.expand-icon.collapsed {
    color: #9ca3af;
}

.expand-icon.expanded {
    color: #03a266;
}

.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 0.2s;
    justify-self: end;
    margin-right: 0;
}

.expand-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Expanded Content */
.expanded-content {
    padding: 0 16px 16px 16px;
    display: none;
}

.expanded-content.visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expanded-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #282828; /* Ensure dark text on white background */
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.card-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3d8fa8 0%, #2c6f82 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon img,
.card-icon svg {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-badge {
    padding: 4px 12px;
    border-radius: 16px;
    background: linear-gradient(90deg, #3d8fa8 0%, #2c6f82 100%);
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.card-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Scrollbar Styles */
.prospects-container::-webkit-scrollbar,
.prospects-list::-webkit-scrollbar,
.company-detail-view::-webkit-scrollbar {
    width: 8px;
}

.prospects-container::-webkit-scrollbar-track,
.prospects-list::-webkit-scrollbar-track,
.company-detail-view::-webkit-scrollbar-track {
    background: rgba(26, 61, 77, 0.3);
    border-radius: 4px;
}

.prospects-container::-webkit-scrollbar-thumb,
.prospects-list::-webkit-scrollbar-thumb,
.company-detail-view::-webkit-scrollbar-thumb {
    background: rgba(3, 162, 102, 0.3);
    border-radius: 4px;
}

.prospects-container::-webkit-scrollbar-thumb:hover,
.prospects-list::-webkit-scrollbar-thumb:hover,
.company-detail-view::-webkit-scrollbar-thumb:hover {
    background: rgba(3, 162, 102, 0.5);
}

/* Mobile Nav Buttons in Sidebar */
.mobile-nav-buttons {
    display: none;
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    min-width: 180px;
    width: auto;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 16px;
    position: relative;
    border-radius: 30px;
    border: none;
    background: linear-gradient(
        90deg,
        rgba(52, 110, 130, 1) 0%,
        rgba(48, 115, 127, 1) 28%,
        rgba(52, 110, 130, 1) 72%,
        rgba(47, 116, 126, 1) 100%
    );
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
}

.button .button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.button .button-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-family: "Figtree", Helvetica;
    font-weight: 700;
    color: inherit;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 21px;
    white-space: nowrap;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(
        178deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(7, 166, 93, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1899px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-title {
        display: none;
    }

    .nav-label {
        display: none;
    }

    .nav-chevron {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .nav-item-content {
        gap: 0;
    }

    .prospect-header {
        grid-template-columns: 70px 36px minmax(150px, auto) 80px 150px 100px 1fr 60px;
    }

    .prospect-header.company-header {
        grid-template-columns: 36px minmax(150px, 1fr) 90px 140px 90px 140px 1fr 50px;
    }

    .description-text.product {
        display: none;
    }
}

@media (max-width: 1400px) {
    .prospect-header {
        grid-template-columns: 60px 32px minmax(120px, auto) 100px 130px 100px 1fr 50px;
        gap: 10px;
    }

    .prospect-header.company-header {
        grid-template-columns: 32px minmax(140px, 1fr) 90px 130px 90px 1fr 50px;
    }
}

@media (max-width: 1200px) {
    .expanded-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mobile-overlay {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        background: #0f2936;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
        width: 240px;
    }

    .sidebar.active .nav-label {
        display: block;
    }

    .sidebar.active .nav-item {
        justify-content: space-between;
        padding: 12px 16px;
    }

    .sidebar.active .nav-item-content {
        gap: 12px;
    }

    .sidebar.active .sidebar-title {
        display: block;
    }

    .sidebar.active .nav-chevron {
        display: block;
    }

    .sidebar.active .mobile-nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-btn {
        all: unset;
        box-sizing: border-box;
        display: flex;
        width: 100%;
        height: 38px;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 4px 16px;
        border-radius: 30px;
        border: none;
        background: linear-gradient(
            90deg,
            rgba(52, 110, 130, 1) 0%,
            rgba(48, 115, 127, 1) 28%,
            rgba(52, 110, 130, 1) 72%,
            rgba(48, 115, 127, 1) 100%
        );
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .mobile-nav-btn:hover {
        opacity: 0.9;
    }

    .mobile-nav-btn .container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-btn .text-wrapper {
        font-family: 'Figtree', Helvetica;
        font-weight: 600;
        font-size: 15px;
        color: #ffffff;
        text-align: center;
        white-space: nowrap;
    }

    .main-content {
        padding: 16px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .nav-buttons {
        display: none;
    }

    .prospects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .navbar-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .select-wrapper {
        width: 100%;
    }

    .select-input {
        width: 100%;
    }

    .prospects-container {
        padding: 16px;
    }

    .prospects-inner {
        padding: 12px 16px 16px 16px;
    }

    .prospect-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .prospect-row {
        width: 100%;
    }

    .toggle-container {
        order: 1;
    }

    .company-name {
        order: 1;
        flex: 1;
        margin-right: 12px;
    }

    .score-badge {
        order: 1;
    }

    .website-link {
        order: 2;
        flex: 1;
    }

    .stakeholders-badge {
        order: 2;
    }

    .description-text {
        order: 4;
    }

    .description-text.product {
        display: block;
        order: 3;
    }

    .expand-button {
        order: 5;
        align-self: flex-end;
        margin-top: -40px;
    }

    .prospect-header > *:nth-child(1),
    .prospect-header > *:nth-child(2),
    .prospect-header > *:nth-child(3) {
        display: flex;
    }

    .prospect-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto auto auto auto auto;
        gap: 12px;
        align-items: center;
    }

    .company-name {
        grid-column: 1 / 4;
        grid-row: 1;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .toggle-container {
        grid-column: 1;
        grid-row: 2;
    }

    .score-badge {
        grid-column: 3;
        grid-row: 2;
    }

    .website-link {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .stakeholders-badge {
        grid-column: 3;
        grid-row: 3;
    }

    .description-text.product {
        display: block;
        grid-column: 1 / 4;
        grid-row: 4;
    }

    .description-text:not(.product) {
        grid-column: 1 / 4;
        grid-row: 5;
    }

    .expand-button {
        grid-column: 3;
        grid-row: 6;
        justify-self: end;
        margin-top: 0;
    }

    .expanded-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 450px) and (max-width: 1024px) {
    .navbar-controls {
        flex-direction: row;
        align-items: center;
    }

    .select-wrapper {
        width: auto;
    }

    .select-input {
        width: 180px;
    }
}

/* Breadcrumb Link */
.breadcrumb-link {
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #03a266;
}

/* Company Detail View */
.company-detail-view {
    height: 100%;
    background: transparent;
    border-radius: 12px;
    padding: 0 6px 0 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.company-detail-header {
    margin-bottom: 24px;
}

.detail-header-row {
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-header-top {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.company-logo {
    width: 80px;
    height: 80px;
    background: #1a2e3a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Transparent background when showing actual logo image */
.company-logo.company-logo--has-image,
.company-logo.company-logo-sm.company-logo--has-image {
    background: transparent !important;
    box-shadow: none !important;
}

.company-initials {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Small variant for company index rows */
.company-logo-sm {
    width: 28px;
    height: 28px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.company-logo-sm .company-initials {
    font-size: 11px;
    letter-spacing: 0;
}

.company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-name-header {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.company-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.badge-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.company-description {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.95;
    max-width: 100%;
}

.prospect-score-box {
    position: absolute;
    top: 0;
    right: 0;
    background: #03a266;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(3, 162, 102, 0.4);
    min-width: 100px;
}

.prospect-score-value {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.prospect-score-label {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

.detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 24px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-value.highlight {
    color: #03a266;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    width: fit-content;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(52, 111, 129, 0.4);
    border: none;
    border-radius: 0;
    font-family: 'Figtree', Helvetica;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:first-child {
    border-radius: 24px 0 0 24px;
}

.tab-button:last-child {
    border-radius: 0 24px 24px 0;
}

.tab-button:hover {
    background: rgba(52, 111, 129, 0.6);
    color: #ffffff;
}

.tab-button.active {
    background: #03a266;
    color: #ffffff;
}

.tab-button.disabled,
.tab-button:disabled {
    cursor: not-allowed !important;
    background: rgba(52, 111, 129, 0.4);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none !important;
    opacity: 0.5;
}

/* Completely disable hover effects on disabled tabs */
.tab-button.disabled:hover,
.tab-button:disabled:hover,
.tab-button[disabled]:hover {
    background: rgba(52, 111, 129, 0.4) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transform: none !important;
    box-shadow: none !important;
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.detail-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.overview-tiles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
    align-items: stretch;
}

.overview-tile {
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Content wrapper grows to push button to bottom */
.overview-tile .tile-content-wrapper {
    flex: 1;
}

/* Push edit button to bottom of tile */
.overview-tile > .text-start.mt-3 {
    margin-top: auto;
}

.white-tile {
    background: #ffffff;
    font-size: 15px;
    color: #4a5568; /* Default dark text for all white-tile content */
}

.white-tile .tile-title {
    color: #1a2e3a;
}

.white-tile .tile-content {
    color: #4a5568;
}

.white-tile .info-row strong {
    color: #1a2e3a;
}

.white-tile .info-row span {
    color: #4a5568;
}

.white-tile .icp-section strong {
    color: #1a2e3a;
}

.white-tile .tile-section strong {
    color: #1a2e3a;
}

.white-tile .icp-tag {
    color: #1a2e3a;
}

.white-tile .icp-section {
    color: #4a5568;
}

.white-tile .tile-tab-content {
    color: #4a5568;
}

.gradient-tile {
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gradient-tile .tile-title {
    color: #ffffff;
}

.gradient-tile .tile-content {
    color: #ffffff;
    opacity: 0.9;
}

.gradient-tile .tile-subtitle {
    color: #ffffff;
}

.gradient-tile .tile-section strong {
    color: #ffffff;
}

.tile-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.tile-content {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tile-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 16px 0;
    color: #1a2e3a;
}

.tile-section {
    margin-bottom: 20px;
    overflow: hidden;
    max-width: 100%;
}

.tile-section:last-child {
    margin-bottom: 0;
}

.tile-section strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a2e3a;
    display: block;
    margin-bottom: 8px;
}

.tile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tile-list li {
    padding: 4px 12px;
    border-radius: 16px;
    background: linear-gradient(90deg, #3d8fa8 0%, #2c6f82 100%);
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.gradient-tile .tile-list li {
    background: #356576;
}

.tile-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 2px;
}

.tile-tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.tile-tab-button:hover {
    color: #374151;
}

.tile-tab-button.active {
    color: #4a8fa3;
    border-bottom-color: #4a8fa3;
}

.tile-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tile-tab-content.active {
    display: block;
}

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

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    padding: 16px 0;
    line-height: 1.4;
}

.word-cloud-item {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3d8fa8 0%, #2c7a8e 100%);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: default;
}

.word-cloud-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(61, 143, 168, 0.3);
}

.word-cloud-item.size-xl {
    font-size: 20px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #2c7a8e 0%, #1e5a6b 100%);
    font-weight: 600;
}

.word-cloud-item.size-lg {
    font-size: 16px;
    padding: 7px 16px;
}

.word-cloud-item.size-md {
    font-size: 14px;
}

.word-cloud-item.size-sm {
    font-size: 12px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #4a9fb5 0%, #3d8fa8 100%);
}

.word-cloud-item.size-xs {
    font-size: 11px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #5aafca 0%, #4a9fb5 100%);
    opacity: 0.9;
}

/* Partnership Tags - Reference: gray rounded badges */
.partnerships-section {
    margin-top: 16px;
}

.partnerships-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.partnerships-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partnership-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.partnership-tag:hover {
    background: #d1d5db;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    gap: 16px;
    font-size: 15px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    font-weight: 600;
    color: #ffffff;
    min-width: 120px;
    flex-shrink: 0;
}

.info-row span {
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .detail-cards-container {
        grid-template-columns: 1fr;
    }

    .overview-tiles-container {
        grid-template-columns: 1fr;
    }

    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 1024px) {
    .company-detail-view {
        padding: 0;
    }

    .detail-header-row {
        padding: 24px;
    }

    .detail-header-top {
        flex-direction: column;
        gap: 16px;
    }

    .prospect-score-box {
        position: static;
        align-self: center;
        width: fit-content;
    }

    .company-name-header {
        font-size: 24px;
    }

    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 0;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-value {
        font-size: 28px;
    }

    .detail-cards-container {
        grid-template-columns: 1fr;
    }

    .company-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-button {
        padding: 10px 22px;
        font-size: 14px;
        white-space: nowrap;
    }

    .tab-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .company-tabs {
        display: none;
    }

    .detail-stats-row {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

/* Buyer Readiness Tile */
.buyer-readiness-tile {
    padding: 0 !important;
}

.buyer-readiness-header {
    padding: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.buyer-readiness-header a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.readiness-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
    position: relative;
}

.readiness-top-section.historical-view {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: -12px;
    margin-bottom: 16px;
}

.historical-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.historical-badge .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.historical-badge .btn-link {
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
}

.readiness-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.readiness-score-display {
    text-align: center;
    padding-right: 16px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.readiness-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.readiness-score-max {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.readiness-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.readiness-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.readiness-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.readiness-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.readiness-badge.hot-lead {
    background: #c14342c4 !important;
    color: #ffffff !important;
}

.readiness-badge.warm-lead {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.readiness-badge.cold-lead {
    background: #6b7280 !important;
    color: #ffffff !important;
}

.readiness-badge.nurture {
    background: #10b981 !important;
    color: #ffffff !important;
}

.readiness-badge.not-a-fit {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.readiness-badge.confidence {
    background: #ffffff;
    color: #4b5563;
    cursor: help;
}

.badge-icon-small {
    width: 16px;
    height: 16px;
}

.confidence-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-weight: 700;
}

.readiness-right {
    display: flex;
    gap: 24px;
    text-align: right;
}

.readiness-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.readiness-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.readiness-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.readiness-action-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.action-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.action-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    color: #1e40af;
}

.buyer-readiness-chart-section {
    padding: 24px;
}

.chart-header {
    margin-bottom: 16px;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.chart-icon {
    width: 20px;
    height: 20px;
    color: #8b5cf6;
}

.chart-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #f3e8ff;
    color: #7c3aed;
}

.chart-container {
    width: 100%;
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.readiness-chart-svg {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.hot {
    background: #ef4444;
}

.legend-dot.warm {
    background: #f97316;
}

.legend-dot.nurture {
    background: #eab308;
}

.legend-dot.cold {
    background: #3b82f6;
}

@media (max-width: 1024px) {
    .readiness-top-section {
        flex-direction: column;
    }

    .readiness-right {
        width: 100%;
        justify-content: flex-start;
    }

    .chart-legend {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .readiness-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .readiness-score-display {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 12px;
    }

    .readiness-right {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }
}

.message-proposal-section {
    margin-top: 24px;
    padding: 20px;
    background: #3e7a8e2b;
    border-radius: 12px;
}

.message-proposal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 12px 0;
}

.message-proposal-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1e3a8a;
    margin: 0 0 16px 0;
}

.message-proposal-button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    min-width: 180px;
    width: auto;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 16px;
    position: relative;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Figtree", Helvetica;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 21px;
    white-space: nowrap;
}

.message-proposal-button .button-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    position: relative;
    z-index: 2;
}

.message-proposal-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(
        178deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(7, 166, 93, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.message-proposal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
}

.readiness-chart-svg {
    width: 100%;
    height: auto;
}

.tile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tile-title-row .tile-title {
    margin-bottom: 0;
}

.recommended-action-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.recommended-action-badge.urgent {
    background: #c14342c4;
    color: #ffffff;
}

.recommended-action-badge.long-term {
    background: #dbeafe;
    color: #1e40af;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.5s ease-out forwards;
}

.chart-area {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.chart-dot {
    transform-origin: center;
    transform: scale(0);
    animation: popIn 0.4s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stakeholder-row {
    margin-bottom: 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stakeholder-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stakeholder-row.stakeholder-secondary {
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    color: #ffffff;
}

.stakeholder-row.stakeholder-secondary:hover {
    box-shadow: 0 4px 12px rgba(90, 155, 168, 0.3);
}

.stakeholder-row.stakeholder-secondary .stakeholder-row-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stakeholder-row.stakeholder-secondary .stakeholder-name,
.stakeholder-row.stakeholder-secondary .stakeholder-role-dept,
.stakeholder-row.stakeholder-secondary .contact-item,
.stakeholder-row.stakeholder-secondary .last-contact-display,
.stakeholder-row.stakeholder-secondary .detail-link,
.stakeholder-row.stakeholder-secondary .meta-line,
.stakeholder-row.stakeholder-secondary .stakeholder-expand-btn {
    color: #ffffff;
}

.stakeholder-row.stakeholder-secondary .contact-item i,
.stakeholder-row.stakeholder-secondary .expand-icon {
    color: rgba(255, 255, 255, 0.9);
}

.stakeholder-row.stakeholder-secondary .detail-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.stakeholder-row.stakeholder-secondary .interest-influence-badge,
.stakeholder-row.stakeholder-secondary .influence-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.stakeholder-row.stakeholder-secondary .stakeholder-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
}

.stakeholder-row.stakeholder-secondary .engagement-badge {
    background: #ffffff;
    color: #5a9ba8;
}

.stakeholder-row-header {
    display: grid;
    grid-template-columns: 56px 1fr 280px 180px 48px;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.stakeholder-row-header:hover {
    background: #f9fafb;
}

.stakeholder-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
}

.stakeholder-avatar.has-badge {
    position: relative;
}

.engagement-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c14342c4;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid white;
}

.stakeholder-basic-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.stakeholder-name-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stakeholder-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a2e3a;
    margin: 0;
}

.stakeholder-role-dept {
    font-size: 14px;
    color: #6b7280;
}

.stakeholder-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.contact-item i {
    color: #9ca3af;
    font-size: 14px;
    width: 16px;
}

.stakeholder-meta-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    margin-left: 40px;
}

.meta-line {
    font-size: 13px;
    color: #6b7280;
}

.stakeholder-expand-btn {
    all: unset;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.stakeholder-expand-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.stakeholder-expand-btn .expand-icon {
    transition: transform 0.3s ease;
}

.stakeholder-row.expanded .stakeholder-expand-btn .expand-icon {
    transform: rotate(180deg);
    color: #03a266;
}

.decision-maker-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.interest-influence-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.interest-influence-badge.low-influence {
    background: #c14342c4;
    color: #ffffff;
}

.interest-influence-badge.high-influence {
    background: #dcfce7;
    color: #166534;
}

.interest-influence-badge.medium-influence {
    background: #fef3c7;
    color: #92400e;
}

.user-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.influence-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.influence-badge.influence-high {
    background: #c14342c4;
    color: #ffffff;
}

.influence-badge.influence-medium {
    background: #fef3c7;
    color: #92400e;
}

.influence-badge.influence-low {
    background: #f3f4f6;
    color: #6b7280;
}

.stakeholder-expanded-content {
    display: none;
    padding: 0 24px 24px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    animation: slideDown 0.3s ease;
}

.stakeholder-row.expanded .stakeholder-expanded-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.detail-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.detail-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.detail-text {
    color: #6b7280;
    font-size: 13px;
}

.stakeholder-notes {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
}

.notes-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.notes-content {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.stakeholder-expanded-content > *:first-child {
    margin-top: 20px;
}

.influence-analysis-section,
.interest-signals-section,
.timeline-section,
.sources-section {
    margin-top: 16px;
    padding: 20px;
    border-radius: 8px;
}

.influence-analysis-section {
    background: #eff6ff;
}

.interest-signals-section {
    background: #f9fafb;
}

.timeline-section {
    background: #faf5ff;
}

.sources-section {
    background: #f9fafb;
    padding: 22px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.section-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #4a8fa3;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.section-content {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.confidence-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: auto;
}

.confidence-indicator.confidence-high {
    background: #dcfce7;
    color: #166534;
}

.confidence-indicator.confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-indicator.confidence-low {
    background: #c14342c4;
    color: #ffffff;
}

.signal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.signal-tag {
    display: inline-flex;
    padding: 4px 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-event {
    padding-left: 14px;
    border-left: 2px solid #e9d5ff;
}

.event-header {
    margin-bottom: 6px;
}

.event-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2e3a;
    margin-bottom: 5px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.event-tag {
    display: inline-flex;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
}

.event-tag:nth-child(1) {
    background: #fce7f3;
    color: #9f1239;
}

.event-tag:nth-child(2) {
    background: #dbeafe;
    color: #1e40af;
}

.event-date {
    font-size: 11px;
    color: #9ca3af;
}

.event-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 8px;
}

.event-source,
.source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s;
}

.event-source:hover,
.source-link:hover {
    color: #6d28d9;
}

.source-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.sources-header {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.source-link {
    padding: 5px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}

.source-link:hover {
    background: #bfdbfe;
    color: #1e3a8a;
}

@media (max-width: 640px) {
    .tile-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .recommended-action-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .stakeholder-row-header {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .stakeholder-basic-info {
        order: 2;
    }

    .stakeholder-contact-info {
        order: 3;
    }

    .stakeholder-meta-right {
        order: 4;
        text-align: left;
    }

    .stakeholder-expand-btn {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .stakeholder-avatar {
        order: 1;
    }
}

.scoring-tile {
    padding: 0 !important;
}

.scoring-header {
    padding: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.scoring-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.scoring-left-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scoring-score-display {
    text-align: center;
    padding-right: 16px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.scoring-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.scoring-score-max {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.scoring-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scoring-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.scoring-badges {
    display: flex;
    gap: 8px;
}

.scoring-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.scoring-badge.qualified {
    background: #01a266;
    color: #ffffff;
}

.scoring-badge-icon {
    width: 16px;
    height: 16px;
}

.scoring-right-section {
    display: flex;
    gap: 24px;
    text-align: right;
}

.scoring-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scoring-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.scoring-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.scoring-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 32px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 2px;
}

.scoring-tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.scoring-tab-button:hover {
    color: #374151;
}

.scoring-tab-button.active {
    color: #4a8fa3;
    border-bottom-color: #4a8fa3;
}

.scoring-tab-content {
    display: none;
}

.scoring-tab-content.active {
    display: block;
}

.scoring-section {
    padding: 32px;
}

.scoring-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.scoring-criteria-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scoring-criteria-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criteria-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.criteria-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.criteria-item-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 15px;
}

.criteria-weight-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #dbeafe;
    color: #1e40af;
}

.criteria-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.criteria-score {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.criteria-points {
    font-size: 12px;
    color: #6b7280;
}

.criteria-progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.criteria-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.criteria-progress-fill.green {
    background: #10b981;
}

.criteria-progress-fill.blue {
    background: #3b82f6;
}

.criteria-description {
    margin-top: 8px;
}

.criteria-description-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.criteria-bullet {
    flex-shrink: 0;
    margin-top: 4px;
}

.criteria-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.criteria-description-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 8px 0 0 0;
}

.criteria-confidence {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.confidence-indicator-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.confidence-indicator-icon.green {
    color: #10b981;
}

.confidence-indicator-icon.yellow {
    color: #eab308;
}

.confidence-percentage {
    font-weight: 500;
}

.confidence-percentage.green {
    color: #10b981;
}

.confidence-percentage.yellow {
    color: #eab308;
}

.confidence-status {
    color: #6b7280;
}

.confidence-tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 4px;
}

.confidence-tooltip-icon {
    width: 12px;
    height: 12px;
    color: #9ca3af;
    cursor: help;
}

.confidence-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
    display: none;
    width: 256px;
    padding: 12px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 50;
    line-height: 1.5;
}

.confidence-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #1f2937;
}

.confidence-tooltip-wrapper:hover .confidence-tooltip {
    display: block;
}

.knockout-criteria-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.knockout-criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid;
}

.knockout-criteria-item.passed {
    background: #3e7a8c24;
    border: none;
}

.knockout-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #10b981;
}

.knockout-content {
    flex: 1;
}

.knockout-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.knockout-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 15px;
}

.knockout-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.knockout-badge.required {
    background: #c14342c4;
    color: #ffffff;
}

.knockout-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.activity-timeline {
    padding: 0;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-date-section {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-date-section:last-child {
    margin-bottom: 0;
}

.timeline-date-header {
    display: flex;
    align-items: center;
    padding: 20px 32px;
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
}

.date-icon-wrapper {
    flex-shrink: 0;
}

.date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.date-info {
    margin-left: 16px;
}

.date-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.date-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 4px 0 0 0;
}

.timeline-events {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
}

.timeline-event-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.timeline-event-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.event-icon-wrapper {
    flex-shrink: 0;
}

.event-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.event-icon.category-blue {
    background: #3b82f6;
}

.event-icon.category-green {
    background: #10b981;
}

.event-icon.category-gray {
    background: #6b7280;
}

.event-icon.category-purple {
    background: #8b5cf6;
}

.event-icon.category-yellow {
    background: #f59e0b;
}

.event-icon.category-red {
    background: #dc2626;
}

.event-icon.category-orange {
    background: #f97316;
}

.event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    background: #dbeafe;
    color: #1e40af;
    white-space: nowrap;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.event-source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.event-source-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.event-description {
    font-size: 14px;
    color: #111827;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.event-significance {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin: 16px 0;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
}

.significance-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #d97706;
}

.significance-content {
    flex: 1;
}

.significance-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
}

.significance-text {
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
    margin: 0;
}

.event-metadata {
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.metadata-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.metadata-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.metadata-label {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.metadata-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.event-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.create-task-button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    min-width: 180px;
    width: auto;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 16px;
    position: relative;
    background: linear-gradient(142deg, rgb(3, 162, 102) 0%, rgb(13, 127, 136) 100%);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Figtree", Helvetica;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: 21px;
    white-space: nowrap;
}

.create-task-button .button-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    position: relative;
    z-index: 2;
}

.create-task-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(
        178deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(7, 166, 93, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.create-task-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
}

@media (max-width: 1024px) {
    .scoring-header-content {
        flex-direction: column;
    }

    .scoring-right-section {
        width: 100%;
        justify-content: flex-start;
    }

    .scoring-criteria-list {
        grid-template-columns: 1fr;
    }

    .knockout-criteria-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .scoring-left-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .scoring-score-display {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 12px;
    }

    .scoring-right-section {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }

    .confidence-tooltip {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .confidence-tooltip::after {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #1f2937;
        border-bottom: none;
    }

    .timeline-date-header {
        padding: 16px;
    }

    .timeline-events {
        padding: 16px;
    }

    .event-title {
        font-size: 16px;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-badges {
        margin-left: 0;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

/* Support both .active (backward compatibility) and .show (Bootstrap convention) */
.modal-overlay.show,
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #346f82c9;
    border: 1px solid rgba(52, 111, 129, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    padding-left: 20px;
    padding-right: 20px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 14px;
    border-bottom: 1px solid rgba(52, 111, 129, 0.2);
    flex-shrink: 0;
}

.modal-step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step-number.active {
    background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
    color: #ffffff;
    border-color: #02b574;
    box-shadow: 0 2px 8px rgba(3, 162, 102, 0.3);
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.modal-step {
    display: block;
}

.modal-step.hidden {
    display: none;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form row layout for inline fields */
.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-col-half {
    flex: 1;
    min-width: 0;
}

.form-col-sm {
    flex: 0 0 140px;
    min-width: 0;
}

.form-col-lg {
    flex: 1;
    min-width: 0;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .form-col-sm,
    .form-col-half {
        flex: 1;
    }
}

.label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 12px 16px;
    background: #33616f12;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    font-size: 15px;
    font-family: 'Figtree', sans-serif;
    transition: all 0.2s ease;
}

.select {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: rgb(52, 111, 129);
    background: #ffffff;
}

.input::placeholder,
.textarea::placeholder {
    color: #6b7280;
}

.textarea {
    resize: vertical;
    min-height: 52px;
}

.input.error,
.textarea.error,
.select.error {
    border-color: #ef4444;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Error message styling */
.error-message {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    color: #ef4444;
    line-height: 1.2;
}

.input-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.select[multiple] {
    min-height: 120px;
    padding: 8px 12px;
    background-image: none;
}

.select[multiple] option {
    padding: 6px 8px;
    border-radius: 4px;
    color: #111827;
}

.select[multiple] option:checked {
    background-color: rgb(52, 111, 129);
    color: white;
}

.select[multiple]::-webkit-scrollbar {
    width: 8px;
}

.select[multiple]::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.select[multiple]::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.select[multiple]::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.info-text {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    padding: 40px 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    border-top: 1px solid rgba(52, 111, 129, 0.3);
    flex-shrink: 0;
    margin-top: auto; /* Push footer to bottom when content is shorter than modal height */
}

.footer-actions {
    display: flex;
    gap: 12px;
}

/* Wizard Introduction Section Heading */
.wizard-section-heading {
    margin-bottom: 16px;
}

/* Loading Overlay for Wizard Steps */
.wizard-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    border-radius: 15px;
}

.wizard-loading-overlay.hidden {
    display: none;
}

.wizard-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wizardSpin 0.8s linear infinite;
}

@keyframes wizardSpin {
    to { transform: rotate(360deg); }
}

/* Wizard Modal Backdrop */
.wizard-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.button-primary,
.button-secondary {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Figtree', sans-serif;
}

.button-primary {
    position: relative;
    background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
}

.button-primary span {
    position: relative;
    z-index: 2;
}

.button-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(
        178deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(7, 166, 93, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
}

.button-secondary {
    background: transparent;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.button-primary.hidden,
.button-secondary.hidden {
    display: none;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header,
    .modal-content,
    .modal-footer {
        padding: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    .footer-actions {
        width: 100%;
    }

    .button-primary,
    .button-secondary {
        flex: 1;
    }
}

/* =====================================================
   ADVICE CAROUSEL STYLES
   ===================================================== */

/* Carousel Container */
.advice-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Carousel Slide Wrapper */
.advice-carousel-slides-wrapper {
  display: flex;
  transition: transform 0.3s ease-in-out;
  max-width: 100%;
}

/* Individual Slide */
.advice-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Ensure slide content respects boundaries */
.advice-carousel-slide > * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Navigation Controls (centered below) */
.advice-carousel-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* Nav Buttons */
.carousel-nav-button {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #4a8fa3;
  padding: 4px;
}

.carousel-nav-button:hover:not(:disabled) {
  color: #3d7a8d;
  transform: scale(1.2);
}

.carousel-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Indicator Dots */
.carousel-indicators {
  display: flex;
  gap: 6px;
}

.carousel-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-indicator.active {
  background: #4a8fa3;
  transform: scale(1.3);
}

.carousel-indicator:hover {
  background: #9ca3af;
}
/* ====================================
   Home Dashboard Styles
   Source: /frontend/styles.css
   ==================================== */

/* Stats Row */
.detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 24px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-value.highlight {
    color: #03a266;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.stat-badge-new {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

/* Home View Wrapper - ensures proper flex scrolling */
.home-view-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Home Dashboard Layout */
.home-dashboard {
    padding: 0 0 32px 0;
}

.home-header-container {
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    border-radius: 16px;
    padding: 32px 32px 24px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.home-header {
    margin-bottom: 24px;
}

.home-welcome {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.home-subtitle {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.6;
}

.home-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
    align-items: stretch; /* Equal height for task/activity sections */
}

/* Section Cards */
.home-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    min-height: 574px;
    max-height: 574px;
}

.home-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.home-section.home-full-width {
    grid-column: 1 / -1;
    min-height: auto;
    max-height: none;
}

.home-section.home-full-width .home-section-content {
    max-height: none;
    overflow-y: visible;
}

.home-section-header {
    padding: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-section-title {
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.home-section-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-section-filter {
    --fa-style-family-brands: "Font Awesome 6 Brands";
    --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
    --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
    --fa-style-family-classic: "Font Awesome 6 Free";
    --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
    --company-name-width: 170px;
    margin: 0;
    box-sizing: border-box;
    width: 180px;
    padding: 8px 36px 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%231f2937'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

.home-section-filter:hover {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-section-filter:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.1);
}

.home-section-filter option {
    background: #ffffff;
    color: #1f2937;
}

.home-section-action {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.home-section-action:hover {
    color: #ffffff;
}

.home-section-content {
    padding: 0;
    max-height: calc(574px - 73px); /* Section height minus header height */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Task Items */
.home-task-item {
    padding: 18px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s ease;
}

.home-task-item:hover {
    background: #f8fafc;
}

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

.home-task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.home-task-checkbox:hover {
    border-color: #3b82f6;
}

.home-task-checkbox.checked {
    background-color: #22c55e;
    border-color: #22c55e;
    position: relative;
}

.home-task-checkbox.checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.home-task-content {
    flex: 1;
    min-width: 0;
}

.home-task-meta-action {
    color: #0369a1;
}

.home-task-meta-action i {
    color: #0369a1;
}

.home-task-meta-prospect {
    color: #15803d;
}

.home-task-meta-prospect i {
    color: #15803d;
}

.home-task-meta-in-progress {
    color: #d97706;
    font-weight: 500;
}

.home-task-meta-in-progress i {
    color: #d97706;
}

.home-task-title {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Completed task styling - strikethrough and darker background */
.home-task-item-completed {
    background: #f1f5f9;
}

.home-task-item-completed:hover {
    background: #e2e8f0;
}

.home-task-title-completed {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #94a3b8;
    color: #94a3b8;
    opacity: 0.85;
}

.home-task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.home-task-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-priority-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.home-priority-badge.priority-urgent {
    background: #fee2e2;
    color: #dc2626;
}

.home-priority-badge.priority-high {
    background: #fef3c7;
    color: #d97706;
}

.home-priority-badge.priority-normal {
    background: #dbeafe;
    color: #2563eb;
}

.home-priority-badge.priority-low {
    background: #f1f5f9;
    color: #64748b;
}

.home-created-by-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #f0fdf4;
    color: #16a34a;
}

/* Task Checkbox Link - clickable wrapper */
.home-task-checkbox-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.home-task-checkbox-link:hover .home-task-checkbox {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.home-task-checkbox-link:hover .home-task-checkbox.checked {
    background-color: #16a34a;
    border-color: #16a34a;
}

/* Claim Button */
.home-task-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.home-task-claim-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
    color: #0284c7;
}

.home-task-claim-btn i {
    font-size: 14px;
}

/* Activity Items */
.home-activity-item {
    padding: 18px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 18px;
    transition: all 0.2s ease;
}

.home-activity-item:hover {
    background: #f8fafc;
}

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

.home-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.home-activity-icon.news { background: #dbeafe; color: #2563eb; }
.home-activity-icon.award { background: #fef3c7; color: #d97706; }
.home-activity-icon.growth { background: #d1fae5; color: #059669; }
.home-activity-icon.leadership { background: #e0e7ff; color: #4f46e5; }
.home-activity-icon.buying_readiness { background: #fee2e2; color: #dc2626; }
.home-activity-icon.product { background: #f3e8ff; color: #7c3aed; }

.home-activity-content {
    flex: 1;
}

.home-activity-company {
    font-size: 15px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 5px;
    line-height: 1.4;
}

.home-activity-title {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 5px;
    line-height: 1.4;
}

.home-activity-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}

.home-activity-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Lead Cards Grid */
.home-lead-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 28px;
    max-height: 600px;
    overflow-y: auto;
}

.home-lead-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.home-lead-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.home-lead-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.home-lead-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.home-lead-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.home-lead-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
    line-height: 1.4;
}

.home-lead-score {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 5px 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

.home-lead-info {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.5;
}

.home-lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.home-lead-tag {
    padding: 5px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.home-lead-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.home-lead-time {
    font-size: 12px;
    color: #94a3b8;
}

.home-lead-source {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.home-lead-source.source-system {
    background: #ede9fe;
    color: #7c3aed;
}

.home-lead-source.source-user {
    background: #dbeafe;
    color: #2563eb;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .home-lead-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 1024px) {
    .home-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .home-lead-grid {
        grid-template-columns: 1fr;
    }

    .home-dashboard {
        padding: 0 0 24px 0;
    }

    .home-header-container {
        padding: 28px;
    }

    .home-dashboard-grid {
        gap: 20px;
    }

    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 0;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .home-header-container {
        padding: 24px;
        border-radius: 12px;
    }

    .home-welcome {
        font-size: 26px;
    }

    .home-subtitle {
        font-size: 15px;
    }

    .home-header {
        margin-bottom: 20px;
    }

    .home-section-header {
        padding: 20px;
    }

    .home-task-item {
        padding: 16px 20px;
    }

    .home-activity-item {
        padding: 16px 20px;
    }

    .home-lead-grid {
        padding: 20px;
        gap: 16px;
    }

    .detail-stats-row {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

/* ========================================
   TASK MANAGEMENT STYLES
   ======================================== */

/* CSS Custom Properties for Tasks */
:root {
  --task-priority-high: #ef4444;
  --task-priority-normal: #3b82f6;
  --task-priority-low: #64748b;
  --task-card-bg: #ffffff;
  --task-card-shadow: rgba(0, 0, 0, 0.1);
  --task-card-shadow-hover: rgba(0, 0, 0, 0.15);
  --kanban-column-bg: rgba(30, 41, 59, 0.5);
  --kanban-column-border: rgba(255, 255, 255, 0.1);
  --kanban-header-text: #e2e8f0;
}

/* Task Priority Badge */
.task-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Task Action Buttons */
.task-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-action-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.task-action-btn i {
  color: inherit !important;
}

/* Task Date Badge */
.task-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.task-date i {
  font-size: 0.8125rem;
  color: #64748b !important;
}

.task-date.overdue {
  color: #ef4444;
  font-weight: 500;
}

.task-date.due-today {
  color: #f59e0b;
  font-weight: 500;
}

/* Task Card */
.task-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: move;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Task card content wrapper - takes remaining space */
.task-card-content {
  flex: 1;
  min-width: 0;
}

/* Task card content link - clickable area without underline */
.task-card-content-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.task-card-content-link:hover {
  text-decoration: none;
}

/* Task card actions - edit/delete buttons side by side */
.task-card-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Home task content link - clickable area without underline */
.home-task-content-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.home-task-content-link:hover {
  text-decoration: none;
}

/* Task card checkbox - matching home page style */
.task-card-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.task-card-checkbox:hover {
  border-color: #3b82f6;
}

.task-card-checkbox.checked {
  background-color: #22c55e;
  border-color: #22c55e;
  position: relative;
}

.task-card-checkbox.checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Task card checkbox link wrapper */
.task-card-checkbox-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.task-card-checkbox-link:hover .task-card-checkbox {
  border-color: #3b82f6;
  transform: scale(1.05);
}

.task-card-checkbox-link:hover .task-card-checkbox.checked {
  background-color: #16a34a;
  border-color: #16a34a;
}

.task-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.task-card:active {
  cursor: grabbing;
}

.task-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

/* Task card header left section - contains title and status badge */
.task-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

/* Task status badge - base styles */
.task-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Done tasks - muted styling */
.task-card-done {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
}

.task-card-done .task-title {
  color: #64748b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #94a3b8;
  opacity: 0.85;
}

.task-card-done .task-description {
  color: #64748b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #94a3b8;
  opacity: 0.8;
}

.task-card-done .task-meta {
  opacity: 0.7;
}

/* Skipped tasks - muted styling but still draggable */
.task-card-skipped {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
}

.task-status-badge-skipped {
  color: #64748b;
  background: #e2e8f0;
}

.task-card-skipped .task-title {
  color: #475569;
}

.task-card-skipped .task-description {
  color: #64748b;
}

.task-card-skipped .task-meta {
  opacity: 0.7;
}

/* Failed tasks - error styling */
.task-card-failed {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  cursor: default;
}

.task-card-failed:hover {
  cursor: default;
}

.task-status-badge-failed {
  color: #dc2626;
  background: #fecaca;
}

.task-card-failed .task-title {
  color: #991b1b;
}

.task-card-failed .task-description {
  color: #b91c1c;
}

.task-card-failed .task-meta {
  opacity: 0.8;
}

/* Task Card Placeholder - Full card size, height set by JavaScript */
.task-card-placeholder {
  background: rgba(59, 130, 246, 0.08);
  border: 2px dashed rgba(59, 130, 246, 0.5);
  border-radius: 8px;
  flex-shrink: 0;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.task-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.task-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.task-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-meta-row:not(:first-child) {
  margin-top: 0.5rem;
}

/* Kanban Column Header */
.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.kanban-column-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--kanban-header-text);
}

.kanban-column-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Kanban Column */
.kanban-column {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(26, 61, 77, 0.2) !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  min-height: 0 !important;
}

.kanban-column-content {
  flex: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding-right: 0.25rem !important;
}

.kanban-column-content::-webkit-scrollbar {
  width: 6px;
}

.kanban-column-content::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-column-content::-webkit-scrollbar-thumb {
  background: rgba(26, 61, 77, 0.3);
  border-radius: 3px;
}

.kanban-column-content::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 61, 77, 0.5);
}

/* Kanban Board */
.kanban-board {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  height: calc(100vh - 280px) !important;
  min-height: 500px !important;
  padding: 0 !important;
}

/* Responsive Design for Kanban */
@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr !important;
  }
}

/* Prospects Container for Tasks Page */
#tasksView.prospects-container {
  width: 100%;
  padding: 2rem;
  background: transparent;
}

#tasksView .prospects-inner {
  --company-name-width: 170px;
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 24px 24px;
  padding-right: 18px;
}

/* Tasks Header - Match reference exactly */
#tasksView .prospects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

#tasksView .prospects-title {
  font-family: 'Figtree', Helvetica;
  font-weight: 400;
  font-size: 28px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

#tasksView .navbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

#tasksView .select-wrapper {
  position: relative;
}

#tasksView .select-input {
  width: 180px;
  padding: 8px 36px 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%231f2937'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
}

#tasksView .select-input:focus {
  outline: 2px solid #03a266;
  outline-offset: 2px;
}

/* Button Primary - Match reference exactly */
#tasksView .button-primary {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Figtree', sans-serif;
  position: relative;
  background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
  color: #ffffff;
  font-weight: 700;
}

#tasksView .button-primary span {
  position: relative;
  z-index: 2;
}

#tasksView .button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(178deg, rgba(255, 255, 255, 0.5) 0%, rgba(7, 166, 93, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

#tasksView .button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
}

/* ==========================================================================
   NewUI Atom Styles - Missing CSS Definitions
   ========================================================================== */

/* Checkbox Atom Styles */
.checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--bs-primary);
  cursor: pointer;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label-text {
  font-size: 0.875rem;
  color: var(--bs-body-color);
  cursor: pointer;
}

/* DescriptionText Atom Styles */
.description-text {
  font-size: 0.875rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.description-text.product {
  color: #d1d5db;
  font-weight: 500;
}

/* StatusBadge Atom Styles */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.status-badge-success {
  background-color: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
}

.status-badge-warning {
  background-color: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
}

.status-badge-danger {
  background-color: var(--bs-danger-bg-subtle);
  color: var(--bs-danger-text-emphasis);
}

.status-badge-info {
  background-color: var(--bs-info-bg-subtle);
  color: var(--bs-info-text-emphasis);
}

.status-badge-secondary {
  background-color: var(--bs-secondary-bg-subtle);
  color: var(--bs-secondary-text-emphasis);
}

/* EventTypeBadge Atom Styles */
.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
  .prospects-container {
    padding: 1rem;
  }

  .prospects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .navbar-controls {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .select-wrapper {
    width: 100%;
  }

  .select-input {
    width: 100%;
  }

  .button-primary {
    width: 100%;
    text-align: center;
  }

  .kanban-column-content {
    padding: 0.5rem;
  }

  .task-card {
    padding: 0.75rem;
  }
}

/* ============================================
   ORGANISM-SPECIFIC STYLES
   Added for CSS consistency per DEC-030
   ============================================ */

/* User Avatar Styles (Navbar) */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Company Avatar Styles (Sidebar) */
.company-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.company-avatar-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Sidebar Layout Styles */
.sidebar-container {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.sidebar-company-header {
  padding: 1rem 1rem 0.5rem 1rem;
}

.sidebar-company-link {
  text-decoration: none;
  display: block;
}

.sidebar-company-badge {
  display: flex;
  align-items: center;
}

.sidebar-company-name {
  color: #ffffff;
  font-weight: 600;
}

.sidebar-navigation {
  flex-grow: 1;
  padding-top: 0.5rem;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
}

.sidebar-nav-icon {
  margin-right: 0.5rem;
}

.sidebar-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-submenu-list {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}

.sidebar-submenu-link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Navbar Layout Styles */
.navbar-container {
  width: 100%;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
}

.navbar-brand-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
}

.navbar-right-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-usage-indicators {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-user-menu {
  position: relative;
}

.navbar-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #ffffff;
}

.navbar-user-name {
  display: none;
}

@media (min-width: 768px) {
  .navbar-user-name {
    display: inline;
  }
}

/* Priority Targets Widget Styles */
.priority-targets-widget {
  margin-bottom: 1rem;
}

.priority-targets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.priority-targets-title {
  color: var(--bs-light);
  margin-bottom: 0;
}

.priority-targets-info {
  color: var(--bs-secondary);
  margin-left: 0.5rem;
}

.priority-targets-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .priority-targets-filters {
    grid-template-columns: 1fr;
  }
}

.priority-targets-filter-group {
  display: flex;
  flex-direction: column;
}

.priority-targets-empty {
  text-align: center;
  color: var(--bs-secondary);
  padding: 3rem 0;
}

.priority-targets-empty-icon {
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.priority-target-link {
  text-decoration: none;
  display: block;
}

.priority-target-card {
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.priority-target-card:hover {
  background-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.priority-target-body {
  padding: 0.75rem;
}

.priority-target-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .priority-target-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.priority-target-company {
  color: var(--bs-light);
  margin-bottom: 0.25rem;
}

.priority-target-action {
  color: var(--bs-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.priority-target-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.priority-target-score-group {
  display: flex;
  flex-direction: column;
}

.priority-target-score-label {
  color: var(--bs-secondary);
  font-size: 0.75rem;
}

.priority-target-signals {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.priority-target-signal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.priority-target-signal-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Prospect Card Layout Styles */
.prospect-card-outer {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0.75rem;
}

.prospect-card-link {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-left: 3.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0;
  text-decoration: none;
}

.prospect-card-link.active {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Modal Layout Styles */
.modal-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding-top: 0.25rem;
}

.modal-container {
  display: flex;
}

.modal-header-compact {
  padding-top: 0;
}

.modal-footer-centered {
  display: flex;
  justify-content: center;
  padding-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ========================================== */
/* KVK Lookup Styles */
/* ========================================== */
/* KvK Lookup Status Styles */
.lookup-status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lookup-status-loading {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.lookup-status-success {
  background-color: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.lookup-status-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Loading indicator animation */
.lookup-status-loading::before {
  content: "⏳ ";
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================== */
/* Danger Zone Styles */
/* ========================================== */
/* ==========================================
   Danger Zone Component Styles
   ========================================== */

/* Danger Zone Container */
.danger-zone {
  margin-top: 1.5rem;
  border: 2px solid rgba(220, 53, 69, 0.3);
  border-left: 4px solid #dc3545;
  border-radius: 10px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.98);
}

/* Header */
.danger-zone-header {
  margin-bottom: 1.5rem;
}

.danger-zone-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.danger-zone-icon {
  font-size: 1.75rem;
  color: #dc3545;
  flex-shrink: 0;
}

.danger-zone-description {
  margin-bottom: 0;
}

/* Warning Box */
.danger-warning {
  background: rgba(255, 193, 7, 0.08);
  border-radius: 10px;
  border-left: 3px solid #ffc107;
  padding: 0.75rem;
  margin: 1.5rem 0;
}

.danger-warning-header {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.danger-warning-icon {
  color: #ffc107;
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.danger-warning-title {
  color: #1a2e3a;
  font-size: 14px;
  flex: 1;
}

.danger-warning-list {
  margin: 0;
  padding-left: 28px;
  color: #4a5568;
  line-height: 1.6;
  font-size: 14px;
}

.danger-warning-item {
  margin-bottom: 4px;
}

/* Action Row */
.danger-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  margin-top: 1.5rem;
  background: rgba(220, 53, 69, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(220, 53, 69, 0.15);
  gap: 1.25rem;
}

.danger-action-info {
  flex: 1;
}

.danger-action-title {
  color: #1a2e3a;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.danger-action-description {
  color: #6b7280;
  font-size: 13px;
}

/* Delete Button */
.danger-delete-btn {
  background: linear-gradient(135deg, #dc3545 0%, #a02834 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}

.danger-delete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.35);
}

.danger-btn-icon {
  font-size: 1rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.modal-overlay.show {
  display: flex;
}

/* Modal Container - removed, using standard .modal-container */

/* Modal Header */
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(52, 111, 129, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-icon {
  font-size: 1.5rem;
  color: #dc3545;
  flex-shrink: 0;
}

/* Modal header title area - icon and title on same line */
.modal-header-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ffffff;
}

/* Modal Content */
.modal-content {
  padding: 0 2rem 2rem 2rem;
  background: #ffffff;
  color: #1a2e3a;
}

.modal-warning-text {
  color: #1a2e3a;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal-warning-list {
  color: #4a5568;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.modal-warning-item {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.modal-confirm-box {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-left: 3px solid #dc3545;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.75rem;
}

.modal-confirm-instruction {
  color: #c82333;
  font-size: 14px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-company-name {
  color: #1a2e3a;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* Modal Input */
.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  color: #1a2e3a;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.modal-input::placeholder {
  color: #6b7280;
}

.modal-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.4);
  background: #ffffff;
}

.modal-input.is-valid {
  border-color: #28a745 !important;
  background: rgba(40, 167, 69, 0.1) !important;
}

.modal-input.is-invalid {
  border-color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.1) !important;
}

/* Modal Footer - removed, using standard .modal-footer */

/* Cancel Button */
.modal-cancel-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Confirm Button */
.modal-confirm-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-confirm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.modal-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.modal-btn-icon {
  font-size: 1rem;
}

/* ========================================== */
/* Custom Component Styles */
/* ========================================== */
/* ====================================
   CUSTOM STYLES - ProspectsRadar Additions
   ====================================

   This file contains custom styles added on top of the reference design.
   Keep this separate from styles.css (reference styles) for easier maintenance.

   Note: Scoring Tab styles are in styles.css (reference design)

   Sections:
   - Buyer Readiness Tile
   - Recommended Actions Tile
   - Company Info Tile
   - Company Data Tile
   - Team Tab (Stakeholder Rows)
   - Activity Tab (Timeline)

   ====================================
   FUTURE CLEANUP OPPORTUNITIES (Phase 7)
   ====================================

   This file contains ~6,925 lines of CSS. Future optimization could include:

   1. **Flexbox Patterns** - Many `display: flex`, `align-items`, `justify-content`
      patterns could use Bootstrap utilities (d-flex, align-items-center, etc.)
      instead of custom CSS.

   2. **Spacing Patterns** - Many `margin` and `padding` declarations could use
      Bootstrap spacing utilities (m-*, p-*, mx-*, px-*, etc.) instead of custom
      pixel values.

   3. **Typography** - Font sizes, weights, and colors could potentially use
      Bootstrap typography utilities (.fs-*, .fw-*, .text-*) where appropriate.

   4. **Truly Custom Styles** - Keep these as they are essential to the design:
      - Glassmorphism effects (backdrop-filter, blur, transparency)
      - Custom animations and transitions
      - Brand-specific colors and gradients
      - Unique component behaviors (buyer readiness, timelines, etc.)

   5. **Gradual Approach** - This cleanup is LOW PRIORITY and should be done
      incrementally, one section at a time, with visual regression testing
      after each change to ensure no styling breakage.

   Current State: Documented for future work (Phase 7 of CSS consolidation plan)
   Last Updated: 2026-01-08

   ==================================== */

/* ====================================
   GLOBAL UTILITY CLASSES
   ==================================== */

/* Hidden utility class - used by Stimulus controllers to toggle visibility */
.hidden {
  display: none !important;
}

/* ====================================
   BUYER READINESS TILE
   ==================================== */
/* .buyer-readiness-tile - Using reference styles from styles.css */
/* .buyer-readiness-header - Using reference styles from styles.css */

.buyer-readiness-title-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buyer-readiness-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2e3a;
    margin: 0;
}

.buyer-readiness-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hot-lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #11aa64 0%, #0d8a51 100%);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(52, 111, 129, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #346f82;
}

.buyer-readiness-score-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.buyer-readiness-score {
    font-size: 56px;
    font-weight: 800;
    color: #11aa64;
    line-height: 1;
}

.buyer-readiness-score-max {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 4px;
}

.buyer-readiness-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.buyer-readiness-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.readiness-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.readiness-info-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readiness-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a2e3a;
}

.readiness-info-value.highlight {
    color: #11aa64;
}

.buyer-readiness-chart {
    display: flex;
    flex-direction: column;
}

/* Chart container styles moved to styles.css */

/* Chart styles - Using reference styles from styles.css */
/* .chart-legend, .legend-item, .legend-dot - from styles.css */

.chart-svg {
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .buyer-readiness-content {
        grid-template-columns: 1fr;
    }

    .buyer-readiness-header {
        flex-direction: column;
        gap: 16px;
    }

    .buyer-readiness-score-section {
        align-items: flex-start;
    }
}

/* ====================================
   D3.js BUYING READINESS CHART
   ==================================== */
.buyer-readiness-chart-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-svg-container {
    width: 100%;
    height: 180px;
    min-height: 180px;
}

.chart-svg-container svg {
    width: 100%;
    height: 100%;
}

/* .readiness-chart-svg - Using reference styles from styles.css */

.empty-chart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.empty-chart-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-chart-state p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ====================================
   RECOMMENDED ACTIONS TILE
   ==================================== */
.recommended-actions-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.actions-tile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.actions-tile-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3d8fa8 0%, #2c6f82 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.actions-tile-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.actions-tile-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2e3a;
    margin: 0;
}

.actions-sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.action-sub-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.action-sub-tab:hover {
    color: #346f82;
}

.action-sub-tab.active {
    color: #346f82;
}

.action-sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #346f82;
}

.action-sub-tab-content {
    display: none;
}

.action-sub-tab-content.active {
    display: block;
}

.action-message-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.action-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.action-message-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a2e3a;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #ffffff;
    border-color: #346f82;
    color: #346f82;
}

.action-message-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.create-task-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #346f82 0%, #2c6070 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.create-task-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 111, 130, 0.3);
}

/* ====================================
   BEDRIJFSINFORMATIE TILE (Company Info)
   ==================================== */
.company-info-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.technology-word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* .word-cloud-item - Using reference styles from styles.css */

.word-cloud-item.large {
    font-size: 15px;
    padding: 8px 18px;
}

.word-cloud-item.small {
    font-size: 11px;
    padding: 4px 10px;
    opacity: 0.8;
}

/* .partnerships-section - Using reference styles from styles.css */
/* .partnerships-title - Using reference styles from styles.css */

.partnerships-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
}

/* ====================================
   BEDRIJFSGEGEVENS TILE (Company Data)
   ==================================== */
.company-data-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-data-grid {
    display: grid;
    gap: 0;
}

.company-data-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.company-data-row:last-child {
    border-bottom: none;
}

.company-data-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.company-data-value {
    font-size: 13px;
    color: #1a2e3a;
}

.company-data-value a {
    color: #346f82;
    text-decoration: none;
}

.company-data-value a:hover {
    text-decoration: underline;
}

/* ====================================
   TEAM TAB - STAKEHOLDER ROWS
   ==================================== */
.stakeholder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* .stakeholder-row - Using reference styles from styles.css */
/* .stakeholder-row-header - Using reference styles from styles.css */
/* .stakeholder-avatar - Using reference styles from styles.css */

.stakeholder-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* .stakeholder-name - Using reference styles from styles.css */

.stakeholder-role {
    font-size: 13px;
    color: #6b7280;
}

.stakeholder-badges {
    display: flex;
    gap: 8px;
}

/* .decision-maker-badge - Using reference styles from styles.css */
/* .influence-badge - Using reference styles from styles.css */

.stakeholder-contact {
    display: flex;
    gap: 12px;
}

.contact-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-icon-btn:hover {
    background: #e5e7eb;
    color: #346f82;
}

/* .stakeholder-expand-btn - Using reference styles from styles.css */
/* .stakeholder-expanded-content - Using reference styles from styles.css */

.stakeholder-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 20px;
}

.stakeholder-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stakeholder-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2e3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stakeholder-section-content {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.signal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.signal-icon {
    width: 16px;
    height: 16px;
    color: #11aa64;
    flex-shrink: 0;
    margin-top: 2px;
}

.timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-mini-item {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.timeline-mini-date {
    color: #6b7280;
    white-space: nowrap;
}

.timeline-mini-event {
    color: #4b5563;
}

/* .sources-list - Using reference styles from styles.css */
/* .source-link - Using reference styles from styles.css */

@media (max-width: 1024px) {
    .stakeholder-row-header {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .stakeholder-badges {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .stakeholder-contact {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-start;
    }

    .stakeholder-expand-btn {
        position: absolute;
        right: 12px;
        top: 12px;
    }

    .stakeholder-row-header {
        position: relative;
    }

    .stakeholder-sections {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   ACTIVITY TAB - TIMELINE
   ==================================== */
/* .activity-timeline - Using reference styles from styles.css */

.activity-date-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-date-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-date-badge {
    padding: 6px 14px;
    background: rgba(52, 111, 130, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #346f82;
}

.activity-date-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(52, 111, 130, 0.3) 0%, transparent 100%);
}

.activity-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

.activity-event-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #346f82;
}

.activity-event-card.high-significance {
    border-left-color: #11aa64;
}

.activity-event-card.medium-significance {
    border-left-color: #f59e0b;
}

.activity-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.activity-event-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-event-type {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-event-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2e3a;
    margin: 0;
}

.activity-event-significance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 8px;
}

.significance-bar {
    display: flex;
    gap: 3px;
}

.significance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.significance-dot.active {
    background: #11aa64;
}

.significance-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.activity-event-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 16px 0;
}

.activity-event-metadata {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

/* .metadata-item - Using reference styles from styles.css */
/* .metadata-label - Using reference styles from styles.css */
/* .metadata-value - Using reference styles from styles.css */

.activity-event-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .activity-event-metadata {
        grid-template-columns: 1fr;
    }

    .activity-event-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ====================================
   SCORES TAB - CONFIDENCE TOOLTIPS
   ==================================== */

.tooltip-container:hover .confidence-tooltip {
    display: block !important;
}

.confidence-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #111827;
}

/* ====================================
   NAVIGATION SUBMENU
   ==================================== */

.nav-submenu {
    padding-left: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 32px; /* Left padding aligns with parent text (icon 20px + gap 12px) */
    margin-bottom: 2px;
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.2s;
}

.nav-submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.nav-submenu-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 500;
}

.nav-submenu-item.locked {
    opacity: 0.6;
}

.nav-submenu-item.locked:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

/* ====================================
   ACCOUNT SELECTOR - COMPANY NAME
   ==================================== */

.account-selector .nav-label,
.nav-item .nav-item-content .nav-label {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* ====================================
   PROSPECTS LIST - COMPANY NAME
   ==================================== */

.prospect-header .company-name {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    cursor: pointer;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-right: 30px;
    min-width: 160px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====================================
   SCORING CONFIGURATIONS PAGE
   ==================================== */

.configurations-grid .glass-card {
    transition: all 0.3s ease;
}

.configurations-grid .glass-card:has(a:hover) {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.configuration-card a[aria-label] {
    text-decoration: none;
}

.configuration-card .action-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 111, 130, 0.4);
}

.empty-state {
    animation: fadeIn 0.5s ease-in;
}

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

/* ====================================
   INTEGRATIONS PAGE
   ==================================== */

.integrations-grid .glass-card {
    transition: all 0.3s ease;
}

.integrations-grid .glass-card:has(a:hover) {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.integration-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.integration-card svg {
    max-width: 100%;
    max-height: 100%;
}

/* ====================================
   SSO PAGE
   ==================================== */

.sso-page .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.sso-page .button-primary:hover,
.sso-page button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 111, 130, 0.4);
    filter: brightness(1.1);
}

.sso-page a[style*="background: rgba(59, 130, 246"]:hover,
.sso-page a[style*="background: rgba(139, 92, 246"]:hover,
.sso-page a[style*="background: rgba(34, 197, 94"]:hover,
.sso-page a[style*="background: rgba(239, 68, 68"]:hover,
.sso-page a[style*="background: rgba(168, 85, 247"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

/* ====================================
   EMAIL SETTINGS PAGE
   ==================================== */

.glass-button:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px);
}

.text-link-danger:hover {
    color: #dc2626 !important;
}

.stat-card-hover:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

/* ====================================
   ACCOUNT SETTINGS PAGE
   ==================================== */

.glass-input:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(52, 111, 130, 0.5) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 111, 130, 0.1);
}

.glass-checkbox {
    cursor: pointer;
    transition: all 0.2s;
}

.glass-checkbox:hover {
    transform: scale(1.05);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

/* ====================================
   INDUSTRY SELECT COMPONENT
   ==================================== */
.industry-select-container {
  position: relative;
}

.industry-select-container .form-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.industry-select-container .form-control,
.industry-select-container .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.industry-select-container .form-control:focus,
.industry-select-container .form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #11aa64;
  box-shadow: 0 0 0 0.2rem rgba(17, 170, 100, 0.25);
  color: #ffffff;
}

.industry-select-container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.industry-select-container .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  width: 100%;
  background-color: rgba(14, 30, 39, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
}

.industry-select-container .dropdown-menu.show {
  display: block;
}

.industry-select-container .dropdown-header {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem 0.25rem;
}

.industry-select-container .dropdown-item {
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 0.125rem 0.5rem;
  transition: background-color 0.15s ease;
}

.industry-select-container .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.industry-select-container .dropdown-item.active {
  background-color: rgba(17, 170, 100, 0.2);
  color: #ffffff;
}

.industry-select-container .dropdown-item .fw-medium {
  color: #ffffff;
  font-size: 0.9rem;
}

.industry-select-container .dropdown-item .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.75rem;
}

.industry-select-container .badge {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.industry-select-container .btn-close-white {
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.industry-select-container .btn-close-white:hover {
  opacity: 1;
}

.industry-select-container .form-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Max selection warning */
.industry-select-container .form-control.border-warning {
  border-color: #ffc107 !important;
  animation: pulse-warning 0.5s ease;
}

@keyframes pulse-warning {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
  50% {
    box-shadow: 0 0 0 0.5rem rgba(255, 193, 7, 0.3);
  }
}

/* Cursor styles */
.industry-select-container .cursor-pointer {
  cursor: pointer;
}

/* Dark mode select options */
.industry-select-container select option {
  background-color: #0e1e27;
  color: #ffffff;
}

.industry-select-container select option:checked,
.industry-select-container select option[selected] {
  background-color: #cfe2ff !important;
  color: #052c65 !important;
}


/* ====================================
   MODAL WIZARD COMPONENT
   ==================================== */
/* All modal classes use reference styles from styles.css */

/* Form Help Text (Custom - Not in reference) */
.form-help {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(156, 163, 175, 0.8);
}

/* ====================================
   REGION SELECT COMPONENT
   ==================================== */
.region-select-container {
  position: relative;
}

.region-select-container .form-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.region-select-container .form-control,
.region-select-container .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.region-select-container .form-control:focus,
.region-select-container .form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #11aa64;
  box-shadow: 0 0 0 0.2rem rgba(17, 170, 100, 0.25);
  color: #ffffff;
}

.region-select-container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Region select input text and placeholder color */
.region-select-container input[data-region-select-target="searchInput"] {
  color: #ffffff !important;
}

.region-select-container input::placeholder {
  color: #ffffff !important;
  opacity: 0.8;
}

.region-select-container .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  width: 100%;
  background-color: rgba(14, 30, 39, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
}

.region-select-container .dropdown-menu.show {
  display: block;
}

.region-select-container .dropdown-item {
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 0.125rem 0.5rem;
  transition: background-color 0.15s ease;
}

.region-select-container .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.region-select-container .dropdown-item.active {
  background-color: rgba(17, 170, 100, 0.2);
  color: #ffffff;
}

.region-select-container .dropdown-item .fw-medium {
  color: #ffffff;
  font-size: 0.9rem;
}

.region-select-container .dropdown-item .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.75rem;
}

.region-select-container .form-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Region Badge Styles */
.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.region-badge-world {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.region-badge-continental {
  background: linear-gradient(135deg, rgba(17, 170, 100, 0.2) 0%, rgba(17, 170, 100, 0.1) 100%);
  border: 1px solid rgba(17, 170, 100, 0.3);
  color: #11aa64;
}

.region-badge-subregional {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.region-badge-country {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.region-badge-default {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.region-badge-text {
  line-height: 1;
}

.region-badge-code {
  opacity: 0.8;
  font-size: 0.75rem;
}

.region-badge-remove {
  background: none;
  border: none;
  color: currentColor;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.region-badge-remove:hover {
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

/* Max selection warning */
.region-select-container .form-control.is-invalid {
  border-color: #ef4444 !important;
  animation: pulse-error 0.5s ease;
}

@keyframes pulse-error {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    box-shadow: 0 0 0 0.5rem rgba(239, 68, 68, 0.3);
  }
}

/* Form validation error messages */
.form-error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: -4px;
  margin-bottom: 4px;
  min-height: 1.25rem;
  visibility: hidden;
}

.form-error-message.has-error {
  visibility: visible;
}

.form-error-message.has-loading {
  visibility: visible;
  color: #3b82f6; /* Blue for loading */
}

.form-error-message.has-success,
.form-error-message.form-error-message--success {
  visibility: visible;
  color: #22c55e; /* Green for success */
}

/* Global error notifications */
.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.error-notification-hiding {
  animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.error-notification-content {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-notification-icon {
  flex-shrink: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.error-notification-body {
  flex: 1;
  color: #ffffff;
}

.error-notification-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.error-notification-message {
  font-size: 0.875rem;
  opacity: 0.95;
  margin-bottom: 4px;
}

.error-notification-code {
  font-size: 0.75rem;
  opacity: 0.7;
  font-family: monospace;
}

.error-notification-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.error-notification-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cursor styles */
.region-select-container .cursor-pointer {
  cursor: pointer;
}

/* Dark mode select options */
.region-select-container select option {
  background-color: #0e1e27;
  color: #ffffff;
}

.region-select-container select option:checked,
.region-select-container select option[selected] {
  background-color: #cfe2ff !important;
  color: #052c65 !important;
}

/* ====================================
   INDUSTRY SELECT COMPONENT
   ==================================== */

/* Label spacing - match form-group gap of 8px */
.industry-select-container .form-label {
  margin-bottom: 8px !important;
}

/* Input container spacing */
.industry-select-container .position-relative {
  margin-top: 0 !important;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Placeholder text styling for industry select input */
.industry-select-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.industry-select-container input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.industry-select-container input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.industry-select-container input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* Industry badges container - wrapping support */
.industry-badges-container {
  display: block;
  margin-top: 8px;
  margin-bottom: 8px;
  width: 100%;
}

/* Individual industry badge styling */
.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 30px;
  background: rgb(52, 111, 129);
  color: #ffffff;
  white-space: nowrap;
  max-width: 300px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 500;
}

.industry-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.industry-badge-remove {
  transition: all 0.2s ease;
}

.industry-badge-remove:hover {
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1);
}

/* ====================================
   INDUSTRY CHECKBOX SELECT COMPONENT
   ==================================== */

/* Container */
.industry-checkbox-select {
  position: relative;
}

/* Checkbox list container */
.industry-checkbox-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow-y: auto;
}

/* Custom scrollbar */
.industry-checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.industry-checkbox-list::-webkit-scrollbar-track {
  background: transparent;
}

.industry-checkbox-list::-webkit-scrollbar-thumb {
  background: rgba(52, 111, 129, 0.3);
  border-radius: 3px;
}

.industry-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 111, 129, 0.5);
}

/* Selected section - highlighted at top */
.industry-selected-section {
  background: linear-gradient(135deg, rgba(52, 111, 129, 0.08) 0%, rgba(52, 111, 129, 0.04) 100%);
  border-bottom: 2px solid rgba(52, 111, 129, 0.2);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

/* Available section */
.industry-available-section {
  padding: 4px 0;
}

/* Section headers (Selected / Available) */
.industry-section-header {
  padding: 10px 12px 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(52, 111, 129);
  display: flex;
  align-items: center;
  gap: 6px;
}

.industry-count {
  font-weight: 500;
  color: rgba(52, 111, 129, 0.7);
}

/* Section group (A - Agriculture, etc.) */
.industry-section-group {
  margin-top: 4px;
}

.industry-group-header {
  padding: 8px 12px 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

/* Division group */
.industry-division-group {
  margin-left: 8px;
}

.industry-division-header {
  padding: 6px 12px 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

/* Countries within division groups (indent under subregion) */
.industry-division-group > .industry-checkbox-item:not(.is-region):not(.is-continent) {
  margin-left: 16px;
}

/* Individual checkbox item */
.industry-checkbox-item {
  padding: 4px 12px;
  margin: 0 4px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

.industry-checkbox-item:hover {
  background-color: rgba(52, 111, 129, 0.06);
}

.industry-checkbox-item.selected {
  background-color: rgba(52, 111, 129, 0.1);
}

/* Checkbox label (wraps entire row) */
.industry-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  padding: 6px 0;
}

/* Checkbox input styling */
.industry-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-checkbox-input:hover {
  border-color: rgb(52, 111, 129);
}

.industry-checkbox-input:checked {
  background: rgb(52, 111, 129);
  border-color: rgb(52, 111, 129);
}

.industry-checkbox-input:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Radio button variant (single selection) */
.industry-checkbox-input[type="radio"] {
  border-radius: 50%;
}

.industry-checkbox-input[type="radio"]:checked::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  transform: none;
  margin: 0;
}

/* Industry name text */
.industry-checkbox-text {
  flex: 1;
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.4;
}

/* Industry code */
.industry-checkbox-code {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: monospace;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 4px;
}

/* Region type badge (for subregions in RegionSelect) */
.region-type-badge {
  font-size: 0.65rem;
  color: #ffffff;
  padding: 2px 8px;
  background: rgb(52, 111, 129);
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* Region item styling (make subregions slightly more prominent) */
.industry-checkbox-item.is-region {
  background-color: rgba(52, 111, 129, 0.04);
  margin-top: 4px;
  margin-bottom: 2px;
}

.industry-checkbox-item.is-region:hover {
  background-color: rgba(52, 111, 129, 0.1);
}

/* Continental region item styling (more prominent than subregions) */
.industry-checkbox-item.is-continent {
  background-color: rgba(52, 111, 129, 0.08);
  margin-top: 8px;
  margin-bottom: 4px;
  border-left: 3px solid rgb(52, 111, 129);
  padding-left: 9px;
}

.industry-checkbox-item.is-continent:hover {
  background-color: rgba(52, 111, 129, 0.15);
}

/* Continent badge variant (darker/more prominent) */
.region-type-badge.continent {
  background: rgb(31, 78, 94);
  font-weight: 600;
}

/* Hidden items when filtering */
.industry-checkbox-item[style*="display: none"],
.industry-division-group[style*="display: none"],
.industry-section-group[style*="display: none"] {
  display: none !important;
}

/* ====================================
   MONITORS LIST - NEW UI
   ==================================== */

/* Monitors Container - Mirror prospects structure */
.monitors-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.monitors-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.monitors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  flex-shrink: 0;
}

.monitors-title {
  font-family: 'Figtree', Helvetica;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.monitors-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.monitor-row {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.monitor-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.monitor-row.expanded {
  background: rgba(255, 255, 255, 0.1);
}

.monitor-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto 2fr auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
}

/* Scrollbar Styles for Monitors */
.monitors-list::-webkit-scrollbar {
  width: 8px;
}

.monitors-list::-webkit-scrollbar-track {
  background: rgba(26, 61, 77, 0.3);
  border-radius: 4px;
}

.monitors-list::-webkit-scrollbar-thumb {
  background: rgba(3, 162, 102, 0.3);
  border-radius: 4px;
}

.monitors-list::-webkit-scrollbar-thumb:hover {
  background: rgba(3, 162, 102, 0.5);
}

/* Responsive Design for Monitors */
@media (max-width: 768px) {
  .monitors-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .monitors-container {
    padding: 16px;
  }

  .monitors-inner {
    padding: 0;
  }

  .monitor-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .monitor-row {
    padding: 12px;
  }

  .monitor-header > *:nth-child(n+4):nth-child(-n+7) {
    display: none;
  }

  .monitor-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====================================
   PAGINATION COMPONENT
   ==================================== */

/* Pagination container - matches glassmorphism design */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

/* Pagination info section (left side) */
.pagination-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.pagination-info-highlight {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Pagination controls section (right side) */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pagination button base styles */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Active page button */
.pagination-btn.active {
  background: rgb(52 111 129 / 56%);
  border-color: rgb(52 111 129);
  color: #ffffff;
  font-weight: 600;
}

.pagination-btn.active:hover {
  transform: none;
}

/* Navigation buttons (Previous/Next) */
.pagination-btn.nav-btn {
  gap: 6px;
  padding: 0 14px;
}

/* Disabled state */
.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ellipsis */
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
}

/* Icon within pagination buttons */
.pagination-icon {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pagination-btn:hover .pagination-icon {
  opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .pagination-info {
    font-size: 13px;
  }

  .pagination-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Hide some page numbers on mobile */
  .pagination-btn:not(.nav-btn):not(.active):nth-child(n+6) {
    display: none;
  }
}

/* ====================================
   SIDEBAR SUBMENU ALIGNMENT
   ==================================== */

/* Align submenu items with parent item text (after icon) */
.submenu-items {
  padding-left: 32px !important; /* Icon width (~20px) + gap (~12px) */
  margin-left: 0 !important;
}

/* Ensure submenu items have consistent spacing */
.submenu-items li {
  padding-left: 0;
}

.submenu-items .nav-link {
  padding-left: 0;
  padding-right: 0;
}

/* ====================================
   SCORE VARIANT CLASSES (Dutch naming)
   Maps to BaseComponent::SCORE_VARIANTS
   ==================================== */

/* Base score number badge */
.score-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  min-width: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Score badge variants - English names (score-nr class with variant) */
.score-nr-excellent {
  background: linear-gradient(135deg, #1ebe74 0%, #0d9a5a 100%);
  color: #ffffff;
}

.score-nr-good {
  background: linear-gradient(135deg, #1aafc9 0%, #0d8a9b 100%);
  color: #ffffff;
}

.score-nr-fair {
  background: rgba(120, 151, 157, 0.74);
  color: #ffffff;
}

.score-nr-poor {
  background: rgba(207, 127, 33, 0.74);
  color: #ffffff;
}

.score-nr-low {
  background: rgba(208, 41, 30, 0.74);
  color: #ffffff;
}

.score-nr-goed {
  background: linear-gradient(135deg, #1aafc9 0%, #0d8a9b 100%);
  color: #ffffff;
}

.score-nr-redelijk {
  background: rgba(120, 151, 157, 0.74);
  color: #ffffff;
}

.score-nr-zwak {
  background: rgba(207, 127, 33, 0.74);
  color: #ffffff;
}

.score-nr-laag {
  background: rgba(208, 41, 30, 0.74);
  color: #ffffff;
}

/* Stakeholder count badge */
.qual-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 16px;
  background: #3d8fa8;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  min-width: 110px;
}

/* ====================================
   CATEGORY BADGE CLASSES
   For CategoryBadge atom
   ==================================== */

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.category-badge i {
  margin-right: 6px;
}

.category-badge-built_in {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #9333ea;
}

.category-badge-custom {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #2563eb;
}

.category-badge-level,
.category-badge-count {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.3);
  color: #4b5563;
}

/* ====================================
   STATUS BADGE CLASSES
   For StatusBadge atom
   ==================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge i {
  margin-right: 6px;
}

.status-badge-active,
.status-badge-enabled {
  background: linear-gradient(135deg, #11aa64 0%, #0d8a51 100%);
  color: #ffffff;
}

.status-badge-draft,
.status-badge-disabled {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.status-badge-archived,
.status-badge-expired {
  background: rgba(207, 127, 33, 0.74);
  color: #ffffff;
}

.status-badge-inactive {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.status-badge-revoked {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

.status-badge-admin {
  background: linear-gradient(135deg, #346f82 0%, #2c6070 100%);
  color: #ffffff;
}

.status-badge-member {
  background: linear-gradient(135deg, #1aafc9 0%, #0d8a9b 100%);
  color: #ffffff;
}

.status-badge-viewer {
  background: rgba(120, 151, 157, 0.74);
  color: #ffffff;
}

/* ====================================
   CONTEXT-AWARE FORM STYLES
   For dark glassmorphism vs white card backgrounds
   ==================================== */

/* Dark context (glassmorphism panels) - restore original dark theme */
.dark-context .form-label,
.glass-panel .form-label,
.sidebar-left .form-label,
.tile-light .form-label {
  color: #d1d5db;
}

.dark-context .form-input,
.dark-context .form-textarea,
.dark-context .form-select,
.glass-panel .form-input,
.glass-panel .form-textarea,
.glass-panel .form-select,
.sidebar-left .form-input,
.sidebar-left .form-textarea,
.sidebar-left .form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dark-context .form-input:focus,
.dark-context .form-textarea:focus,
.dark-context .form-select:focus,
.glass-panel .form-input:focus,
.glass-panel .form-textarea:focus,
.glass-panel .form-select:focus {
  border-color: rgb(52, 111, 129);
  background: rgba(255, 255, 255, 0.05);
}

.dark-context .form-input::placeholder,
.dark-context .form-textarea::placeholder,
.glass-panel .form-input::placeholder,
.glass-panel .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Light context (white cards) - keep the new light theme */
.light-context .form-label,
.white-tile .form-label,
.overview-tile .form-label {
  color: #374151;
}

.light-context .form-input,
.light-context .form-textarea,
.light-context .form-select,
.white-tile .form-input,
.white-tile .form-textarea,
.white-tile .form-select,
.overview-tile .form-input,
.overview-tile .form-textarea,
.overview-tile .form-select {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1f2937;
}

.light-context .form-input:focus,
.light-context .form-textarea:focus,
.light-context .form-select:focus,
.white-tile .form-input:focus,
.white-tile .form-textarea:focus,
.white-tile .form-select:focus {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

/* ====================================
   UTILITY CLASSES FOR INLINE STYLE REPLACEMENT
   Common patterns extracted from views
   ==================================== */

/* Visibility utilities */
.visibility-hidden {
  visibility: hidden;
}

/* Text colors */
.text-white-80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white-60 {
  color: rgba(255, 255, 255, 0.6);
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-gray-900 {
  color: #111827;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-teal-link {
  color: #3d8fa8;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-800 {
  color: #1e40af;
}

.text-purple-500 {
  color: #8b5cf6;
}

/* Background utilities */
.bg-gray-50 {
  background: #f9fafb;
}

.bg-gray-100 {
  background: #f3f4f6;
}

.bg-blue-50 {
  background: #eff6ff;
}

.bg-blue-100 {
  background: #dbeafe;
}

.bg-blue-500-20 {
  background: rgba(59, 130, 246, 0.2);
}

.bg-green-500-20 {
  background: rgba(34, 197, 94, 0.2);
}

/* Border utilities */
.border-gray-200 {
  border: 1px solid #e5e7eb;
}

.border-white-10 {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-top-gray-200 {
  border-top: 1px solid #e5e7eb;
}

.border-top-white-10 {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-bottom-gray-200 {
  border-bottom: 1px solid #e5e7eb;
}

/* Spacing utilities (extending Bootstrap) */
.mt-12 {
  margin-top: 12px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-6 {
  margin-bottom: 6px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.ml-4 {
  margin-left: 4px;
}

.ml-8 {
  margin-left: 8px;
}

.mr-4 {
  margin-right: 4px;
}

.mr-6 {
  margin-right: 6px;
}

.mr-8 {
  margin-right: 8px;
}

.pt-12 {
  padding-top: 12px;
}

.pb-8 {
  padding-bottom: 8px;
}

.gap-6 {
  gap: 6px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

/* Size utilities */
.w-20 {
  width: 20px;
}

.h-20 {
  height: 20px;
}

.w-28 {
  width: 28px;
}

.h-28 {
  height: 28px;
}

.w-32 {
  width: 32px;
}

.h-32 {
  height: 32px;
}

.w-48 {
  width: 48px;
}

.h-48 {
  height: 48px;
}

/* Font size utilities */
.fs-11 {
  font-size: 11px;
}

.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

.fs-15 {
  font-size: 15px;
}

.fs-16 {
  font-size: 16px;
}

.fs-20 {
  font-size: 20px;
}

.fs-24 {
  font-size: 24px;
}

.fs-32 {
  font-size: 32px;
}

.fs-48 {
  font-size: 48px;
}

/* Common component patterns */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.icon-circle-sm {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.icon-circle-md {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.icon-circle-lg {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.icon-circle-blue {
  background: #dbeafe;
  color: #1e40af;
}

.icon-circle-green {
  background: rgba(17, 170, 100, 0.2);
  color: #11aa64;
}

.icon-circle-teal {
  background: rgba(52, 111, 130, 0.2);
  color: #5eb3d1;
}

/* Progress bar base */
.progress-bar-track {
  width: 100%;
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 10px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.progress-bar-green {
  background: #11aa64;
}

.progress-bar-blue {
  background: #1aafc9;
}

.progress-bar-orange {
  background: rgba(207, 127, 33, 0.74);
}

.progress-bar-red {
  background: rgba(208, 41, 30, 0.74);
}

.progress-bar-yellow {
  background: #f59e0b;
}

.progress-bar-purple {
  background: #8b5cf6;
}

/* Card patterns */
.card-detail-section {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.card-detail-row {
  margin-bottom: 6px;
}

.card-detail-link {
  color: #3d8fa8;
  text-decoration: none;
}

.card-detail-link:hover {
  color: #4db8e8;
  text-decoration: underline;
}

/* Configuration card patterns */
.config-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.config-card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 1;
  cursor: pointer;
}

.config-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
  position: relative;
  z-index: 0;
}

.config-card-title-block {
  flex: 1;
}

.config-card-title {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.config-card-description {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.config-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.config-card-badges-wrapper {
  position: relative;
  z-index: 0;
}

.config-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.config-card-actions-wrapper {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  position: relative;
  z-index: 2;
}

/* Section header patterns */
.section-header {
  margin-bottom: 24px;
}

.section-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header-title {
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-header-description {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

/* Empty state white background variant */
.empty-state-white {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #d1d5db;
}

.empty-state-message {
  color: #6b7280;
  font-size: 14px;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Empty state pattern */
.empty-state-centered {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 16px;
}

/* Glass card with backdrop */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px;
}

/* Tile light - lighter glassmorphism variant for cards */
.tile-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

.tile-light h1,
.tile-light h2,
.tile-light h3,
.tile-light h4,
.tile-light h5,
.tile-light h6 {
  color: #111827;
}

.tile-light p,
.tile-light span,
.tile-light label {
  color: #374151;
}

.tile-light a {
  color: #346f82;
}

.tile-light .text-muted,
.tile-light .text-secondary {
  color: #6b7280;
}

.tile-light .text-gray-900 {
  color: #111827 !important;
}

.tile-light .text-primary-dark {
  color: #282828 !important;
}

.tile-light .mb-0 {
  margin-bottom: 0 !important;
}

.tile-light .mb-2 {
  margin-bottom: 0.5rem !important;
}

/* List group for card content */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: inherit;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border: none;
}

.list-group-item:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.list-group-item.active {
  background-color: rgba(52, 111, 130, 0.1);
}

/* Stat card hover effect */
.stat-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Tooltip container */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-container .tooltip-content {
  display: none;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 8px;
  width: 256px;
  padding: 12px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.tooltip-container:hover .tooltip-content {
  display: block;
}

/* Signal/event item styling */
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.signal-item-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.signal-significance {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

.significance-high {
  background: #11aa64;
}

.significance-medium {
  background: #1aafc9;
}

.significance-low {
  background: #6b7280;
}

/* Scoring dimension item */
.scoring-dimension {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.scoring-dimension-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.scoring-dimension-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scoring-dimension-name {
  font-weight: 500;
  color: #111827;
  font-size: 15px;
}

.scoring-dimension-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scoring-dimension-score {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.scoring-dimension-points {
  font-size: 12px;
  color: #6b7280;
}

/* Confidence indicator */
.confidence-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
}

.confidence-emoji {
  font-size: 14px;
}

.confidence-verified {
  color: #6b7280;
}

/* Tag badge variants for action buttons */
.tag-badge-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  text-decoration: none;
}

.tag-badge-blue:hover {
  background: rgba(59, 130, 246, 0.3);
}

.tag-badge-green {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  text-decoration: none;
}

.tag-badge-green:hover {
  background: rgba(34, 197, 94, 0.3);
}

.tag-badge-blue-lg {
  background: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
}

/* Font weight utilities */
.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

/* ====================================
   PROSPECTS SHOW PAGE STYLES
   Replaces inline styles from prospects/show.rb
   ==================================== */

/* Signal section container */
.signals-section {
  padding: 16px 0;
}

/* Section header with icon and count */
.section-header-with-icon {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

/* Count badge in section header */
.section-count-badge {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  background: #dbeafe;
  color: #1e40af;
}

/* Signals list container */
.signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Signal card container */
.signal-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Significance badge (circular number) */
.significance-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

.significance-badge-high {
  background: #10b981;
}

.significance-badge-medium {
  background: #3b82f6;
}

.significance-badge-low {
  background: #f59e0b;
}

/* Signal card content */
.signal-card-content {
  flex: 1;
}

/* Signal title link */
.signal-title-link {
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
}

.signal-title-link:hover {
  color: #2563eb;
}

/* Signal title (non-link) */
.signal-title {
  font-weight: 500;
  color: #111827;
  font-size: 14px;
}

/* Criterion score card */
.criterion-score-card {
  margin-bottom: 16px;
}

.criterion-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.criterion-score-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.criterion-score-name {
  font-weight: 500;
  color: #111827;
  font-size: 15px;
}

.criterion-score-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.criterion-score-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* Confidence indicator */
.confidence-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Timeline event styles */
.timeline-section-header {
  padding: 16px 0 8px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.timeline-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
}

/* Scoring dimension card */
.scoring-dimension-card {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

/* Evidence item styles */
.evidence-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.evidence-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 500;
  font-size: 11px;
}

.evidence-number-dark {
  background: rgba(30, 64, 175, 0.2);
  color: #1e40af;
}

.evidence-content {
  flex: 1;
}

.evidence-title-link {
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.evidence-title-link:hover {
  text-decoration: underline;
}

.evidence-title {
  font-weight: 500;
  color: #2563eb;
}

.evidence-title-dark {
  color: #1e40af;
}

.evidence-relevance {
  color: #6b7280;
  margin-left: 4px;
}

.evidence-relevance-dark {
  color: #1e3a8a;
}

/* Empty chart state */
.empty-chart-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

/* Logo image styling */
.company-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.company-logo-sm .company-logo-image {
  border-radius: 0;
}

/* Dimensions list */
.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

/* Task button */
.create-task-button {
  margin-top: 12px;
}

/* Action link */
.action-link-inline {
  text-decoration: none;
  margin-top: 12px;
  display: inline-flex;
  width: auto;
}

/* Confidence/status color classes */
.text-green-500 {
  color: #10b981;
}

.text-yellow-500 {
  color: #f59e0b;
}

.text-red-500 {
  color: #ef4444;
}

/* ====================================
   GLASS CARD STYLES (Admin/Settings)
   Standard glassmorphism card patterns
   ==================================== */

.glass-card-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px;
  margin-bottom: 24px;
}

.glass-card-inner {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
}

/* Section spacing */
.section-mb-24 {
  margin-bottom: 24px;
}

.section-mb-20 {
  margin-bottom: 20px;
}

.section-mb-16 {
  margin-bottom: 16px;
}

.section-mb-12 {
  margin-bottom: 12px;
}

.section-pt-24 {
  padding-top: 24px;
}

.section-pt-16 {
  padding-top: 16px;
}

/* Height spacers */
.spacer-40 {
  height: 40px;
}

.spacer-24 {
  height: 24px;
}

.spacer-20 {
  height: 20px;
}

/* Dividers */
.divider-white-10 {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 32px 0;
}

.divider-gray-200 {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

.border-divider-top {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-divider-top-gray {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* ====================================
   FLEX LAYOUTS (Admin/Settings)
   Common flex patterns
   ==================================== */

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-between-start {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.flex-start-gap-24 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.flex-center-gap-12 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flex-col-gap-20 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.text-right {
  text-align: right;
}

/* ====================================
   GRID LAYOUTS (Admin/Settings)
   Common grid patterns
   ==================================== */

.grid-auto-fit-200 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.grid-auto-fit-280 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.grid-auto-fit-320 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-gap-20 {
  display: grid;
  gap: 20px;
}

.grid-gap-16 {
  display: grid;
  gap: 16px;
}

/* ====================================
   STAT CARDS (Settings/Email)
   Statistics display cards
   ==================================== */

.stat-card {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  transition: all 0.2s;
}

.stat-card:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.stat-card-icon {
  margin-bottom: 12px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-card-icon.highlight {
  color: #f59e0b;
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-card-value.highlight {
  color: #f59e0b;
}

.stat-card-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

/* ====================================
   EMAIL ADDRESS DISPLAY
   Monospace code-like display
   ==================================== */

.email-address-box {
  flex: 1;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-box {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
}

/* ====================================
   INSTRUCTIONS LIST
   Step-by-step instructions
   ==================================== */

.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Modal Step Indicator - Integrated into modal header */
.modal-step-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-left: 10px;
  /* No standalone background - inherits from modal-header */
}

.modal-header .modal-step-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  margin-right: 40px;
  letter-spacing: -0.02em;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step-number.active {
  background: rgba(27, 190, 116, 0.2);
  border-color: #1ebe74;
  color: #1ebe74;
  transform: scale(1.1);
}

.step-number.completed {
  background: rgba(27, 190, 116, 0.15);
  border-color: rgba(27, 190, 116, 0.5);
  color: rgba(255, 255, 255, 0.7);
}

.step-line {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.step-line.completed {
  background: rgba(27, 190, 116, 0.5);
}

.step-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  padding-top: 4px;
}

/* Additional info box */
.info-notice {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-notice-icon {
  font-size: 20px;
  color: #5eb3d1;
  margin-top: 2px;
}

/* ====================================
   STATUS INDICATORS
   Connection status dots
   ==================================== */

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot-connected {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.status-dot-disconnected {
  background: rgba(255, 255, 255, 0.3);
}

.status-text-connected {
  color: #10b981;
  font-size: 14px;
  font-weight: 500;
}

.status-text-disconnected {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
}

/* ====================================
   ICON CONTAINERS
   Branded/styled icon wrappers
   ==================================== */

.icon-container-lg {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-container-md {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.icon-container-brand {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====================================
   PERMISSION BADGES
   CRUD permission indicators
   ==================================== */

.permission-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
}

.permission-badge-enabled {
  background: rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

.permission-badge-disabled {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
}

/* ====================================
   ALERT/NOTICE BOXES
   Warning and info banners
   ==================================== */

.alert-warning {
  padding: 16px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
}

.alert-success {
  padding: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

.alert-info {
  padding: 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
}

.token-display {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #ffffff;
  word-break: break-all;
}

/* ====================================
   MODAL STYLES
   Dialog/popup styling
   ==================================== */

.modal-glass {
  position: relative;
  transform: scale(1);
  overflow: hidden;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
  max-width: 500px;
  width: 100%;
}

/* ====================================
   EMPTY STATE (Extended)
   Additional empty state styles
   ==================================== */

.empty-state-centered {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.empty-state-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

/* ====================================
   PROVIDER SELECTION CARDS
   Email provider cards
   ==================================== */

.provider-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  transition: all 0.3s;
}

.provider-card:not(.disabled):hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.provider-card.selected {
  border-color: #6366f1;
  border-width: 2px;
  background: rgba(99, 102, 241, 0.05);
}

.provider-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ====================================
   INTEGRATION CARD STATES
   CRM integration cards
   ==================================== */

.integration-card-connected {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.integration-card-default {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.integration-card-unavailable {
  opacity: 0.6;
}

/* Card link overlay */
.card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: pointer;
}

.card-content-relative {
  position: relative;
  z-index: 0;
}

/* ====================================
   TOGGLE SWITCH FORM
   Timeline sync preferences toggle
   ==================================== */

.sync-preferences-section {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s;
}

.sync-preferences-enabled {
  opacity: 1;
  pointer-events: auto;
}

.sync-preferences-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ====================================
   SSO PAGE SPECIFIC STYLES
   ==================================== */

.saml-provider-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.saml-provider-icon i {
  color: #ffffff;
  font-size: 24px;
}

/* Provider ID display */
.entity-id-display {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
  font-family: monospace;
}

/* Stats grid */
.stats-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Actions row */
.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   FORM INPUT STYLES (Glassmorphism)
   ==================================== */

.form-input-glass {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  width: 100%;
  transition: all 0.2s;
}

.form-input-glass:focus {
  border-color: rgba(52, 111, 130, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 111, 130, 0.1);
}

.form-input-glass::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Form input with suffix (like subdomain + domain) */
.input-with-suffix {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.input-with-suffix input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
}

.input-with-suffix .suffix {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
  font-size: 14px;
}

/* ====================================
   TAG BADGES (Extended)
   ==================================== */

.tag-badge-blue-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-badge-blue-lg:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* ====================================
   RESPONSIVE UTILITIES
   ==================================== */

@media (max-width: 768px) {
  .grid-auto-fit-200,
  .grid-auto-fit-280,
  .grid-auto-fit-320 {
    grid-template-columns: 1fr;
  }

  .grid-2-cols,
  .grid-3-cols {
    grid-template-columns: 1fr;
  }

  .flex-start-gap-24 {
    flex-direction: column;
    gap: 16px;
  }

  .glass-card-dark {
    padding: 20px;
  }
}

/* ====================================
   ADDITIONAL UTILITY CLASSES
   ==================================== */

/* Hover transitions */
.hover-shadow {
  transition: all 0.2s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Icon sizes */
.icon-3rem {
  font-size: 3rem;
}

/* Grid for configurations */
.grid-auto-fit-350 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* Wizard navigation divider */
.wizard-nav-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   PROSPECTS SHOW PAGE STYLES
   Buying Readiness and Signal Components
   ==================================== */

/* Empty chart state */
.empty-chart-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.empty-chart-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.5;
}

/* Criterion scores section header */
.criterion-section-header {
  padding: 16px 0 8px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.criterion-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
}

.chart-bars-icon {
  width: 20px;
  height: 20px;
  color: #4a8fa3;
  margin-right: 8px;
}

.criterion-count-badge {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  background: #dbeafe;
  color: #1e40af;
}

/* Criterion score card */
.criterion-score-card {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.criterion-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.criterion-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.criterion-name {
  font-weight: 500;
  color: #111827;
  font-size: 15px;
}

.criterion-score-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.criterion-score-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.criterion-weighted-points {
  font-size: 12px;
  color: #6b7280;
}

/* Criterion progress bar */
.criterion-progress-track {
  width: 100%;
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.criterion-progress-bar-fill {
  height: 10px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Key signals section */
.key-signals-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.key-signals-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

.key-signals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Signal item */
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.signal-significance-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 500;
  font-size: 11px;
}

.signal-significance-badge-dark {
  background: rgba(30, 64, 175, 0.2);
}

.signal-content {
  flex: 1;
}

.signal-title-link {
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.signal-title-link:hover {
  text-decoration: underline;
}

.signal-title-link-dark {
  color: #1e40af;
}

.signal-title {
  font-weight: 500;
  color: #2563eb;
}

.signal-title-dark {
  color: #1e40af;
}

.signal-relevance {
  color: #6b7280;
  margin-left: 4px;
}

.signal-relevance-dark {
  color: #1e3a8a;
}

/* Confidence indicator */
.confidence-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.confidence-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
}

.confidence-emoji {
  font-size: 14px;
}

.confidence-percentage {
  font-weight: 500;
}

.confidence-quality {
  color: #6b7280;
}

/* Confidence tooltip */
.confidence-tooltip-container {
  position: relative;
  display: inline-block;
  margin-left: 4px;
}

.confidence-tooltip-icon {
  width: 12px;
  height: 12px;
  color: #9ca3af;
  cursor: help;
}

.confidence-tooltip-content {
  display: none;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 8px;
  width: 256px;
  padding: 12px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.confidence-tooltip-container:hover .confidence-tooltip-content {
  display: block;
}

/* Empty scores state */
.no-scores-empty-state {
  padding: 40px 20px;
  text-align: center;
}

.no-scores-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #9ca3af;
}

/* Hooks section */
.hooks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.create-task-button-styled {
  margin-top: 12px;
}

.create-task-link {
  text-decoration: none;
  margin-top: 12px;
  display: inline-flex;
  width: auto;
}

/* Hook signal items (dark theme variant) */
.hook-signal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.hook-significance-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.2);
  color: #1e40af;
  font-weight: 500;
  font-size: 11px;
}

.hook-signal-content {
  flex: 1;
}

.hook-signal-link {
  font-weight: 500;
  color: #1e40af;
  text-decoration: none;
}

.hook-signal-link:hover {
  text-decoration: underline;
}

.hook-signal-title {
  font-weight: 500;
  color: #1e40af;
}

.hook-signal-relevance {
  color: #1e3a8a;
  margin-left: 4px;
}

/* ====================================
   INFO BOX COMPONENT
   ==================================== */

.info-box {
  padding: 12px;
  margin: 0;
  border-radius: 8px;
}

.info-box-info {
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid #6366f1;
  color: #4338ca;
}

.info-box-info strong {
  color: #312e81;
}

.info-box-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
}

.info-box-success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10b981;
}

.info-box-error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.info-box-neutral {
  background: rgba(107, 114, 128, 0.1);
  border-left: 3px solid #6b7280;
}

.info-box-content {
  flex: 1;
}

/* ====================================
   KVK LOOKUP SECTION
   ==================================== */

.kvk-lookup-section {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.kvk-info-box-wrapper {
  margin-top: 4px;
}

.auto-filled-section {
  margin-top: 16px;
}

.auto-filled-section .section-header {
  margin-bottom: 16px;
}

.auto-filled-section .section-header-title {
  font-size: 16px;
  color: #6b7280;
}

.auto-filled-section .section-header-description {
  font-size: 13px;
  color: #9ca3af;
}

/* Lookup status styling */
.lookup-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.lookup-status-loading {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.lookup-status-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.lookup-status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* KVK Preview Card (found company) */
.kvk-preview-card {
  background: #ecfdf5 !important;
  border: 1px solid #10b981 !important;
  border-radius: 8px;
  backdrop-filter: none !important;
}

.kvk-preview-card .kvk-preview-name,
.kvk-preview-name {
  font-weight: 600;
  font-size: 16px;
  color: #065f46 !important;
}

.kvk-preview-card .kvk-preview-details,
.kvk-preview-details {
  font-size: 14px;
  color: #047857 !important;
  margin-top: 4px;
}

/* Reference customer add button - wider for longer text */
.kvk-preview-card .button-primary {
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 20px;
}

/* ====================================
   PROVIDER CARD COMPONENT
   ==================================== */

.provider-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.provider-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.provider-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.provider-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.provider-card-icon-aws { background: rgba(255, 153, 0, 0.15); }
.provider-card-icon-google { background: rgba(66, 133, 244, 0.15); }
.provider-card-icon-microsoft { background: rgba(0, 120, 212, 0.15); }
.provider-card-icon-smtp { background: rgba(107, 114, 128, 0.15); }

.provider-card-title {
  font-weight: 500;
  color: #111827;
  font-size: 15px;
  margin: 0;
}

.provider-card-description {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.provider-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-card-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
}

/* ====================================
   SUBSCRIPTION EXPIRED OVERLAY
   ==================================== */

.subscription-overlay-wrapper {
  position: relative;
}

.subscription-overlay-blurred {
  filter: blur(4px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.subscription-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  z-index: 100;
}

.subscription-dialog {
  max-width: 420px;
  width: calc(100% - 48px);
  padding: 32px 40px;
  text-align: center;
  background: rgba(3, 60, 71, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.subscription-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(61, 161, 179, 0.2);
  border-radius: 50%;
  margin: 0 auto 24px auto;
}

.subscription-dialog-icon i {
  font-size: 28px;
  color: #3da1b3;
}

.subscription-dialog-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px 0;
  text-align: center;
}

.subscription-dialog-description {
  color: #989b9d;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  text-align: center;
}

.subscription-dialog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(180deg, #11aa64 0%, #0e8a52 100%);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.subscription-dialog-button:hover {
  opacity: 0.9;
}

.subscription-dialog-button i {
  margin-right: 8px;
}

/* ====================================
   ACCOUNT SETTINGS COMPONENT
   ==================================== */

/* Account settings header card */
.account-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.account-settings-header-content {
  flex: 1;
}

.account-settings-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.account-settings-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

/* Account settings back button */
.account-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.account-back-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.account-back-button i {
  font-size: 16px;
}

/* Account settings section title */
.account-section-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Account settings field column layout */
.account-field-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Account settings field label */
.account-field-label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Account settings glass input */
.account-glass-input {
  width: 100%;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s;
}

.account-glass-input:focus {
  border-color: rgba(52, 111, 130, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 111, 130, 0.1);
}

.account-glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Account settings textarea */
.account-glass-textarea {
  width: 100%;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.account-glass-textarea:focus {
  border-color: rgba(52, 111, 130, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 111, 130, 0.1);
}

/* Account settings subdomain input group */
.account-subdomain-group {
  display: flex;
  align-items: stretch;
}

.account-subdomain-input {
  flex: 1;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  color: #ffffff;
  transition: all 0.2s;
}

.account-subdomain-suffix {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.account-field-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 6px;
}

.account-field-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
}

/* Account settings select card wrapper */
.account-select-card {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-select-card-header {
  margin-bottom: 12px;
}

.account-select-card-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.account-select-card-help {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Account settings glass select */
.account-glass-select {
  width: 100%;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.account-glass-select:focus {
  border-color: rgba(52, 111, 130, 0.5);
  outline: none;
}

/* Account settings locked section */
.account-locked-section {
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-locked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.account-locked-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-locked-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
}

.account-locked-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
}

.account-upgrade-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
}

.account-locked-message {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.account-locked-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.5;
  pointer-events: none;
  margin-bottom: 16px;
}

.account-locked-preview-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.account-upgrade-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5eb3d1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.account-upgrade-link:hover {
  color: #7ec8df;
}

.account-upgrade-link i {
  font-size: 12px;
}

.account-contact-admin {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Account settings toggle row */
.account-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-toggle-content {
  flex: 1;
}

.account-toggle-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.account-toggle-help {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.account-toggle-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.account-toggle-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Account form actions */
.account-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.account-button-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 15px;
}

.account-button-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.account-button-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: rgba(52, 111, 130, 0.3);
  border: 1px solid rgba(52, 111, 130, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.account-button-submit:hover {
  background: rgba(52, 111, 130, 0.4);
}

.account-button-submit i {
  font-size: 16px;
}

/* Account settings section gap */
.account-settings-gap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ====================================
   MODAL COMPONENT
   ==================================== */

.modal-title-white {
  color: rgb(255, 255, 255);
}

.modal-footer-link {
  color: rgba(255, 255, 255, 0.56);
}

.modal-footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ====================================
   FLEX LAYOUT ATOMS (DEC-030)
   Pure CSS classes for FlexRow/FlexColumn atoms
   ==================================== */

/* Base flex-row */
.flex-row {
  display: flex;
  flex-direction: row;
}

/* Base flex-column */
.flex-column {
  display: flex;
  flex-direction: column;
}

/* Gap variants */
.gap-xs { gap: 6px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 16px; }
.gap-xl { gap: 20px; }

/* Justify content variants */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Align items variants */
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }

/* ====================================
   HEADING ATOM (DEC-030)
   Pure CSS classes for Heading atom
   ==================================== */

.heading-light { color: #ffffff; }
.heading-dark { color: #1f2937; }
.heading-muted { color: rgba(255, 255, 255, 0.7); }
.heading-muted-light { color: rgba(255, 255, 255, 0.6); }
.heading-muted-dark { color: #6b7280; }

/* ====================================
   PARAGRAPH ATOM (DEC-030)
   Pure CSS classes for Paragraph atom
   ==================================== */

.paragraph-light { color: #ffffff; }
.paragraph-dark { color: #1f2937; }
.paragraph-muted { color: rgba(255, 255, 255, 0.7); }
.paragraph-muted-light { color: rgba(255, 255, 255, 0.6); }
.paragraph-muted-dark { color: #6b7280; }

/* Size variants for text */
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }

/* ====================================
   GLASS CONTAINER ATOM (DEC-030)
   Pure CSS classes for GlassContainer atom
   ==================================== */

.glass-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-container-padding-sm { padding: 12px; }
.glass-container-padding-md { padding: 16px; }
.glass-container-padding-lg { padding: 24px; }

/* ====================================
   ICON CONTAINER ATOM (DEC-030)
   Pure CSS classes for IconContainer atom
   ==================================== */

.icon-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.icon-container-sm {
  width: 32px;
  height: 32px;
}

.icon-container-md {
  width: 40px;
  height: 40px;
}

.icon-container-lg {
  width: 48px;
  height: 48px;
}

.icon-container-bg-light {
  background: rgba(255, 255, 255, 0.1);
}

.icon-container-bg-gradient {
  background: linear-gradient(135deg, rgba(52, 111, 130, 0.3), rgba(52, 111, 130, 0.1));
}

/* ====================================
   TEXT COLOR UTILITIES (DEC-030)
   Replace inline style helpers
   ==================================== */

.text-primary-dark {
  color: #282828;
}

.text-gray-900 {
  color: var(--bs-gray-900);
}

.text-gray-600 {
  color: #6b7280;
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white-60 {
  color: rgba(255, 255, 255, 0.6);
}

.cursor-pointer {
  cursor: pointer;
}

/* ====================================
   TOGGLE SWITCH (DEC-030)
   Styles for MonitoringToggle and FormToggleSwitch
   ==================================== */

.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle-switch-track-off {
  background-color: rgba(255, 255, 255, 0.2);
}

.toggle-switch-track-on {
  background-color: #10b981;
}

.toggle-switch-thumb {
  position: absolute;
  top: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch-thumb-off {
  left: 2px;
}

.toggle-switch-thumb-on {
  left: 22px;
}

.toggle-switch-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* Monitoring Toggle positioning */
.monitoring-toggle-wrapper {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
}

.monitoring-icon {
  font-size: 1.3rem;
}

.monitoring-icon-active {
  color: #137287;
}

.monitoring-icon-inactive {
  color: rgba(17, 68, 81, 0.58);
  opacity: 0.9;
}

/* Form Toggle Switch backgrounds */
.form-toggle-track {
  position: relative;
  display: inline-flex;
  height: 24px;
  width: 44px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: background-color 0.2s ease;
}

.form-toggle-track-off {
  background: rgba(255, 255, 255, 0.3);
}

.form-toggle-track-on {
  background: #10b981;
}

.form-toggle-knob {
  pointer-events: none;
  display: inline-block;
  height: 20px;
  width: 20px;
  transform: translateX(0);
  border-radius: 9999px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.form-toggle-knob-on {
  transform: translateX(20px);
}

/* ====================================
   GLASS PANEL (DEC-030)
   ==================================== */

.glass-panel-sidebar {
  max-width: 260px;
}

/* ====================================
   PASSWORD INPUT (DEC-030)
   ==================================== */

.password-toggle-hidden {
  display: none;
}

/* ====================================
   NUMBER BADGE (DEC-030)
   ==================================== */

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.number-badge-default {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.number-badge-primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.number-badge-success {
  background-color: #10b981;
  color: #ffffff;
}

.number-badge-warning {
  background-color: #f59e0b;
  color: #ffffff;
}

.number-badge-danger {
  background-color: #ef4444;
  color: #ffffff;
}

/* Number badge sizes */
.number-badge-sm {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.number-badge-md {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.number-badge-lg {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

/* Number badge step variants */
.number-badge-active {
  background: linear-gradient(135deg, #346f82 0%, #2c6070 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
}

.number-badge-completed {
  background: linear-gradient(135deg, #11aa64 0%, #0d8a51 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
}

.number-badge-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Step variant - matches modal header step indicator */
.number-badge-step {
  background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
}

/* ====================================
   ICON BUTTON SIZES (DEC-030)
   ==================================== */

.icon-size-xs { font-size: 12px; }
.icon-size-sm { font-size: 14px; }
.icon-size-md { font-size: 16px; }
.icon-size-lg { font-size: 20px; }
.icon-size-xl { font-size: 24px; }

.icon-btn-text-sm {
  font-size: 14px;
}

.icon-btn-text-md {
  font-size: 16px;
}

.icon-btn-text-lg {
  font-size: 18px;
}

.icon-btn-text-xl {
  font-size: 20px;
}

/* Signal title link hover effect */
.signal-title-link:hover {
  text-decoration: underline !important;
}

/* Key Signals section divider and heading (matches reference implementation) */
.key-signals-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.key-signals-heading {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
  margin-top: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Signal Item styling (matches reference implementation) */
.signal-item-row {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.number-badge-signal {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.signal-title-link {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
  color: rgb(37, 99, 235);
  text-decoration: none;
}

.signal-title-text {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
  color: rgb(37, 99, 235);
}

.signal-relevance-text {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #6b7280;
  margin-left: 4px;
}

/* Snapshot Info Banner Styles */
.snapshot-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 12px;
}

.snapshot-info-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.snapshot-info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3b82f6;
}

.snapshot-info-text {
  font-weight: 500;
}

.snapshot-info-score {
  font-weight: 700;
  color: #1e40af;
}

.snapshot-back-link {
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.snapshot-back-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.snapshot-banner-icon,
.snapshot-close-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.snapshot-info-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #1e40af;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.snapshot-info-close:hover {
  opacity: 1;
}

/* Snapshot Content Section Styles */
.snapshot-advice-section {
  animation: fadeIn 0.3s ease-in;
}

.snapshot-scores-section {
  animation: fadeIn 0.3s ease-in;
}

/* Snapshot Metrics Grid */
.snapshot-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.snapshot-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snapshot-metric-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snapshot-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a2e3a;
}

.snapshot-metric-value-large {
  font-size: 32px;
  font-weight: 700;
  color: #1a2e3a;
}

.snapshot-metric-value-small {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* Snapshot Confidence Bar */
.snapshot-confidence-bar {
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.snapshot-confidence-fill {
  height: 100%;
  background-color: #3b82f6;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Snapshot Stage Badge */
.snapshot-stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snapshot-stage-badge.text-red-600 {
  color: #dc2626;
  background-color: rgba(220, 38, 38, 0.1);
}

.snapshot-stage-badge.text-orange-600 {
  color: #ea580c;
  background-color: rgba(234, 88, 12, 0.1);
}

.snapshot-stage-badge.text-yellow-600 {
  color: #ca8a04;
  background-color: rgba(202, 138, 4, 0.1);
}

.snapshot-stage-badge.text-blue-600 {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}

.snapshot-stage-badge.text-gray-600 {
  color: #4b5563;
  background-color: rgba(75, 85, 99, 0.1);
}

/* Snapshot Info Notice */
.snapshot-info-notice {
  display: flex;
  gap: 12px;
  padding: 12px;
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
}

.snapshot-notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #3b82f6;
  margin-top: 2px;
}

.snapshot-notice-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  display: block;
  margin-bottom: 4px;
}

/* Snapshot Detail Link */
.snapshot-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.snapshot-detail-link:hover {
  color: #1d4ed8;
}

.snapshot-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Snapshot Date Label in Title */
.snapshot-date-label {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  margin-left: 8px;
}

/* Criterion Details Section */
.criterion-details {
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.criterion-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.criterion-detail-row:last-child {
  border-bottom: none;
}

.criterion-detail-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.criterion-detail-value {
  font-size: 14px;
  color: #1a2e3a;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ====================================
   SNAPSHOT CAROUSEL (for JS-rendered carousels)
   Used when clicking chart points to show snapshot details
   ==================================== */

/* Carousel Container */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 16px;
}

/* Carousel Wrapper */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Carousel Slides Wrapper */
.carousel-slides-wrapper {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

/* Individual Slide */
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure slide content respects boundaries */
.carousel-slide > * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Navigation Controls */
.carousel-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* Nav Buttons */
.carousel-nav-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-nav-btn:hover:not(:disabled) {
  color: #3d7a8d;
  border-color: #3d7a8d;
  background-color: rgba(61, 122, 141, 0.1);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* Indicator Dots */
.carousel-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-indicator.active {
  background: #4a8fa3;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: #9ca3af;
}

/* Significance Badges for Signal Items */
.significance-badge-high {
  background-color: #dcfce7;
  color: #166534;
}

.significance-badge-medium {
  background-color: #fef3c7;
  color: #92400e;
}

.significance-badge-low {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* ====================================
   COMPANY SHOW PAGE - INFO CARDS
   ==================================== */
.card-detail-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-detail-row {
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    margin-bottom: 8px;
}

.card-detail-row:last-child {
    margin-bottom: 0;
}

.card-detail-row strong {
    color: #111827;
    font-weight: 600;
}

.card-detail-row a {
    color: #3d8fa8;
    text-decoration: none;
}

.card-detail-row a:hover {
    text-decoration: underline;
}

/* ====================================
   TASK MODAL - Create/Edit ActionInstance
   ==================================== */

/* Modal Backdrop */
.task-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  overflow-y: auto;
}

.task-modal.show {
  display: block;
}

.task-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  z-index: 1051;
}

.task-modal-backdrop.show {
  opacity: 1;
}

/* Modal Dialog */
.task-modal-dialog {
  position: relative;
  margin: 1.75rem auto;
  max-width: 900px;
  z-index: 1052;
  pointer-events: none;
}

.task-modal-dialog-create {
  max-width: 1000px;
}

.task-modal-dialog-edit {
  max-width: 700px;
}

/* Modal Content - Override dialog class and apply reference design */
.task-modal-content,
.task-modal-content.dialog {
  pointer-events: auto;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden;
  padding: 0 !important; /* Override .dialog padding */
}

/* Modal Header - Dark teal (reference design) */
.task-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #2d4a54 0%, #1a3a4a 100%) !important;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}

.task-modal-content .task-modal-header {
  background: linear-gradient(135deg, #2d4a54 0%, #1a3a4a 100%) !important;
}

.task-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff !important;
  margin: 0;
}

.task-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.task-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.task-modal-close .bi {
  color: #ffffff !important;
}

/* Modal Body (reference design) */
.task-modal-body {
  padding: 0;
  background: #ffffff; /* White background to match the form content */
  border-radius: 0 0 16px 16px;
}

/* Body with create/edit/select layouts have their own padding */
.task-modal-body:has(.task-modal-create-layout),
.task-modal-body:has(.task-modal-edit-layout),
.task-modal-body:has(.task-modal-select-layout) {
  padding: 0;
}

/* Standalone content gets padding */
.task-modal-body > div:first-child:not(.task-modal-create-layout):not(.task-modal-edit-layout):not(.task-modal-select-layout) {
  padding: 24px;
}

/* Bootstrap form elements in modal */
.task-modal-body .form-control,
.task-modal-body .form-select {
  padding: 14px 18px; /* Slightly more padding like reference */
  border: 1px solid #e5e7eb; /* Subtle border like reference */
  border-radius: 12px; /* More rounded like reference */
  font-size: 0.95rem;
  color: #1f2937;
  background: #f9fafb; /* Lighter background like reference */
  transition: all 0.15s ease;
}

.task-modal-body .form-control:focus,
.task-modal-body .form-select:focus {
  outline: none;
  background: #ffffff; /* White on focus like reference */
  box-shadow: 0 0 0 3px rgba(61, 143, 168, 0.15); /* Softer focus ring */
  border-color: #3d8fa8;
}

.task-modal-body .form-control::placeholder {
  color: #9ca3af; /* Lighter placeholder */
}

.task-modal-body .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px; /* More space like reference */
}

.task-modal-body textarea.form-control {
  min-height: 140px; /* Taller textarea like reference */
  resize: vertical;
}

.task-modal-body .form-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Create Mode - Two Column Layout */
.task-modal-create-layout {
  display: flex;
  min-height: 700px; /* Increased from 500px to make modal longer */
}

.task-modal-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid rgba(61, 143, 168, 0.15);
  background: linear-gradient(180deg, rgba(14, 30, 39, 0.95) 0%, rgba(3, 60, 71, 0.95) 100%);
  overflow-y: auto;
  max-height: 800px; /* Increased from 600px to match longer modal */
}

/* Action Type Sidebar Container */
.task-modal-action-sidebar {
  padding: 16px 12px;
}

/* Sidebar Header */
.action-sidebar-header {
  padding: 0 8px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.action-sidebar-title {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Stakeholder Warning */
.action-sidebar-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(207, 127, 33, 0.15);
  border: 1px solid rgba(207, 127, 33, 0.3);
  border-radius: 8px;
}

.action-sidebar-warning .warning-icon {
  color: #cf7f21;
  flex-shrink: 0;
  margin-top: 1px;
}

.action-sidebar-warning .warning-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Categories Container */
.action-sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Category Section */
.action-category {
  /* No additional styling needed */
}

/* Category Header */
.action-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 4px;
}

.action-category-header .category-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.action-category-header .category-icon.linkedin {
  color: #0a66c2;
}

.action-category-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category Items Container */
.action-category-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-modal-form-container {
  flex: 1;
  padding: 0; /* Remove padding to eliminate gray background */
  overflow-y: auto;
  max-height: 800px; /* Increased from 600px to match longer modal */
  background: #ffffff; /* Change to white background to match form */
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gap since we're filling the entire container */
}

/* Inner form content wrapper (reference design) - White rounded card */
.task-modal-form-container .task-form-container {
  background: #ffffff; /* Pure white card like reference */
  border-radius: 0; /* Remove rounded corners since it fills the container */
  padding: 32px; /* More generous padding like reference */
  box-shadow: none; /* Remove shadow since there's no visible container edge */
  flex: 1; /* Make it fill the entire container */
  display: flex;
  flex-direction: column;
}

/* Footer styling for create mode form container - Now part of the white form */
.task-modal-form-container .task-form-actions {
  margin-top: auto; /* Push to bottom of flex container */
  margin-left: -32px; /* Extend to edges of container */
  margin-right: -32px;
  margin-bottom: -32px;
  padding: 24px 32px; /* Comfortable padding for buttons */
  background: #f8f9fa; /* Light background for footer */
  border-top: 1px solid #e9ecef; /* Subtle border */
  border-radius: 0; /* No rounded corners since modal has its own */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Edit Mode - Single Column Layout (reference design) */
.task-modal-edit-layout {
  padding: 24px;
  background: #ffffff;
}

.task-modal-edit-layout .task-form-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 0;
}

/* Footer styling for edit mode */
.task-modal-edit-layout .task-form-actions {
  margin: 20px -20px -20px -20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}

/* Loading State */
.task-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
  color: #6b7280;
}

.task-modal-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(61, 143, 168, 0.2);
  border-top-color: #3d8fa8;
  border-radius: 50%;
  animation: task-modal-spin 0.8s linear infinite;
}

@keyframes task-modal-spin {
  to { transform: rotate(360deg); }
}

/* ====================================
   ACTION TYPE SIDEBAR
   ==================================== */

.action-type-sidebar {
  padding: 16px;
}

.action-type-category {
  margin-bottom: 20px;
}

.action-type-category:last-child {
  margin-bottom: 0;
}

.action-type-category-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin-bottom: 8px;
  padding-left: 4px;
}

.action-type-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Action Type Item - Dark sidebar variant */
.action-type-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
}

.action-type-item:hover:not(.action-type-item-disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.action-type-item-selected {
  background: rgba(61, 143, 168, 0.35);
  border-color: rgba(61, 143, 168, 0.6);
}

.action-type-item-selected:hover {
  background: rgba(61, 143, 168, 0.4);
}

.action-type-item-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-type-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  flex-shrink: 0;
}

.action-type-item-selected .action-type-item-icon {
  background: #3d8fa8;
  color: white;
}

.action-type-item-content {
  flex: 1;
  min-width: 0;
}

.action-type-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.action-type-item-selected .action-type-item-name {
  color: #ffffff;
  font-weight: 600;
}

.action-type-item-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Hide checkmark indicators in action sidebar */
.action-type-indicator {
  display: none !important;
}

/* Hide Internal action type (temporarily) */
[data-type="internal"] {
  display: none !important;
}

.action-type-item-selected .action-type-item-description {
  color: rgba(255, 255, 255, 0.7);
}

.action-type-item-status {
  flex-shrink: 0;
}

.action-type-item-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #3d8fa8;
  color: white;
  font-size: 12px;
}

.action-type-item-lock {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Custom scrollbar for sidebar */
.task-modal-sidebar::-webkit-scrollbar {
  width: 6px;
}

.task-modal-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.task-modal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.task-modal-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ====================================
   TASK FORM
   ==================================== */

.task-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2e3a;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Form Field Group */
.task-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2e3a;
}

.task-form-label .required {
  color: #1a2e3a;
  margin-left: 2px;
}

.task-form-input,
.task-form-select,
.task-form-textarea {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1f2937;
  background: #f1f5f9;
  transition: all 0.15s ease;
}

.task-form-input:focus,
.task-form-select:focus,
.task-form-textarea:focus {
  outline: none;
  background: #e8eef3;
  box-shadow: 0 0 0 2px rgba(61, 143, 168, 0.2);
}

.task-form-input::placeholder,
.task-form-textarea::placeholder {
  color: #94a3b8;
}

.task-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.task-form-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

/* Row Layout for Fields */
.task-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.task-form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Form Actions - Footer Style (reference design) */
.task-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  margin: 20px -24px -24px -24px;
  background: #ffffff;
  border-top: none;
}

/* Override Bootstrap button styles in task modal footer */
.task-form-actions .btn {
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

/* Cancel button - Dark teal (reference design) */
.task-form-actions .btn-outline-secondary,
.task-form-actions .btn.btn-outline-secondary {
  background: #2d4a54 !important;
  border: none !important;
  color: #ffffff !important;
}

.task-form-actions .btn-outline-secondary:hover,
.task-form-actions .btn.btn-outline-secondary:hover {
  background: #1a3a4a !important;
  color: #ffffff !important;
}

/* Primary button - Green (reference design) */
.task-form-actions .btn-primary,
.task-form-actions .btn.btn-primary {
  background: #22c55e !important;
  border: none !important;
  color: #ffffff !important;
}

.task-form-actions .btn-primary:hover,
.task-form-actions .btn.btn-primary:hover {
  background: #16a34a !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Success button - Green (for create & send) */
.task-form-actions .btn-success,
.task-form-actions .btn.btn-success {
  background: #22c55e !important;
  border: none !important;
  color: #ffffff !important;
}

.task-form-actions .btn-success:hover,
.task-form-actions .btn.btn-success:hover {
  background: #16a34a !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.task-form-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Legacy custom button classes */
.task-form-btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.task-form-btn-secondary {
  background: #2d4a54;
  border: none;
  color: white;
}

.task-form-btn-secondary:hover {
  background: #1a3a4a;
}

.task-form-btn-primary {
  background: #22c55e;
  border: none;
  color: white;
  margin-left: auto;
}

.task-form-btn-primary:hover {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.task-form-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Regenerate Button */
.task-form-regenerate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(61, 143, 168, 0.1);
  border: 1px solid rgba(61, 143, 168, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #3d8fa8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.task-form-regenerate-btn:hover {
  background: rgba(61, 143, 168, 0.15);
  border-color: rgba(61, 143, 168, 0.3);
}

.task-form-regenerate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Overlay for Form */
.task-form-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}

.task-form-loading-overlay.hidden {
  display: none;
}

/* Dynamic Field Visibility */
.task-form-fields-section {
  position: relative;
}

.task-form-fields-section.hidden {
  display: none;
}

/* Email Actions Row */
.task-form-email-actions {
  display: flex;
  gap: 12px;
}

.task-form-email-actions.hidden {
  display: none;
}

/* ============================================
   Prospect Selection Mode Styles
   ============================================ */

/* Dynamic dialog width based on content using :has() */
.task-modal-dialog:has(.task-modal-select-layout) {
  max-width: 560px;
}

.task-modal-dialog:has(.task-modal-create-layout) {
  max-width: 1000px;
}

.task-modal-dialog:has(.task-modal-edit-layout) {
  max-width: 700px;
}

/* Legacy class for backwards compatibility */
.task-modal-dialog-select {
  max-width: 560px;
}

/* Select Prospect Layout (reference design) */
.task-modal-select-layout {
  padding: 0;
  background: #ffffff;
}

/* Inner content area for prospect selection */
.task-modal-select-layout .task-modal-select-description,
.task-modal-select-layout .task-modal-select-search,
.task-modal-select-layout .task-modal-prospects-list {
  padding-left: 24px;
  padding-right: 24px;
}

/* Rounded inner content area */
.task-modal-select-inner {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 24px;
}

.task-modal-select-description {
  padding-top: 20px;
  padding-bottom: 8px;
  margin-bottom: 0;
}

.task-modal-select-description p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.task-modal-select-search .input-group {
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.task-modal-select-search .input-group-text {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding-left: 16px;
}

.task-modal-select-search .form-control {
  border: none;
  background: transparent;
  padding: 12px 16px 12px 8px;
}

.task-modal-select-search .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.task-modal-select-search .input-group:focus-within {
  background: #e8eef3;
  box-shadow: 0 0 0 2px rgba(61, 143, 168, 0.2);
}

/* Prospects list container (reference design) */
.task-modal-prospects-list {
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 0 0 24px 0;
}

/* Custom scrollbar for prospect list */
.task-modal-prospects-list::-webkit-scrollbar {
  width: 6px;
}

.task-modal-prospects-list::-webkit-scrollbar-track {
  background: transparent;
}

.task-modal-prospects-list::-webkit-scrollbar-thumb {
  background: rgba(61, 143, 168, 0.3);
  border-radius: 3px;
}

.task-modal-prospects-list::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 143, 168, 0.5);
}

/* Prospect list items (reference design) */
.task-modal-prospect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}

.task-modal-prospect-item:last-child {
  border-bottom: none;
}

.task-modal-prospect-item:hover {
  background: rgba(61, 143, 168, 0.04);
  text-decoration: none;
  color: inherit;
}

.task-modal-prospect-item:active {
  background: rgba(61, 143, 168, 0.08);
}

.task-modal-prospect-info {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.task-modal-prospect-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.task-modal-prospect-company {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Score badge adjustments within prospect list */
.task-modal-prospect-item .score-nr {
  margin-bottom: 0;
  font-size: 0.85rem;
  min-width: 42px;
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-modal-empty-state {
  padding: 40px 20px;
  text-align: center;
}

.task-modal-empty-state .bi {
  display: block;
  font-size: 3rem;
  margin-bottom: 16px;
  color: #adb5bd;
}

.task-modal-empty-state p {
  color: #6c757d;
  font-size: 0.95rem;
}

/* ====================================
   NEWUI TIMELINE COMPONENTS
   Consistent styling for timeline event cards
   ==================================== */

/* Timeline Event Card Wrapper */
.timeline-event-card-wrapper {
  margin-bottom: 16px;
}

.timeline-event-card-wrapper:last-child {
  margin-bottom: 0;
}

/* Timeline Event Card Inner Container */
.timeline-event-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
}

.timeline-event-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Timeline Event Header - matches .event-header in reference */
.event-header,
.timeline-event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Timeline Event Icon Wrapper - matches .event-icon-wrapper in reference */
.event-icon-wrapper,
.timeline-event-icon-wrapper {
  flex-shrink: 0;
}

/* Timeline Event Icon - matches .event-icon in reference */
.event-icon,
.timeline-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Event Icon Category Colors - matches .event-icon.category-* in reference */
.event-icon.category-blue,
.timeline-event-icon.category-blue {
  background: #3b82f6;
}

.event-icon.category-green,
.timeline-event-icon.category-green {
  background: #10b981;
}

.event-icon.category-gray,
.timeline-event-icon.category-gray {
  background: #6b7280;
}

/* Event Badges Container - matches .event-badges in reference */
.event-badges,
.timeline-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

/* Event Badge - matches .event-badge in reference */
.event-badge,
.timeline-event-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  background: #dbeafe;
  color: #1e40af;
  white-space: nowrap;
}

/* Timeline Event Title - matches .event-title in reference */
.event-title,
.timeline-event-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Timeline Event Timestamp */
.timeline-event-time {
  font-size: 14px;
  color: #6b7280;
}

/* Timeline Event Source Link - matches .event-source-link in reference */
.timeline-event-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #3b82f6;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.timeline-event-source-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Timeline Event Body */
.timeline-event-body {
  color: #111827;
}

/* Timeline Event Description - matches .event-description in reference */
.timeline-event-description {
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.timeline-event-description p {
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

/* Timeline Event Metadata - matches .event-metadata in reference */
.event-metadata,
.timeline-event-metadata {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Metadata section title - matches .metadata-title in reference */
.metadata-title,
.timeline-event-metadata-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 16px 0;
}

/* Horizontal metadata grid layout - matches .metadata-grid in reference */
.metadata-grid,
.timeline-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* Each metadata item has background and padding - matches .metadata-item in reference */
.metadata-item,
.timeline-metadata-item {
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

/* Metadata label - matches .metadata-label in reference */
.metadata-label,
.timeline-metadata-label {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 4px 0;
}

/* Metadata value - matches .metadata-value in reference */
.metadata-value,
.timeline-metadata-value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

/* Timeline Event Signals */
.timeline-event-signals {
  margin-top: 16px;
}

.signals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Timeline Event Stakeholders */
.timeline-event-stakeholders {
  margin-top: 16px;
}

/* Timeline Event Source Link */
.timeline-event-source a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-event-source a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Timeline Event Relevance (Why This Matters) - event-significance in reference */
.timeline-event-relevance {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin: 16px 0;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
}

.timeline-event-relevance .relevance-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #d97706;
}

.timeline-event-relevance .relevance-icon svg,
.timeline-event-relevance .relevance-icon i {
  color: #d97706;
  font-size: 16px;
}

.timeline-event-relevance .relevance-content {
  flex: 1;
}

.timeline-event-relevance .relevance-content h6,
.significance-title {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 8px 0;
}

.timeline-event-relevance .relevance-content p,
.significance-text {
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

/* Timeline Event Footer - matches .event-actions in reference */
.timeline-event-footer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* Timeline Detail Link */
.timeline-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.timeline-detail-link:hover {
  color: #2563eb;
}

/* Timeline Action Button */
.timeline-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Green Gradient Action Button (Taak maken / Create Action) - matches .create-task-button in reference */
.btn-gradient-success {
  all: unset;
  box-sizing: border-box;
  display: flex;
  min-width: 180px;
  width: auto;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(142deg, rgb(3, 162, 102) 0%, rgb(13, 127, 136) 100%);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 21px;
  white-space: nowrap;
}

.btn-gradient-success::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 30px;
  background: linear-gradient(178deg, rgba(255, 255, 255, 0.5) 0%, rgba(7, 166, 93, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.btn-gradient-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
  color: #ffffff;
  text-decoration: none;
}

/* Button icon inside gradient success button - matches .create-task-button .button-icon in reference */
.btn-gradient-success .button-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  position: relative;
  z-index: 2;
}

/* Timeline Event Variant Classes */
.timeline-card-default { }

.timeline-card-compact .timeline-event-header {
  margin-bottom: 0;
}

.timeline-card-expanded .timeline-event-body {
  padding: 16px 0;
}

/* Risk Level Styling */
.timeline-risk-high {
  border-left: 4px solid #dc2626;
}

.timeline-risk-medium {
  border-left: 4px solid #f97316;
}

.timeline-risk-low {
  border-left: 4px solid #fbbf24;
}

/* Category-specific border colors (via border-start utility) */
/* These extend Bootstrap's border utilities for timeline cards */

/* ====================================
   TIMELINE DATE SECTION
   Styles for date groupings in timeline
   ==================================== */

.timeline-date-section {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-date-section:last-child {
  margin-bottom: 0;
}

.timeline-date-header {
  display: flex;
  align-items: center;
  padding: 20px 32px;
  background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
}

.date-icon-wrapper {
  flex-shrink: 0;
}

.date-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.date-icon .calendar-icon {
  font-size: 20px;
  color: #ffffff;
}

.date-info {
  margin-left: 16px;
}

.date-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.4;
}

.date-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 4px 0 0 0;
}

.timeline-events {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: white;
}

/* Override heading component colors inside date header */
.timeline-date-header .heading-light {
  color: #ffffff !important;
}

.timeline-date-header .paragraph-muted-light {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-date-header {
    padding: 16px 20px;
  }

  .date-icon {
    width: 32px;
    height: 32px;
  }

  .date-title {
    font-size: 16px;
  }

  .timeline-events {
    padding: 16px 20px;
  }
}

/* ====================================
   TURBO MODAL OVERLAY SYSTEM
   ==================================== */

/* Modal Styles - From reference */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active,
.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #346f82c9;
  border: 1px solid rgba(52, 111, 129, 0.3);
  border-radius: 24px;
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 14px;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: 'Figtree', Helvetica;
  font-weight: 400;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.modal-step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.step-number.active {
  background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
  color: #ffffff;
  border-color: #02b574;
  box-shadow: 0 2px 8px rgba(3, 162, 102, 0.3);
}

.step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.modal-step {
  display: block;
}

.modal-step.hidden {
  display: none;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: #33616f12;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
  font-size: 15px;
  font-family: 'Figtree', sans-serif;
  transition: all 0.2s ease;
}

.form-select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  border-top: 1px solid rgba(52, 111, 129, 0.3);
  flex-shrink: 0;
  margin-top: auto; /* Push footer to bottom when content is shorter than modal height */
}

.footer-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* Fix button alignment in modal footer */
.modal-footer .button {
  all: revert;  /* Undo the 'all: unset' from styles.css */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  width: auto;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Figtree', sans-serif;
  text-decoration: none;
}

.modal-footer .button .button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: none;
}

.modal-footer .button .button-text {
  white-space: nowrap;
}

.modal-footer .button.button-primary {
  background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
}

.modal-footer .button.button-secondary {
  background: transparent;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Prevent body scroll when modal open */
body.overflow-hidden {
  overflow: hidden;
}

/* Body state when modal is open (used by modal-backdrop controller) */
body.modal-open {
  overflow: hidden;
}

/* ====================================
   PERSISTENT MODAL BACKDROP
   Exists outside turbo-frame to prevent flicker during wizard step transitions
   ==================================== */

.modal-backdrop-persistent {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999; /* Below modal-overlay (1000) but above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease-in-out, visibility 150ms;
  pointer-events: none;
}

.modal-backdrop-persistent.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ====================================
   TASK MODAL - Action Type Selector (Top Bar)
   ==================================== */

/* Action Type Selector Container */
.action-type-selector {
  display: flex;
  flex-direction: column;
}

/* Category Tabs (Top Tier) */
.action-category-tabs {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.action-category-tabs .btn {
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-category-tabs .btn-primary {
  background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(3, 162, 102, 0.2);
}

.action-category-tabs .btn-outline-secondary {
  background-color: transparent;
  border-color: #dee2e6;
  color: #6c757d;
}

.action-category-tabs .btn-outline-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: #adb5bd;
  color: #495057;
}

/* Type Pills (Bottom Tier) */
.action-type-pills {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  min-height: 80px;
}

.action-type-pills > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.action-type-pill {

  display: inline-flex !important;
  flex-shrink: 0;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

.action-type-pill.bg-primary {
  background: linear-gradient(135deg, #03a266 0%, #02b574 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(3, 162, 102, 0.25);
}

.action-type-pill.bg-light {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.action-type-pill.bg-light:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.action-type-pill.cursor-not-allowed {
  cursor: not-allowed;
  opacity: 0.6;
}

.action-type-pill.hidden {
  display: none !important;
}

.action-type-pill .action-pill-icon {
  display: flex;
  align-items: center;
}

.action-type-pill .action-pill-label {
  white-space: nowrap;
}

/* Warning Messages */
.action-selector-warnings {
  background-color: rgba(255, 193, 7, 0.1);
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

/* Task Modal Create Layout (Flex Column) */
.task-modal-create-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.task-modal-form-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Transition Effects */
.action-type-pill,
.action-category-tabs .btn {
  transition: all 0.2s ease;
}

.action-type-pill:focus-visible,
.action-category-tabs .btn:focus-visible {
  outline: 2px solid #03a266;
  outline-offset: 2px;
}

/* ====================================
   MULTI-SELECT STYLING (Reference Design)
   ==================================== */

.form-select[multiple],
.form-select[size] {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  background: #33616f12;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
  font-size: 15px;
  font-family: 'Figtree', sans-serif;
  transition: all 0.2s ease;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  min-height: 100px;
  max-height: 100px;
  padding: 8px 12px;
  background-image: none;
}

.form-select[multiple] option,
.form-select[size] option {
  padding: 6px 8px;
  border-radius: 4px;
  color: #111827;
}

.form-select[multiple] option:checked,
.form-select[size] option:checked {
  background-color: rgb(52, 111, 129);
  color: white;
}

.form-select[multiple]::-webkit-scrollbar,
.form-select[size]::-webkit-scrollbar {
  width: 8px;
}

.form-select[multiple]::-webkit-scrollbar-track,
.form-select[size]::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.form-select[multiple]::-webkit-scrollbar-thumb,
.form-select[size]::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.form-select[multiple]::-webkit-scrollbar-thumb:hover,
.form-select[size]::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Hierarchical select styling */
.form-select option:disabled {
  font-weight: 600;
  color: #374151;
  background-color: #f3f4f6;
}

.form-select option.optgroup-division {
  font-weight: 600;
  color: #1f2937;
}

.form-select option.optgroup-group {
  font-weight: 500;
  color: #4b5563;
}

/* Industry search input styling */
.industry-search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.industry-search-wrapper input {
  width: 100%;
  background: #33616f12;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  padding: 8px 32px 8px 32px;
  transition: all 0.2s ease;
}

.industry-search-wrapper input:focus {
  outline: none;
  border-color: rgb(52, 111, 129);
  box-shadow: 0 0 0 3px rgba(52, 111, 129, 0.15);
}

.industry-search-wrapper input::placeholder {
  color: #9ca3af;
}

/* Search icon */
.industry-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

/* Clear button */
.industry-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  display: none;
  z-index: 1;
  border-radius: 4px;
  line-height: 0;
}

.industry-search-clear:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.05);
}

/* Show clear button when input has value */
.industry-search-wrapper.has-value .industry-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-search-wrapper.has-value .industry-search-icon {
  display: none;
}

/* Normalize select height for IndustrySelect and RegionSelect */
[data-controller="select-search"] .form-select {
  height: 200px;
  overflow-y: auto;
}

/* Normalize option line height so flags don't make rows taller */
[data-controller="select-search"] .form-select option {
  line-height: 1.5;
  padding: 4px 8px;
}

/* Light green button variant */
.button.button-light-green {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
}

.button.button-light-green:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Ensure inline-block buttons respect their natural width */
.button.d-inline-block {
  width: fit-content !important;
  display: inline-flex !important;
}

/* =============================================
 * Bootstrap 5 Spacing Utilities
 * Scale: 0=0, 1=0.25rem, 2=0.5rem, 3=1rem, 4=1.5rem, 5=3rem
 * ============================================= */

/* Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Margin Start (Left in LTR) */
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }
.ms-auto { margin-left: auto !important; }

/* Margin End (Right in LTR) */
.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }
.me-auto { margin-right: auto !important; }

/* Margin X (Horizontal) */
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Margin Y (Vertical) */
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* Padding Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Padding Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

/* Padding Start (Left in LTR) */
.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }

/* Padding End (Right in LTR) */
.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.pe-5 { padding-right: 3rem !important; }

/* Padding X (Horizontal) */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

/* Padding Y (Vertical) */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Padding All */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Margin All */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

/* Summary Page Styles */
.summary-label {
    min-width: 8rem;
    display: inline-block;
}

/* =====================================================
   DATA TABLE STYLES
   ===================================================== */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    background: transparent;
}

/* Table wrapper on glass backgrounds */
.glass-card .table-wrapper,
.glass-panel .table-wrapper {
    background: rgba(49, 114, 128, 0.15);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #1e293b;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table th {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    background: rgba(248, 250, 252, 0.8);
}

/* Teal header variant - matches reference design */
.data-table.table-teal-header th {
    background: linear-gradient(135deg, #4a8fa3 0%, #396f82 100%);
    color: #ffffff;
    font-size: 14px;
}

.data-table.table-striped tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.data-table.table-hover tbody tr:hover {
    background: rgba(14, 165, 233, 0.05);
}

.data-table.table-bordered {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table.table-bordered th,
.data-table.table-bordered td {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.table-action-btn:hover {
    background: rgba(241, 245, 249, 1);
    border-color: rgba(0, 0, 0, 0.15);
    color: #475569;
}

.table-actions-container {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

/* =====================================================
   PROGRESS BAR STYLES
   ===================================================== */

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-blue {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.progress-bar-green {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-bar-orange {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-bar-purple {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.progress-bar-red {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Progress label for light backgrounds */
.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.progress-label-percentage {
    font-size: 14px;
    font-weight: 600;
}

.progress-bar-wrapper {
    margin-bottom: 1rem;
}

/* =====================================================
   PROGRESS SECTION STYLES
   ===================================================== */

.progress-section {
    padding: 1rem 0;
}

.progress-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* =====================================================
   STATS GRID STYLES
   ===================================================== */

.grey-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.grey-stats .stat-item {
    padding: 2rem 1.5rem !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Override stat text colors for light context - matches reference */
.grey-stats .stat-item {
    background: transparent;
}

.grey-stats .stat-value {
    color: #64748b;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.grey-stats .stat-label {
    color: #64748b;
    opacity: 0.8;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   BUTTON VARIANTS FOR LIGHT CONTEXT
   ===================================================== */

.button.button-secondary-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    min-width: auto;
    padding: 8px 16px;
    height: auto;
}

.button.button-secondary-light::before {
    display: none;
}

.button.button-secondary-light:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: none;
    box-shadow: none;
}

/* =====================================================
   STYLEGUIDE STYLES
   ===================================================== */

/* Styleguide uses .prospects-container for scrolling (established pattern) */

.styleguide-header {
    margin-bottom: 2rem;
}

.styleguide-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Badges Demo Card - Light background container */
.badges-demo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.badges-section-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* Icon List Demo Card - White background for activity items */
.icon-list-demo-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* StatBadge variants for light contexts */
.stat-badge-count {
    background: #334155;
    color: #ffffff;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-badge-positive {
    background: transparent;
    color: #22c55e;
    font-weight: 600;
}

/* Tables Demo Card - White background container */
.tables-demo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tables-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Demo section title - generic style for all demo sections */
.demo-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Code block for styleguide code examples */
.code-block-wrapper {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background: #f8fafc;
}

.code-block {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8125rem;
    color: #64748b;
    white-space: pre-wrap;
    margin: 0;
}

/* Glass modal content for demo modals */
.glass-modal-content {
    background: rgba(15, 41, 54, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   HORIZONTAL SPLIT MODAL STYLES
   ===================================================== */

.modal-split-container {
    position: relative;
    display: flex;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    background: linear-gradient(135deg, #1a3d4d 0%, #0e2936 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-split-sidebar {
    width: 380px;
    min-width: 380px;
    background: rgba(26, 61, 77, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-split-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.action-category-tabs {
    padding: 1rem 1rem 0.75rem;
    background: rgba(15, 41, 54, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tabs-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tabs-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-tabs-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.category-tabs-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #a8b9c4;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.category-tab.active {
    background: linear-gradient(135deg, #346f81 0%, #29556b 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(52, 111, 129, 0.3);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.action-type-pills {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.action-type-pills::-webkit-scrollbar {
    width: 6px;
}

.action-type-pills::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.action-type-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.action-type-pill {

    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-type-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-type-pill.selected {
    background: linear-gradient(135deg, #346f81 0%, #29556b 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(52, 111, 129, 0.4);
}

.action-type-pill.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-type-pill.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-pill-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.action-pill-label {
    flex: 1;
    font-weight: 500;
}

.action-pill-indicator {
    font-size: 1rem;
    color: #4ade80;
}

.split-modal-form-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.split-modal-form-container::-webkit-scrollbar {
    width: 8px;
}

.split-modal-form-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.split-modal-form-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.split-modal-form-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.split-modal-form-container .form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
}

@media (max-width: 1200px) {
    .modal-split-container {
        width: 98%;
        height: 95vh;
    }

    .modal-split-sidebar {
        width: 320px;
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    .modal-split-container {
        flex-direction: column;
    }

    .modal-split-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .action-type-pills {
        max-height: 140px;
    }
}

/* =====================================================
   VERTICAL SPLIT MODAL STYLES
   ===================================================== */

.modal-vertical-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    background: linear-gradient(135deg, #1a3d4d 0%, #0e2936 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-vertical-top {
    background: rgba(26, 61, 77, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-vertical-bottom {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vertical-action-selector {
    display: flex;
    flex-direction: column;
}

.vertical-warning-banner {
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-size: 0.875rem;
}

.vertical-category-tabs {
    padding: 0.75rem 1rem;
    background: rgba(15, 41, 54, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vertical-tabs-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.vertical-tabs-scroll::-webkit-scrollbar {
    height: 3px;
}

.vertical-tabs-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.vertical-tabs-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.vertical-action-pills-wrapper {
    padding: 0.75rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.vertical-action-pills-wrapper::-webkit-scrollbar {
    height: 6px;
}

.vertical-action-pills-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.vertical-action-pills-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.vertical-action-pills {
    display: flex;
    gap: 0.5rem;
    min-width: min-content;
}

.vertical-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vertical-action-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.vertical-action-pill.selected {
    background: linear-gradient(135deg, #346f81 0%, #29556b 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(52, 111, 129, 0.4);
}

.vertical-action-pill.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vertical-action-pill.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.vertical-pill-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.vertical-pill-label {
    font-weight: 500;
}

.vertical-pill-indicator {
    font-size: 0.875rem;
    color: #4ade80;
}

.vertical-modal-form-container {
    flex: 0 1 auto;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.vertical-modal-form-container::-webkit-scrollbar {
    width: 8px;
}

.vertical-modal-form-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.vertical-modal-form-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.vertical-modal-form-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vertical-modal-form-container .form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
}

@media (max-width: 1200px) {
    .modal-vertical-container {
        width: 98%;
        height: 95vh;
    }
}

@media (max-width: 768px) {
    .vertical-action-pills-wrapper {
        padding: 0.5rem 0.75rem;
    }

    .vertical-action-pill {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* =========================================
 * Pricing Components
 * ========================================= */

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: rgba(15, 41, 54, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(52, 111, 129, 0.3);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.starter {
    border-color: rgba(59, 130, 246, 0.6);
    border-width: 3px;
}

.pricing-card.featured {
    border-color: rgba(16, 185, 129, 0.6);
    border-width: 3px;
}

.pricing-card.business {
    border-color: rgba(59, 130, 246, 0.6);
    border-width: 3px;
}

.pricing-card.enterprise {
    border-color: rgba(59, 130, 246, 0.6);
    border-width: 3px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-badge.enterprise {
    background: #3b82f6;
}

.pricing-card-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.pricing-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.price-period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.pricing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px;
    border-radius: 0;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 20px;
    padding-right: 20px;
}

.pricing-feature-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pricing-feature-label {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.pricing-feature-value {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.pricing-feature-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 4px 16px;
}

.pricing-feature-sublabel {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.pricing-feature-subvalue {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.pricing-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.3);
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-feature-icon {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-feature-icon.active {
    color: #10b981;
}

.pricing-feature-icon.inactive {
    color: #cbd5e1;
}

.pricing-feature-item span {
    font-size: 14px;
    color: #1e293b;
    font-weight: 400;
    line-height: 1.5;
}

.pricing-feature-item .feature-disabled {
    color: #94a3b8;
}

.pricing-feature-details {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

.pricing-card-footer {
    margin-top: auto;
    padding-top: 16px;
}

.pricing-button {
    position: relative;
    width: 100%;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Figtree', sans-serif;
    background: linear-gradient(135deg, #03a266 0%, #02b574 100%);
    color: #ffffff;
    display: block;
    text-align: center;
    text-decoration: none;
}

.pricing-button span {
    position: relative;
    z-index: 2;
}

.pricing-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(
        178deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(7, 166, 93, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.pricing-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 162, 102, 0.3);
    color: #ffffff;
}

.pricing-button.secondary {
    background: #3b82f699;
    color: #ffffff;
    cursor: default;
}

.pricing-button.secondary::before {
    display: none;
}

.pricing-button.secondary:hover {
    transform: none;
    box-shadow: none;
}

/* Info Icon with Tooltip */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    cursor: help;
}

.info-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    max-width: 250px;
    white-space: normal;
    text-align: center;
}

.info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.info-icon-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive Pricing */
@media (max-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 32px 16px;
    }

    .pricing-title {
        font-size: 24px;
    }

    .pricing-subtitle {
        font-size: 14px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .pricing-card-content {
        margin-left: -18px;
        margin-right: -18px;
    }

    .price-amount {
        font-size: 28px;
    }
}

/* ===========================================
   Radar Loader Animation
   =========================================== */

.radar-loader {
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  margin: 0 auto;
  box-sizing: border-box;
}

.radar-xs {
  width: 16px;
  height: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.8);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
}

/* Enhanced visibility for xs size */
.radar-xs .radar-grid {
  display: none; /* Too small for grid details */
}

.radar-xs .radar-sweep {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(59, 130, 246, 0.4) 40deg,
      rgba(59, 130, 246, 0.9) 90deg,
      transparent 91deg);
  animation: radar-spin 1.4s linear infinite;
}

.radar-xs .radar-dot {
  display: none; /* Too small for dots */
}

/* Size classes */
.radar-sm {
  width: 32px;
  height: 32px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.radar-md {
  width: 64px;
  height: 64px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.radar-lg {
  width: 128px;
  height: 128px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.radar-xl {
  width: 256px;
  height: 256px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.radar-full {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

/* Grid lines */
.radar-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(59, 130, 246, 0.2) 49.5%, rgba(59, 130, 246, 0.2) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(59, 130, 246, 0.2) 49.5%, rgba(59, 130, 246, 0.2) 50.5%, transparent 50.5%);
}

.radar-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66%;
  height: 66%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
}

.radar-grid::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  height: 33%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
}

/* Sweep effect */
.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(59, 130, 246, 0.1) 60deg,
      rgba(59, 130, 246, 0.5) 90deg,
      transparent 91deg);
  animation: radar-spin 2s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Dots */
.radar-dot {
  position: absolute;
  width: 6%;
  height: 6%;
  background-color: #3b82f6;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px #3b82f6;
  pointer-events: none;
}

.dot-1 {
  top: 30%;
  left: 60%;
  animation: radar-dot-pulse 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.dot-2 {
  top: 70%;
  left: 40%;
  animation: radar-dot-pulse 3s ease-in-out infinite;
  animation-delay: 1.2s;
}

.dot-3 {
  top: 40%;
  left: 20%;
  animation: radar-dot-pulse 3s ease-in-out infinite;
  animation-delay: 2.0s;
}

@keyframes radar-dot-pulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* =========================================
 * Radar Loader - Success (Green) Variant
 * ========================================= */

.radar-loader.radar-success {
  border-color: rgba(30, 190, 116, 0.3);
  background: radial-gradient(circle, rgba(30, 190, 116, 0.1) 0%, transparent 70%);
  box-shadow: 0 0 10px rgba(30, 190, 116, 0.2);
}

.radar-success .radar-grid {
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(30, 190, 116, 0.2) 49.5%, rgba(30, 190, 116, 0.2) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(30, 190, 116, 0.2) 49.5%, rgba(30, 190, 116, 0.2) 50.5%, transparent 50.5%);
}

.radar-success .radar-grid::before,
.radar-success .radar-grid::after {
  border-color: rgba(30, 190, 116, 0.15);
}

.radar-success .radar-sweep {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(30, 190, 116, 0.1) 60deg,
      rgba(30, 190, 116, 0.5) 90deg,
      transparent 91deg);
}

.radar-success .radar-dot {
  background-color: #1ebe74;
  box-shadow: 0 0 6px #1ebe74;
}

/* Extra small radar - green variant */
.radar-xs.radar-success {
  border-color: rgba(30, 190, 116, 0.8);
  background: radial-gradient(circle, rgba(30, 190, 116, 0.25) 0%, transparent 70%);
  box-shadow: 0 0 4px rgba(30, 190, 116, 0.4);
}

.radar-xs.radar-success .radar-sweep {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(30, 190, 116, 0.4) 40deg,
      rgba(30, 190, 116, 0.9) 90deg,
      transparent 91deg);
}

/* White radar variant for dark backgrounds */
.radar-loader.radar-white {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

.radar-white .radar-grid {
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.5) 49.5%, rgba(255, 255, 255, 0.5) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(255, 255, 255, 0.5) 49.5%, rgba(255, 255, 255, 0.5) 50.5%, transparent 50.5%) !important;
}

.radar-white .radar-grid::before,
.radar-white .radar-grid::after {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.radar-white .radar-sweep {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.4) 60deg,
      rgba(255, 255, 255, 0.8) 90deg,
      transparent 91deg) !important;
}

.radar-white .radar-dot {
  background-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 5px rgba(255, 255, 255, 1) !important;
}

/* Small radar - white variant (subtle border, no glow) */
.radar-loader.radar-sm.radar-white {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.radar-sm.radar-white .radar-sweep {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.6) 50deg,
      rgba(255, 255, 255, 0.95) 90deg,
      transparent 91deg) !important;
}

/* Extra small radar - white variant */
.radar-xs.radar-white {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%) !important;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4) !important;
}

.radar-xs.radar-white .radar-sweep {
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.5) 40deg,
      rgba(255, 255, 255, 0.95) 90deg,
      transparent 91deg) !important;
}

/* =========================================
 * AI Generate Overlay (Task Wizard)
 * ========================================= */

.ai-generate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 8px;
  min-height: 200px;
}

.ai-generate-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* =========================================
 * Company Autocomplete Styles
 * ========================================= */

.autocomplete-container {
    position: relative;
    width: 100%;
}

/* Remove bottom border-radius from input when dropdown is open */
.autocomplete-container.dropdown-open input,
.autocomplete-container.dropdown-open .input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(52, 111, 129, 0.4);
}

/* Allow autocomplete dropdown to overflow modal boundaries */
.modal-content .autocomplete-container {
    /* Create new stacking context */
    isolation: isolate;
}


.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2147483647; /* Maximum z-index - above all modal elements */
    max-height: 300px;
    overflow-y: auto;
    background: rgba(15, 41, 54, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52, 111, 129, 0.5);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

/* When inside a modal, use fixed positioning to escape overflow clipping */
.modal-content .autocomplete-dropdown {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    /* Width is set dynamically by JS to match input field */
}

.autocomplete-dropdown.hidden {
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-header {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(52, 111, 129, 0.2);
    border-bottom: 1px solid rgba(52, 111, 129, 0.3);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(52, 111, 129, 0.2);
    transition: background-color 0.15s ease;
}

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

.autocomplete-item:hover,
.autocomplete-item--selected {
    background: rgba(59, 130, 246, 0.2);
}

.autocomplete-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.autocomplete-item-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.autocomplete-item-kvk {
    font-family: 'Fira Code', monospace;
}

.autocomplete-item-city,
.autocomplete-item-postcode {
    color: rgba(255, 255, 255, 0.5);
}

.autocomplete-no-results {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.autocomplete-status {
    padding: 0 0 8px 0;
    font-size: 13px;
}

.autocomplete-status--loading {
    color: #3b82f6;
}

.autocomplete-status--loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.autocomplete-status--error {
    color: #ef4444;
}

.autocomplete-status--success {
    color: #22c55e;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar styling for autocomplete dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Company search section styling */
.company-search-section {
    margin-bottom: 1.5rem;
}

/* Readonly field styling - for auto-filled fields */
.readonly-field,
input[readonly].form-control,
input.readonly-field {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.readonly-field:focus,
input[readonly].form-control:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* =============================================================================
   Action Type Tree Selector (Task Wizard)
   Tree view for selecting action types with disabled reason display
   All categories always expanded - no scrolling
   ============================================================================= */

/* Expanded type selector step - ensure modal is big enough */
.type-selector-expanded {
    min-height: auto;
}

.action-type-tree {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: visible;
    background: #ffffff;
}

/* Always expanded variant */
.action-type-tree.always-expanded {
    max-height: none;
    overflow: visible;
}

/* Category header - static (non-clickable) */
.action-type-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bs-gray-100);
    border: none;
    border-bottom: 1px solid var(--bs-border-color);
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-body-color);
}

/* Static header - no hover/pointer */
.action-type-category-header.static {
    cursor: default;
}

.action-type-category:last-child .action-type-category-header {
    border-bottom: 1px solid var(--bs-border-color);
}

/* Category name and count */
.action-type-category-header .category-name {
    font-weight: 600;
}

.action-type-category-header .category-count {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-weight: 400;
}

/* Type list - always visible */
.action-type-list {
    background: #ffffff;
}

.action-type-list.show {
    display: block;
}

/* Individual type item - compact */
.action-type-item {
    padding: 0.375rem 0.75rem 0.375rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    transition: background-color 0.15s ease;
}

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

.action-type-item:hover:not(.disabled) {
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.action-type-item.selected {
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.action-type-item.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--bs-gray-50);
}

/* Selectable type label */
.action-type-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    gap: 0.5rem;
}

/* Hide the actual radio input */
.action-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Type name */
.action-type-item .type-name {
    font-size: 0.85rem;
    color: var(--bs-body-color);
}

.action-type-item.disabled .type-name {
    color: var(--bs-secondary);
}

/* Disabled type row */
.action-type-item .disabled-type-row {
    width: 100%;
}

/* Disabled reason text - inline */
.action-type-item .disabled-reason {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-style: italic;
    white-space: nowrap;
}

/* Check icon for selected item */
.action-type-item .check-icon {
    margin-left: auto;
}

/* Lock icon for disabled items */
.action-type-item .lock-icon {
    color: var(--bs-secondary);
}

/* Custom radio button appearance */
.action-type-label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid var(--bs-border-color);
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.15s ease;
}

.action-type-item:hover:not(.disabled) .action-type-label::before {
    border-color: var(--bs-primary);
}

.action-type-item.selected .action-type-label::before {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    box-shadow: inset 0 0 0 3px #ffffff;
}

/* Disabled items don't have the custom radio */
.action-type-item.disabled .action-type-label::before {
    display: none;
}

/* Icons in type items */
.action-type-item .type-icon {
    width: 14px;
    height: 14px;
    color: var(--bs-secondary);
}

.action-type-item.selected .type-icon {
    color: var(--bs-primary);
}

.action-type-item.disabled .type-icon {
    color: var(--bs-secondary);
    opacity: 0.6;
}

/* Integration logos */
.integration-logo {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.integration-logo.disabled {
    opacity: 0.5;
    filter: grayscale(50%);
}
