@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.dvw-scope { 
    font-family: 'DM Sans', sans-serif; 
    color: #1a1a1a; 
    border-radius: 8px; 
    margin: 5px 20px 5px 2px; 
    padding: 20px 20px; 
    background-color: #f9f9f9; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dvw-scope .card { 
    border: 1px solid #9a17ff !important; 
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.04); 
    background: #fff; 
    border-radius: 8px;
}

.pdemio-main-container {
    border: 1px solid #9a17ff; 
    border-radius: 8px; 
    padding: 24px; 
    margin-top: 20px; 
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.04); 
    background: #fff;
}

/* Stat Icons */
.dvw-scope .stat-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 15px; 
    background: #f8f0ff; 
    color: #9a17ff; 
    flex-shrink: 0; 
}

.dvw-scope .stat-icon i { 
    font-size: 20px; 
}

/* Badge Styling */
.pdemio-badge { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase; 
    border: 1px solid; 
    line-height: 1.5; 
}

.pdemio-badge.upcoming { 
    background-color: #e8f5e9; 
    color: #2e7d32; 
    border-color: #a5d6a7; 
}

.pdemio-badge.live { 
    background-color: #fff1f2; 
    color: #e11d48; 
    border-color: #e1a4b2; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding-left: 10px; 
}

.pdemio-badge.live::before {
    content: "";
    width: 8px; 
    height: 8px; 
    background-color: #e11d48; 
    border-radius: 50%; 
    display: inline-block; 
    animation: pulse-dot 1.5s infinite;
}

.pdemio-badge.finished { 
    background-color: #f3e5f5; 
    color: #7b1fa2; 
    border-color: #ce93d8; 
}

/* Modern Scale Pulse Animation */
@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(225, 29, 72, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* Table Formatting - No Vertical Borders */
.pdemio-table-header { 
    background-color: #9a17ff !important; 
    color: #fff !important; 
    padding: 12px 16px !important; 
    text-align: left !important; 
    font-weight: 600 !important; 
    font-size: 16px; 
    border: none !important; 
    white-space: nowrap; 
}

.pdemio-table-cell {  
    border-left: none !important; 
    border-right: none !important; 
    border-bottom: 0px solid #eee !important; 
    padding: 12px 16px !important;
}

/* Responsive Column Control */
.col-webinar { width: 100%; min-width: 250px; }
.col-fixed { width: 1%; white-space: nowrap; }

/* Stripe Logic */
.pdemio-table-row:nth-child(even) td { background-color: #f8f5fb !important; }
.pdemio-table-row:last-child .pdemio-table-cell { border-bottom: 1px solid #ddd !important; }

.react-icon-box { 
    width: 40px; 
    height: 40px; 
    border-radius: 8px; 
    background-color: #f8f0ff; 
    color: #9a17ff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    flex-shrink: 0; 
}

.dvw-filter-row { 
    display: flex !important; 
    align-items: center; 
    gap: 15px; 
    width: 100%; 
    margin-bottom: 24px; 
}

.dvw-scope .row > * { margin-top: 0px !important; }

.dvw-next-event {
    border: 1.5px solid #9a17ff !important;
    background: linear-gradient(90deg, #ffffff 0%, #fcfaff 100%) !important;
    margin-bottom: 24px;
    padding: 30px !important;
}

.dvw-highlight-grid {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.dvw-info-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.dvw-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Webinar Title Link Styles */
.dvw-scope .webinar-title-link {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
} 

.dvw-scope .webinar-title-link h2 {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dvw-scope .webinar-title-link:hover {
    color: #f454cd !important;
    text-decoration: none;
}

.dvw-scope .webinar-title-link:hover h2 {
    color: #f454cd !important;
}

/* Dropdown Container */
.pdemio-actions-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

/* The Menu - Positioned closer */
.pdemio-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    z-index: 1000;
    min-width: 160px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 6px 0;
}

/* Hover Trigger */
.pdemio-actions-dropdown:hover .pdemio-dropdown-menu {
    display: block;
}

/* Action items ensure white background */
.pdemio-dropdown-item {
    background: #fff !important;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #444;
    transition: 0.2s;
}

.pdemio-dropdown-item:hover {
    background-color: #f8f0ff !important;
    color: #9a17ff;
}

.pdemio-dropdown-item.text-danger:hover {
    background-color: #fff1f2;
    color: #e11d48 !important;
}

/* The "Three Dots" Button */
.pdemio-btn-dots {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #666;
    transition: all 0.2s;
}

.pdemio-btn-dots:hover {
    background-color: #eee;
    color: #1a1a1a;
}

/* Disabled state - Force gray colors and hide cursor */
.pdemio-dropdown-item:disabled,
.pdemio-dropdown-item[disabled] {
    background: #fafafa !important;
    color: #bbb !important;
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.pdemio-dropdown-item:disabled i {
    color: #bbb !important;
}


.pdemio-details-scope { font-family: 'DM Sans', sans-serif; color: #1a1a1a; border-radius: 8px; margin: 5px 20px 5px 2px; padding: 20px 20px; background-color: #f9f9f9; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);}

/* GLOBAL CARD FIX */
.pdemio-details-scope .card { 
    background: #fff !important; 
    border: 1.5px solid #9a17ff !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 15px rgba(154, 23, 255, 0.08) !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    height: 100%; /* Force cards to fill the row height */
}

/* TABS STYLING */
.pdemio-details-scope .nav-tabs { border-bottom: 1px solid #eee; background: #fff; flex-shrink: 0; }
.pdemio-details-scope .nav-tabs .nav-link { border: none; color: #666; font-weight: 600; padding: 15px 25px; transition: 0.3s; font-size: 15px; }
.pdemio-details-scope .nav-tabs .nav-link.active { color: #9a17ff; border-bottom: 3px solid #9a17ff; background: transparent; }

/* THE SYNC FIX: Fixed height for scrollable areas in BOTH containers */
/* We set this to a lower value like 300px so they look shorter and aligned */
.dvw-scroll-area { 
    flex: 1 1 auto; /* Grow to fill space, but don't force expansion */
    height: 324px; 
    overflow-y: auto !important; /* Allow vertical dropdown pop */
    overflow-x: auto !important; /* Allow horizontal dropdown pop */
    width: 100%;
    background: #fff;
    position: relative;
}

/* Table Formatting */
.pdemio-details-scope table { 
    width: 100% !important; 
    margin: 0 !important; 
    border-collapse: separate !important; 
    border-spacing: 0; 
    table-layout: fixed; 
    box-shadow:none !important;
}

.pdemio-det-table-cell { 
    vertical-align: middle; 
    text-align: left !important; 
    padding: 14px 16px !important; 
    font-size: 13px; 
    color: var(--bs-secondary-color) !important;
    border: 0 !important;
}
.pdemio-det-table-row:nth-child(even) td { background-color: #fcfaff !important; }

/* Sticky Header */
.pdemio-details-scope thead th { 
    position: sticky; 
    top: 0; 
    z-index: 10; 
    background: #f8f9fa; 
    border-bottom: 1px solid #dee2e6 !important; 
    padding: 12px 16px !important; 
    font-size: 12px; 
    text-transform: uppercase; 
    color: #6c757d; 
    text-align: left !important;
}

.text-purple { color: #8520f2 !important; }
.email-link { color: #9a17ff; text-decoration: underline !important; font-weight: 500; transition: 0.2s; }
/* .email-link:hover { color: #f454cd; text-decoration: underline; } */
.pdemio-schedule-meta { font-size: 14px; display: flex; gap: 20px; color: #666; }


/* Container Spacing */
.header-card {
    border-left: 5px solid #9a17ff !important; /* Bold accent border */
    padding: 2.5rem !important;
}



/* Button Refinement */
.btn-purple-gradient {
    background: linear-gradient(135deg, #9a17ff 0%, #f454cd 100%) !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-purple-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(154, 23, 255, 0.3) !important;
}

/* Metadata Bar */
.pdemio-schedule-meta-bar {
    background: #fcfaff;
    border-radius: 12px;
    padding: 12px 20px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 25px;
}

.meta-divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    align-self: center;
}
/* Modern Scale Pulse Animation */
@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(225, 29, 72, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.pdemio-details-scope .card > :first-child {
    border-top-left-radius: 11px !important;
    border-top-right-radius: 11px !important;
}

/* FIX THE BOTTOM CORNER GAPS: Apply radius to the bottom child */
.pdemio-details-scope .card > :last-child {
    border-bottom-left-radius: 11px !important;
    border-bottom-right-radius: 11px !important;
}