/* Event Registration Dashboard Styles - Modern Clean Lectrix */
.erd-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333333;
    min-height: 100vh;
}

.erd-dashboard h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2.5em;
}

/* Header styles */
/* Header styles */
.erd-header {
    background-color: #2c3e50;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.erd-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.erd-logo {
    height: 50px;
    width: auto;
}

.erd-header-title {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.erd-dashboard > h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2em;
}

/* Loading */
.erd-loading {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #41c0be;
}

/* Sections */
.erd-section {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.erd-section-title {
    font-size: 1.6em;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #41c0be;
    text-align: left;
    font-weight: 700;
}

/* Stats grid */
.erd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.erd-stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.erd-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.erd-stat-value {
    font-size: 2.8em;
    font-weight: 700;
    color: #41c0be;
    margin-bottom: 10px;
}

.erd-stat-label {
    color: #6c757d;
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart containers */
.erd-chart-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    height: 400px;
}

.erd-chart-wrapper {
    position: relative;
    height: calc(100% - 50px);
}

.erd-chart-container canvas {
    max-height: 100%;
}

.erd-chart-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Two column layout */
.erd-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Sessions grid */
.erd-sessions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Sessions list */
.erd-sessions-list {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 400px;
    overflow-y: auto;
}

.erd-session-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.erd-session-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.erd-session-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 1.1em;
}

.erd-session-stats {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.erd-interest-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.erd-interest-fill {
    height: 100%;
    background-color: #41c0be;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Table controls */
.erd-table-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.erd-button {
    background-color: #ffffff;
    color: #41c0be;
    border: 2px solid #41c0be;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.erd-button:hover {
    background-color: #41c0be;
    color: #ffffff;
    transform: translateY(-1px);
}

.erd-button.primary {
    background-color: #41c0be;
    color: #ffffff;
}

.erd-button.primary:hover {
    background-color: #3db6c6;
    border-color: #3db6c6;
}

/* Table container */
.erd-table-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

/* DataTables customization */
.dataTables_wrapper {
    width: 100%;
    color: #333333;
}

.dataTables_filter input {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: 10px;
    background-color: #f8f9fa;
    color: #333333;
}

.dataTables_filter input:focus {
    border-color: #41c0be;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 208, 225, 0.1);
}

.dataTables_length select {
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #333333;
}

/* DataTables buttons */
.dt-buttons {
    margin-bottom: 10px;
}

.dt-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    margin-right: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
    font-weight: 500;
}

.dt-button:hover {
    background-color: #e9ecef;
    border-color: #41c0be;
}

/* Table styling */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    color: #333333;
}

table.dataTable thead th {
    background-color: #2c3e50;
    border-bottom: none;
    font-weight: 600;
    padding: 15px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

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

table.dataTable tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

/* Pagination styling */
.dataTables_paginate .paginate_button {
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333 !important;
    font-weight: 500;
}

.dataTables_paginate .paginate_button.current {
    background-color: #41c0be !important;
    color: #ffffff !important;
    border-color: #41c0be;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #f8f9fa !important;
    border-color: #41c0be;
    color: #41c0be !important;
}

/* Error styling */
.erd-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .erd-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .erd-logo {
        height: 40px;
    }

    .erd-header-title {
        font-size: 1.4em;
    }

    .erd-two-column,
    .erd-sessions-grid {
        grid-template-columns: 1fr;
    }

    .erd-chart-container {
        height: 300px;
    }

    .erd-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .erd-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .erd-table-controls {
        justify-content: center;
    }

    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: center;
    }

    .dataTables_wrapper .dataTables_length {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .erd-header-title {
        font-size: 1.2em;
    }

    .erd-logo {
        height: 35px;
    }
}

/* Scrollbar styling */
.erd-sessions-list::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.erd-sessions-list::-webkit-scrollbar-track,
.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.erd-sessions-list::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.erd-sessions-list::-webkit-scrollbar-thumb:hover,
.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background: #41c0be;
}

/* Loading animation */
.erd-loading:after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(77, 208, 225, 0);
        text-shadow:
            .25em 0 0 rgba(77, 208, 225, 0),
            .5em 0 0 rgba(77, 208, 225, 0);
    }
    40% {
        color: #41c0be;
        text-shadow:
            .25em 0 0 rgba(77, 208, 225, 0),
            .5em 0 0 rgba(77, 208, 225, 0);
    }
    60% {
        text-shadow:
            .25em 0 0 #41c0be,
            .5em 0 0 rgba(77, 208, 225, 0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 #41c0be,
            .5em 0 0 #41c0be;
    }
}

/* Session filter styles */
.erd-session-filters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.erd-session-filters p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1em;
}

.erd-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.erd-session-filter-btn {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background: #ffffff;
    color: #333333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.erd-session-filter-btn:hover {
    background-color: #f8f9fa;
    border-color: #41c0be;
    color: #41c0be;
}

.erd-session-filter-btn.active {
    background-color: #41c0be;
    color: #ffffff;
    border-color: #41c0be;
}

/* Customer-specific styles */
.erd-customer-banner {
    background-color: #2c3e50;
    color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.erd-customer-banner p {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.erd-customer-banner strong {
    color: #41c0be;
}

/* Fixed filter bar at bottom - Modern style */
.erd-fixed-filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    border-top: 3px solid #41c0be;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.erd-filter-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.erd-filter-label {
    font-weight: 600;
    white-space: nowrap;
    color: #ffffff;
    flex-shrink: 0;
    font-size: 1em;
}

.erd-fixed-filter-bar .erd-filter-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Custom scrollbar for filter buttons */
.erd-fixed-filter-bar .erd-filter-buttons::-webkit-scrollbar {
    height: 6px;
}

.erd-fixed-filter-bar .erd-filter-buttons::-webkit-scrollbar-track {
    background: #1a2530;
    border-radius: 3px;
}

.erd-fixed-filter-bar .erd-filter-buttons::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

.erd-fixed-filter-bar .erd-filter-buttons::-webkit-scrollbar-thumb:hover {
    background: #41c0be;
}

.erd-fixed-filter-bar .erd-session-filter-btn {
    padding: 8px 16px;
    border: 2px solid #41c0be;
    background: transparent;
    color: #41c0be;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;

    /* Text truncation with ellipsis */
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erd-fixed-filter-bar .erd-session-filter-btn:hover {
    background-color: rgba(77, 208, 225, 0.1);
}

.erd-fixed-filter-bar .erd-session-filter-btn.active {
    background-color: #41c0be;
    color: #ffffff;
    border-color: #41c0be;
}

/* Tooltip styling */
.erd-fixed-filter-bar .erd-session-filter-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.erd-fixed-filter-bar .erd-session-filter-btn[title]:hover {
    position: relative;
}

.erd-fixed-filter-bar .erd-session-filter-btn[title]:hover::after {
    opacity: 1;
}

/* Q&A specific styles */
#qa-table_wrapper {
    margin-top: 20px;
}

#qa-table td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#qa-table td:nth-child(4),
#qa-table td:nth-child(5) {
    max-width: 400px;
}

#qa-table_wrapper .dataTables_info {
    margin-top: 10px;
    color: #6c757d;
}

/* Q&A answer status */
#qa-table td:nth-child(6) {
    font-weight: 600;
}

#qa-table tr td:nth-child(6):contains("Yes") {
    color: #48bb78;
}

#qa-table tr td:nth-child(6):contains("No") {
    color: #f56565;
}

/* Print styles */
@media print {
    .erd-button,
    .dt-buttons,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .erd-fixed-filter-bar {
        display: none !important;
    }

    .erd-section {
        page-break-inside: avoid;
        box-shadow: none;
    }
}

/* Mobile adjustments for bottom filter bar */
@media screen and (max-width: 782px) {
    .erd-filter-bar-content {
        padding: 10px 15px;
        gap: 10px;
    }

    .erd-filter-label {
        font-size: 0.9em;
    }

    .erd-fixed-filter-bar .erd-session-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
        max-width: 200px;
    }
}

/* Extra narrow screens */
@media screen and (max-width: 480px) {
    .erd-filter-bar-content {
        padding: 8px 10px;
    }

    .erd-fixed-filter-bar .erd-session-filter-btn {
        padding: 5px 10px;
        font-size: 12px;
        max-width: 150px;
    }
}

/* Ensure content doesn't get hidden behind the bottom filter bar */
body {
    padding-bottom: 70px; /* Will be dynamically adjusted by JavaScript */
}