/**
 * Theme V1 - Modern Design System
 * 
 * Design Specifications:
 * - Color Palette: Pure White (#FFFFFF), Off-White (#F9F9F9), Electric Purple/Lavender (#E6E6FA), Peach/Cream gradients, Black (#000000)
 * - Shape Language: Heavy rounded corners (12px-16px), subtle drop shadows for floating effect
 * - Typography: Modern Sans-Serif (Inter, Roboto, Public Sans), heavy bolding for headers
 * - Visual Style: Glassmorphism Lite with transparency and blur, Vector Flat Art
 */

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
    /* Zoom Point  */
    --zoom-point: 1;
    --full-height: calc(100vh / var(--zoom-point));
    --full-width: calc(100vw / var(--zoom-point));

    /* Font size */
    --font-size-base: 16px;
    --font-size-zoom-out: 90%;
    --font-size-multiplier: 0.90;

    /* Color Palette */
    --color-mrd: #6D28D9;
    --color-white: #FFFFFF;
    --color-off-white: #F9F9F9;
    --color-lavender: #E6E6FA;
    --color-purple-light: #F3E5F5;
    --color-purple-medium: #CE93D8;
    --color-purple-dark: #9C27B0;
    --color-peach: #FFE5D9;
    --color-cream: #FFF8F0;
    --color-black: #000000;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #EEEEEE;
    --color-gray-300: #E0E0E0;
    --color-gray-400: #BDBDBD;
    --color-gray-500: #9E9E9E;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;

    /* Status Colors */
    --color-success: #4CAF50;
    --color-success-light: #C8E6C9;
    --color-success-bg: #E8F5E9;
    --color-warning: #FF9800;
    --color-warning-light: #FFE0B2;
    --color-warning-bg: #FFF3E0;
    --color-error: #F44336;
    --color-error-light: #FFCDD2;
    --color-error-bg: #FFEBEE;
    --color-info: #2196F3;
    --color-info-light: #BBDEFB;
    --color-info-bg: #E3F2FD;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E6E6FA 0%, #FFE5D9 100%);
    --gradient-accent: linear-gradient(135deg, #CE93D8 0%, #FFE5D9 100%);
    --gradient-dark: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    --gradient-peach: linear-gradient(135deg, #FFE5D9 0%, #FFF8F0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(230, 230, 250, 0.3) 0%, rgba(255, 229, 217, 0.3) 100%);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --radius-rounded-main: 1.25rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-floating: 0 8px 24px rgba(156, 39, 176, 0.15);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-sans: 'Inter', 'Roboto', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* New Brand Colors */
    --color-brand-purple: #8000FF;
    --color-brand-pink: #B14EB5;

    /* Transparent */
    --color-transparent-white: rgba(255, 255, 255, 0.9);
    /* 65% opacity white - USED BY BLADE TEMPLATES*/
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-zoom-out);
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: var(--full-height);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}

/* Atmospheric Bubble Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    animation: float 25s infinite alternate ease-in-out;
}

.bubble-1 {
    width: 55vw;
    height: 55vw;
    max-width: 650px;
    max-height: 650px;
    background-color: var(--color-brand-purple);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 65vw;
    height: 65vw;
    max-width: 750px;
    max-height: 750px;
    background-color: var(--color-brand-pink);
    bottom: -20%;
    right: -10%;
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(8%, 4%) scale(1.05);
    }
}

/* Content overlay to ensure content appears above background */
.content-wrapper {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(to bottom right, var(--color-brand-purple), var(--color-brand-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-regular);
    color: var(--color-gray-700);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-rounded-main);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Stark Black */
.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button - Lavender */
.btn-secondary {
    background: var(--color-lavender);
    color: var(--color-gray-900);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-purple-medium);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-gray-300);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* Success Button */
.btn-success {
    background: var(--color-success);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Danger Button */
.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

/* ============================================
   CARDS - Glass Morphism Style
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-xl);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-gray-100);
}

.card-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    margin-bottom: var(--space-xs);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    font-weight: var(--font-weight-regular);
}

.card-body {
    margin-bottom: var(--space-md);
}

.card-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

/* Glass Card Variant - Extra Transparent */
.card-glass {
    background: var(--color-transparent-white);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Gradient Card Variant - Glass with Gradient */
.card-gradient {
    background: linear-gradient(135deg,
            rgba(230, 230, 250, 0.6) 0%,
            rgba(255, 229, 217, 0.6) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-purple-medium);
    box-shadow: 0 0 0 4px rgba(206, 147, 216, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-400);
}

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

.form-error {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-error);
    font-weight: var(--font-weight-medium);
}

.form-help {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* Input with icon */
.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    pointer-events: none;
}

.input-group .form-input {
    padding-left: 3rem;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: var(--text-base);
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-purple-medium);
    box-shadow: var(--shadow-floating);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    font-size: var(--text-lg);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.badge-info {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.badge-primary {
    background: var(--color-lavender);
    color: var(--color-purple-dark);
}

/* Active Status Badge */
.badge-active {
    background: var(--color-success-light);
    color: var(--color-success);
    border: 2px solid var(--color-success);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.alert-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border-left: 4px solid var(--color-warning);
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-left: 4px solid var(--color-error);
}

.alert-info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

/* ============================================
   TABLES - Glass Style
   ============================================ */
.table-container {
    background: var(--color-transparent-white);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px 0 rgba(156, 39, 176, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--gradient-primary);
}

.table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem 1.5rem;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    border-bottom: 1px solid var(--color-gray-100);
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--color-gray-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    animation: fadeIn var(--transition-base);
}

/* .modal {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-xl);
    box-shadow:
        0 20px 60px 0 rgba(156, 39, 176, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
    animation: slideUp var(--transition-base);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
} */

.modal-content {
    border-radius: var(--radius-rounded-main) !important;
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 2px solid var(--color-gray-100);
}

button,
input,
select,
a.btn {
    border-radius: var(--radius-full) !important;
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav-tabs {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: var(--space-xl);
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-600);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav-tab:hover {
    color: var(--color-purple-dark);
    background: var(--color-gray-50);
}

.nav-tab.active {
    color: var(--color-purple-dark);
    border-bottom-color: var(--color-purple-dark);
    font-weight: var(--font-weight-bold);
}

/* ============================================
   UTILITIES
   ============================================ */

/* Spacing Utilities */
.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

/* Static Info Page Section */
.static-info-page {
    background: linear-gradient(135deg,
            #FFFFFFaa 0%,
            #FFF9C4aa 30%,
            #FFFFFFaa 60%,
            #E6E6FAaa 100%);
    border-radius: var(--radius-rounded-main);
    padding: var(--space-xl);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    /* Glassy Effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* border: 1px solid rgba(255, 255, 255, 0.4); */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.static-info-content {
    flex: 1;
    max-width: 50%;
    position: relative;
    z-index: 2;
}

.static-info-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #1f2937, #4b5563);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.static-info-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.static-info-action {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #6366f1;
    font-weight: 600;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.static-info-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.static-info-images {
    flex: 1;
    position: relative;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.static-img-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.static-img-1 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 120px;
    z-index: 2;
}

.static-img-1:hover {
    transform: translateX(-50%) translateY(-5px);
}

.static-img-2 {
    bottom: 20px;
    left: 10%;
    width: 180px;
    height: 100px;
    z-index: 1;
}

.static-img-2:hover {
    transform: translateY(-5px);
}

.static-img-3 {
    bottom: 20px;
    right: 10%;
    width: 180px;
    height: 100px;
    z-index: 1;
}

.static-img-3:hover {
    transform: translateY(-5px);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #aeb4c6;
}

/* Stat icons in stat cards */
.stat-card .stat-icon {
    display: flex;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: var(--space-xs);
}

.p-2 {
    padding: var(--space-sm);
}

.p-3 {
    padding: var(--space-md);
}

.p-4 {
    padding: var(--space-lg);
}

.p-5 {
    padding: var(--space-xl);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-bold {
    font-weight: var(--font-weight-bold);
}

.text-semibold {
    font-weight: var(--font-weight-semibold);
}

.text-medium {
    font-weight: var(--font-weight-medium);
}

.text-regular {
    font-weight: var(--font-weight-regular);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-base);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

/* Color Utilities */
.text-black {
    color: var(--color-black);
}

.text-gray {
    color: var(--color-gray-600);
}

.text-success {
    color: var(--color-success);
}

.text-error {
    color: var(--color-error);
}

.text-warning {
    color: var(--color-warning);
}

/* Background Utilities */
.bg-white {
    background: var(--color-white);
}

.bg-off-white {
    background: var(--color-off-white);
}

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

.bg-gradient-primary {
    background: var(--gradient-primary);
}

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

.bg-gradient-dark {
    background: var(--gradient-dark);
}

/* Elegant Warm Purple Background */
.bg-elegant-purple {
    background: linear-gradient(135deg,
            rgba(249, 249, 249, 0.95) 0%,
            rgba(243, 229, 245, 0.9) 25%,
            rgba(225, 190, 231, 0.85) 50%,
            rgba(243, 229, 245, 0.9) 75%,
            rgba(249, 249, 249, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Soft Purple Overlay */
.bg-purple-soft {
    background: rgba(156, 39, 176, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: var(--space-xs);
}

.gap-2 {
    gap: var(--space-sm);
}

.gap-3 {
    gap: var(--space-md);
}

.gap-4 {
    gap: var(--space-lg);
}

/* Border Radius Utilities */
.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-floating {
    box-shadow: var(--shadow-floating);
}

/* Display Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Width Utilities */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   DATATABLES
   ============================================ */
.dataTables_filter {
    display: none;
}

.dataTables_wrapper {
    /* overflow-x: auto; */
}

#callflowsTable {
    width: 100% !important;
    margin-bottom: 1rem;
}

#callflowsTable thead {
    background: rgba(248, 250, 252, 0.4);
}

#callflowsTable tbody tr {
    transition: all 0.2s;
}

#callflowsTable tbody tr:hover {
    background: rgba(99, 102, 241, 0.05) !important;
}

.dataTables_wrapper .dataTables_length {
    display: none;
}

.dataTables_length select {
    padding: 0.25rem 0.75rem !important;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 1rem;
}

.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: var(--radius-rounded-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-weight: 600;
    color: #475569;
}

.dataTables_paginate>.pagination {
    margin-top: var(--space-sm);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
    }

    .card {
        padding: var(--space-lg);
    }

    .modal {
        width: 95%;
    }

    .table-container {
        overflow-x: auto;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f587;
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: rgba(162, 25, 216, 0.1);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(162, 25, 216, 0.3);
}

/* Component */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-transparent-white);
    padding: 1.5rem;
    border-radius: var(--radius-rounded-main);
    box-shadow: 0 8px 32px 0 rgba(156, 39, 176, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    /* border-left: 4px solid; */
}

/* .stat-card.blue { border-color: #3b82f6; }
.stat-card.green { border-color: #10b981; }
.stat-card.orange { border-color: #f97316; }
.stat-card.purple { border-color: #8b5cf6; } */

.stat-card:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 40px 0 rgba(156, 39, 176, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.filter-bar {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    align-items: center;
    background: var(--color-transparent-white);
    border-radius: var(--radius-rounded-main);
    box-shadow: 0 8px 32px 0 rgba(156, 39, 176, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.filter-input {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-rounded-main);
    font-size: 0.875rem;
}

.filter-section {
    box-shadow: 0 8px 32px 0 rgba(156, 39, 176, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.workflows-table,
.extensions-table-container,
.calls-table,
.glass-table-container {
    background: var(--color-transparent-white);
    border-radius: var(--radius-rounded-main);
    /* overflow: hidden; */
    box-shadow: 0 8px 32px 0 rgba(156, 39, 176, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    padding: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    margin-bottom: 2rem;
}

.workflows-table table,
.extensions-table table,
.calls-table table,
.glass-table {
    width: 100%;
    border-collapse: collapse;
}

.workflows-table th,
.extensions-table th,
.calls-table th,
.glass-table th {
    background: rgba(248, 250, 252, 0.4);
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.workflows-table td,
.extensions-table td,
.calls-table td,
.glass-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(241, 245, 249, 0.5);
    font-size: 0.875rem;
    color: #334155;
}

.workflows-table tbody tr:hover,
.extensions-table tr:hover,
.calls-table tr:hover,
.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.2);

}

.active>.page-link {
    background: var(--gradient-dark);
    border-color: var(--gradient-dark);
}

/* Top Bar Action Button */
.top-bar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.top-bar-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white !important;
}

/* UI Components */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569 !important;
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b !important;
}

.btn-success {
    background: #16a34a;
    color: white !important;
}

.btn-warning {
    background: #ea580c;
    color: white !important;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container-card {
    max-width: 600px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active,
.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-suspended,
.status-failed,
.status-missed {
    background: #fee2e2;
    color: #991b1b;
}

.status-in-progress,
.status-assigned {
    background: #dbeafe;
    color: #1e40af;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* Inputs with Icons */
.input-with-icon {
    position: relative;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 2.75rem !important;
}

.input-icon-wrapper {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout Wrapper for Large Screens */
.layout-wrapper {
    display: flex;
    width: 100%;
    /* max-width: 1366px; */
    height: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1920px) {
    .layout-wrapper {
        /* max-width: 1800px; */
    }
}

@media (min-width: 2560px) {
    .layout-wrapper {
        /* max-width: 2000px; */
    }
}

.outer-app-container {
    display: flex;
    justify-content: center;
    height: var(--full-height);
    width: 100%;
    overflow: hidden;
    background: transparent;
}

/* --- New Theme Components (Extracted from Call Flows) --- */

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.bubble-main {
    width: 220px;
    height: 220px;
    background: #fef08a;
    bottom: -60px;
    left: 5px;
}

.bubble-accent {
    width: 140px;
    height: 140px;
    background: #fde68a;
    bottom: -20px;
    left: 35px;
    filter: blur(50px);
}

/* Filter Section (Enhanced) */
.filter-section-modern {
    background: white;
    border-radius: var(--radius-rounded-main);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f3f4f6;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input-modern {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s;
}

.search-input-modern:focus {
    outline: none;
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.filter-select-modern {
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    min-width: 160px;
}

.date-filter-modern {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 205px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.date-filter-modern:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.date-filter-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.date-filter-input {
    flex: 1;
    min-width: 110px;
    padding: 0.15rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.date-filter-input::-webkit-calendar-picker-indicator {
    display: none;
}

.date-filter-icon {
    color: #7c3aed;
    font-size: 1rem;
    pointer-events: none;
}

.search-btn-modern {
    background: #000000;
    color: #ffffff;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-btn-modern:hover {
    background: #1f2937;
}

/* Table Section (Modern) */
.table-container-modern {
    background: white;
    border-radius: var(--radius-rounded-main);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.table-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.table-title-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.table-title-group p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.table-stats {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Table overrides */
.table-container-modern .dataTables_wrapper .dataTables_length,
.table-container-modern .dataTables_wrapper .dataTables_filter,
.table-container-modern .dataTables_wrapper .dataTables_info {
    display: none;
}

.table-modern {
    margin-bottom: 0 !important;
}

.table-modern thead th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.table-modern tbody td {
    padding: 1.25rem 1.5rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6 !important;
    font-size: 0.875rem;
}

/* Pagination */
.pagination-container {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-top: 1px solid #f3f4f6;
}

.page-info {
    font-size: 0.8125rem;
    color: #6b7280;
}

.custom-pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
    background: #f9fafb;
}

/* Utilities */
.status-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
}

.status-badge-modern.published,
.status-badge-modern.active {
    background: #ecfdf5;
    color: #059669;
}

.status-badge-modern.draft,
.status-badge-modern.pending {
    background: #fffbeb;
    color: #d97706;
}

.status-badge-modern.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.btn-action-link {
    color: #7c3aed !important;
    text-decoration: none;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.8125rem;
    background: transparent !important;
    padding: 0 !important;
}

.btn-action-link:hover {
    text-decoration: underline;
}

.text-metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6366f1;
    font-weight: 600;
}

/* --- New Theme Components (Extracted from Call Flows) --- */

/* Hero Section */
.hero-section {
    background: #ffffff;
    border-radius: var(--radius-rounded-main);
    padding: 0.75rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-section:hover {
    transform: translateY(-8px);
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.hero-description {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-action-btn {
    background: #000000;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.hero-action-btn:hover {
    background: #1f2937;
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-illustration {
    width: calc(320px * (calc(var(--font-size-multiplier) - 0.0)));
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-illustration-icon {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-card {
    width: 112px;
    height: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    color: #7c3aed;
    box-shadow: 0 24px 50px rgba(124, 58, 237, 0.16);
    transform: rotate(-4deg);
    position: relative;
    z-index: 2;
}

.hero-icon-card i {
    font-size: 3.25rem;
}

.hero-icon-orbit {
    position: absolute;
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 50%;
}

.hero-icon-orbit-large {
    width: 190px;
    height: 190px;
}

.hero-icon-orbit-small {
    width: 150px;
    height: 150px;
    background: rgba(245, 243, 255, 0.65);
}

.metric-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-grid-modern.metric-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card-modern {
    min-width: 0;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-rounded-main);
}

.metric-card-modern .metric-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 1.05rem;
}

.metric-card-modern .metric-value {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-card-modern .metric-label {
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
}

.modern-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modern-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.modern-action:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
    color: #7c3aed;
}

.modern-action-danger {
    color: #dc2626;
}

.modern-action-danger:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.modern-table-pagination {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.modern-empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.modern-empty-state i {
    display: block;
    margin-bottom: 1rem;
    color: #c4b5fd;
    font-size: 3rem;
}

.modern-empty-state h3 {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
}

.modern-empty-state p {
    margin: 0.5rem 0 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.bubble-main {
    width: 220px;
    height: 220px;
    background: #fef08a;
    bottom: -60px;
    left: 5px;
}

.bubble-accent {
    width: 140px;
    height: 140px;
    background: #fde68a;
    bottom: -20px;
    left: 35px;
    filter: blur(50px);
}

/* Filter Section (Enhanced) */
.filter-section-modern {
    background: white;
    border-radius: var(--radius-rounded-main);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f3f4f6;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input-modern {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s;
}

.search-input-modern:focus {
    outline: none;
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.filter-select-modern {
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    min-width: 160px;
}

.search-btn-modern {
    background: #000000;
    color: #ffffff;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-btn-modern:hover {
    background: #1f2937;
}

/* Table Section (Modern) */
.table-container-modern {
    background: white;
    border-radius: var(--radius-rounded-main);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.table-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.table-title-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.table-title-group p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.table-stats {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Table overrides */
.table-container-modern .dataTables_wrapper .dataTables_length,
.table-container-modern .dataTables_wrapper .dataTables_filter,
.table-container-modern .dataTables_wrapper .dataTables_info {
    display: none;
}

.table-modern {}

.table-modern thead th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-modern tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Pagination */
.pagination-container {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-top: 1px solid #f3f4f6;
}

.page-info {
    font-size: 0.8125rem;
    color: #6b7280;
}

.custom-pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
    background: #f9fafb;
}

/* Utilities */
.status-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
}

.status-badge-modern.published,
.status-badge-modern.active {
    background: #ecfdf5;
    color: #059669;
}

.status-badge-modern.draft,
.status-badge-modern.pending {
    background: #fffbeb;
    color: #d97706;
}

.status-badge-modern.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.btn-action-link {
    text-decoration: none;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.8125rem;
}

.btn-action-link:hover {
    text-decoration: underline;
}

.text-metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6366f1;
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
}

.status-badge.published,
.status-badge.active {
    background: #ecfdf5;
    color: #059669;
}

.status-badge.draft,
.status-badge.pending {
    background: #fffbeb;
    color: #d97706;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Button Action */
.btn-action {
    padding: 0.3rem 1rem;
    border-radius: var(--radius-md);
    background: white;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-action:hover {
    opacity: 0.8;
}

.btn-action.btn-text-primary {
    color: var(--color-mrd);
}

.btn-action.btn-text-secondary {
    color: var(--color-gray-500);
}

.btn-action.btn-text-danger {
    color: var(--color-error);
}

.btn-action.btn-text-success {
    color: var(--color-success);
}

.btn-action.btn-text-warning {
    color: var(--color-warning);
}

.btn-action.btn-text-info {
    color: var(--color-info);
}

.btn-action.btn-text-light {
    color: var(--color-purple-light);
}

.btn-action.btn-text-dark {
    color: var(--color-purple-dark);
}

.btn-action.btn-action-primary {
    background: var(--gradient-dark);
    color: #ffffff;
}

.btn-action.btn-action-secondary {
    background: var(--color-gray-400);
    color: var(--color-black);
}

.btn-action.btn-action-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-action.btn-action-success {
    background: #059669;
    color: #ffffff;
}

.btn-action.btn-action-warning {
    background: #d97706;
    color: #ffffff;
}

.btn-action.btn-action-info {
    background: #06b6d4;
    color: #ffffff;
}

.btn-action.btn-action-light {
    background: #f9fafb;
    color: #374151;
}

.btn-action.btn-action-dark {
    background: #111827;
    color: #ffffff;
}

.btn-action.btn-action-outline {
    background: transparent;
    color: #374151;
    border-color: #e5e7eb;
}

.btn-action.btn-action-outline-primary {
    background: transparent;
    color: #000000;
    border-color: #000000;
}

.btn-action.btn-action-outline-danger {
    background: transparent;
    color: #dc2626;
    border-color: #dc2626;
}

.btn-action.btn-action-outline-success {
    background: transparent;
    color: #059669;
    border-color: #059669;
}

.btn-action.btn-action-outline-warning {
    background: transparent;
    color: #d97706;
    border-color: #d97706;
}

.btn-action.btn-action-outline-info {
    background: transparent;
    color: #06b6d4;
    border-color: #06b6d4;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.btn-action.btn-action-outline-light {
    background: transparent;
    color: #f9fafb;
    border-color: #f9fafb;
}

.btn-action.btn-action-outline-dark {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

/* Extension-specific styles */
.extension-number {
    font-size: 1rem;
    font-weight: 700;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.extension-number-badge {
    background: #f5f3ff;
    color: #7c3aed;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
}

.partner-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.partner-link:hover {
    text-decoration: underline;
}

.no-partner {
    color: #9ca3af;
    font-size: 0.875rem;
}

.secret-cell {
    cursor: pointer;
}

.secret-masked {
    font-family: monospace;
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #6b7280;
    font-size: 0.8125rem;
    border: 1px dashed #e5e7eb;
}

.secret-revealed {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde047;
}

.copy-icon {
    margin-left: 0.25rem;
    color: #9ca3af;
    font-size: 0.75rem;
    cursor: pointer;
}

.copy-icon:hover {
    color: #6b7280;
}

/* MRD Modal Styles */
.mrd-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.mrd-modal-backdrop.active {
    display: flex !important;
    backdrop-filter: blur(4px);
}

.mrd-modal-card {
    background: white !important;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10001;
    max-height: calc(90vh / var(--zoom-point));
    overflow-y: auto;
    display: block !important;
}

.mrd-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.mrd-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-mrd-primary {
    background: #7c3aed;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mrd-primary:hover {
    background: #6d28d9;
}

.btn-mrd-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #7c3aed;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #7c3aed;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* --- Dashboard Specific Styles --- */
.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.purple {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.activity-list {
    background: var(--color-transparent-white);
    border-radius: var(--radius-rounded-main);
    box-shadow: 0 8px 32px 0 rgba(156, 39, 176, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.activity-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(241, 245, 249, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

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

.activity-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-icon.call {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.activity-icon.workflow {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.activity-time {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- Dashboard Layout --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

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

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.dashboard-section-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: -0.5rem 0 0.5rem 0;
}

/* Dashboard Cards */
.dashboard-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-card {
    background: var(--color-transparent-white);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-rounded-main);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(156, 39, 176, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 40px 0 rgba(156, 39, 176, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.dashboard-card-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.dashboard-card-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.dashboard-card-primary .dashboard-card-title,
.dashboard-card-primary .dashboard-card-description {
    color: white;
}

.dashboard-card-compact {
    padding: 1rem 1.25rem;
}

.dashboard-card-icon-wrapper {
    flex-shrink: 0;
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-card-compact .dashboard-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.dashboard-card-icon.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dashboard-card-icon.teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.dashboard-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dashboard-card-icon.purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.dashboard-card-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.dashboard-card-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.dashboard-card-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dashboard-card-icon.orange-light {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.dashboard-card-icon.purple-light {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.dashboard-card-icon.blue-light {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.dashboard-card-icon.teal-light {
    background: rgba(45, 212, 191, 0.1);
    color: #2dd4bf;
}

.dashboard-card-content {
    flex: 1;
}

.dashboard-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.dashboard-card-compact .dashboard-card-title {
    margin: 0;
}

.dashboard-card-description {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.dashboard-card-arrow {
    font-size: 1.25rem;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dashboard-card-arrow-small {
    font-size: 1rem;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dashboard-card:hover .dashboard-card-arrow,
.dashboard-card:hover .dashboard-card-arrow-small {
    color: #7c3aed;
    transform: translateX(4px);
}

.dashboard-card-primary:hover .dashboard-card-arrow {
    color: white;
}

/* Get Started Card Specific Styles */
.dashboard-card-get-started {
    cursor: default;
    padding: 1.5rem;
}

.dashboard-card-get-started:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 40px 0 rgba(156, 39, 176, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.dashboard-card-get-started .dashboard-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-get-started-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.dashboard-get-started-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.dashboard-get-started-btn i {
    font-size: 0.875rem;
}

/* ============================================
   Voice Agents Page Styles
   ============================================ */

/* Hero Illustration - Voice Agent Emoji */
.voice-agent-emoji {
    width: 320px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Hero Illustration Image Styling */
.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration img {
    background: transparent;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Try blend mode fallback for JPG images with white background.
   Note: this visually blends white areas with the hero background, but
   doesn't create true alpha transparency. For a perfect result convert
   the JPEG to a PNG with transparency. */
.hero-illustration img.blend-remove-white {
    mix-blend-mode: multiply;
    -webkit-mask-image: none;
}
/* Alert Success Modern */
.alert-success-modern {
    background: #dcfce7;
    color: #166534;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #10b981;
}

/* Agent Name Primary */
.agent-name-primary {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

/* Agent Description */
.agent-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Language Badge */
.language-badge {
    background: #f0f4f8;
    color: #475569;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Status Badge - Active */
.status-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

/* Status Badge - Inactive */
.status-badge-inactive {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

/* Created Date */
.created-date {
    font-size: 0.8rem;
    color: #64748b;
}

/* Actions Cell */
.actions-cell {
    text-align: right;
}

/* Actions Group */
.actions-group {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    align-items: center;
}

/* Delete Form */
.delete-form {
    display: inline;
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state-modern .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-modern h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Table Responsive */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.table thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #1f2937;
}

.hyperlink-header {
    color: var(--color-mrd);
    text-decoration: none;
}

.hyperlink-header:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .metric-grid-modern,
    .metric-grid-modern.metric-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-illustration-icon {
        width: 220px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 1.5rem;
    }

    .hero-illustration-icon {
        display: none;
    }

    .metric-grid-modern,
    .metric-grid-modern.metric-grid-three {
        grid-template-columns: 1fr;
    }

    .filter-form-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-select-modern,
    .date-filter-modern,
    .search-btn-modern {
        width: 100%;
    }
}
