/* ----------------------------------------------------
   Proof of Pulse (PoP) Community Dashboard CSS Extensions
   Futuristic Glassmorphic Neon Space Theme
   ---------------------------------------------------- */

/* Login Portal Wrapper */
.login-portal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(3, 2, 9, 0.85);
    backdrop-filter: blur(15px);
    transition: opacity 0.5s ease, visibility 0.5s;
}

.login-portal-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: rgba(12, 8, 28, 0.75);
    border: 1px solid rgba(189, 0, 255, 0.25);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 32px 0 rgba(189, 0, 255, 0.15),
                inset 0 0 20px rgba(189, 0, 255, 0.05);
    backdrop-filter: blur(8px);
    text-align: center;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.brand-logo {
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.login-header h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.login-header .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Input Fields Style */
.input-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.input-group label i {
    margin-right: 4px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(189, 0, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    padding: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(189, 0, 255, 0.4);
}

.btn-login:hover {
    filter: brightness(1.2);
    box-shadow: 0 6px 20px rgba(189, 0, 255, 0.6);
    transform: translateY(-2px);
}

.error-message {
    background: rgba(255, 0, 100, 0.1);
    border: 1px solid var(--neon-pink);
    color: #ffb3d1;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.3s ease;
}

.error-message.hidden {
    display: none;
}

.login-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.cred-hints {
    display: flex;
    justify-content: space-around;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
    gap: 8px;
}

/* Sidebar Logo Sync */
.sidebar-logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
}

.logo-box {
    display: flex;
    gap: 6px;
}

.mini-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.15);
}

.sidebar-logo-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #d000ff, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.sidebar-logo-text span {
    font-size: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}
.dashboard-grid-container {
    display: block;
    min-height: 100vh;
    width: 100%;
}

.dashboard-grid-container.hidden {
    display: none !important;
}

/* Profile Widget inside Sidebar */
.user-profile-widget {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    padding: 2px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.avatar-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #090616;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--neon-cyan);
}

.user-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.badge-role {
    font-size: 0.65rem;
    padding: 1px 6px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
    border-radius: 4px;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
}

.sidebar-footer-buttons {
    margin-top: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-sidebar-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sidebar-back:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.4);
    color: var(--neon-cyan);
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 0, 100, 0.06);
    border: 1px solid rgba(255, 0, 100, 0.2);
    color: #ff9cbd;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sidebar-logout:hover {
    background: rgba(255, 0, 100, 0.12);
    border-color: var(--neon-pink);
    color: #fff;
}

/* Tabs Display */
.community-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.community-tab-content.active {
    display: block;
    opacity: 1;
}

/* CARD BLUR BASE STYLE */
.card-blur {
    background: rgba(9, 6, 22, 0.55);
    border: 1px solid rgba(189, 0, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* VIDEO HUB GRID */
.video-hub-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 1.25rem;
    align-items: start;
}

.video-room-container {
    display: flex;
    flex-direction: column;
    min-height: 580px;
}

.video-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.room-details h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 4px;
}

.badge-live {
    font-family: 'Orbitron', sans-serif;
    background: rgba(255, 0, 100, 0.15);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 4px;
    animation: glow-pulse 1.5s infinite;
}

.call-timer {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* VIDEO CALL BOXES GRID */
.video-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    flex-grow: 1;
    margin-bottom: 1rem;
    min-height: 400px;
}

.video-stream-box {
    background: #06040f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.video-stream-box.active-speaker {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.video-stream-box.muted .mic-status {
    color: var(--neon-pink) !important;
}

.video-stream-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.3), rgba(0, 243, 255, 0.3));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite;
}

.video-stream-box.host .stream-avatar {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
}

.stream-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-indicators {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.stream-indicators span {
    background: rgba(0, 0, 0, 0.7);
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-indicators .mic-status {
    color: var(--neon-green);
}

.stream-indicators .geo-tag-indicator {
    background: rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
    border-radius: 4px;
    width: auto;
    padding: 0 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
}

/* Call Controls */
.video-controls-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.control-btn.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.control-btn.btn-danger {
    border-radius: 20px;
    width: auto;
    padding: 0 20px;
    background: rgba(255, 0, 100, 0.1);
    border-color: rgba(255, 0, 100, 0.3);
    color: #ff9cbd;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    gap: 8px;
}

.control-btn.btn-danger:hover {
    background: rgba(255, 0, 100, 0.8);
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.4);
}

/* HIGH-TECH GEOLOCATION MAP */
.geo-map-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.card-header-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.card-header-with-icon h4 {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    background: rgba(3, 2, 9, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.world-map {
    width: 100%;
    height: auto;
    display: block;
    background: radial-gradient(circle, rgba(12,8,28,0.8) 0%, rgba(3,2,9,0.95) 100%);
}

.map-land {
    fill: rgba(189, 0, 255, 0.05);
    stroke: rgba(189, 0, 255, 0.18);
    stroke-width: 1px;
}

.map-grid-line {
    stroke: rgba(255, 255, 255, 0.02);
    stroke-width: 1px;
}

.map-marker {
    animation: marker-glow 2s infinite ease-in-out;
}

.map-marker-pulse {
    animation: marker-wave 2s infinite linear;
    transform-origin: center;
}

.map-overlay-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    gap: 15px;
    pointer-events: none;
}

.map-overlay-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.map-overlay-stats .stat-item .label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.map-overlay-stats .stat-item .value {
    font-size: 0.75rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

/* TELEMETRY LOCATION LOG FEED */
.live-event-log-card {
    padding: 1.25rem;
    margin-bottom: 0;
}

.event-log-feed {
    height: 180px;
    overflow-y: auto;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.empty-log-msg {
    color: var(--text-muted);
    text-align: center;
    padding-top: 3rem;
    font-size: 0.8rem;
}

.log-entry {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--neon-cyan);
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    line-height: 1.35;
    animation: slideIn 0.3s ease-out;
}

.log-entry.disconnect {
    border-left-color: var(--neon-pink);
}

.log-entry.broadcast {
    border-left-color: var(--neon-yellow);
}

.log-entry .time {
    color: var(--neon-purple);
    font-weight: bold;
    margin-right: 6px;
}

.log-entry .location {
    color: var(--neon-cyan);
    font-weight: 500;
}

/* DIRECTORY TABLE */
.directory-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding-left: 2.2rem !important;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.directory-table th {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.directory-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.directory-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.status-dot.idle {
    background: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow);
}

.status-dot.offline {
    background: #666;
}

.btn-actions-cell {
    display: flex;
    gap: 6px;
}

.action-icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.action-icon-btn:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.action-icon-btn.delete-btn:hover {
    background: rgba(255, 0, 100, 0.08);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

/* CALL & GEO HISTORY LOGS */
.logs-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.25rem;
    align-items: start;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header-row h4 {
    font-family: 'Orbitron', sans-serif;
}

.logs-search-row {
    margin-bottom: 1rem;
}

.logs-search-row input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.call-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
}

.call-history-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(189, 0, 255, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(189, 0, 255, 0.15);
}

.call-history-item.active {
    background: rgba(189, 0, 255, 0.06);
    border-color: rgba(189, 0, 255, 0.4);
    border-left-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.1);
}

.chi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.chi-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.chi-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chi-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.empty-details-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-details-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-details-state p {
    font-size: 0.9rem;
    max-width: 280px;
}

/* Call Detail View Layout */
.cd-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cd-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cd-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cd-attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 1.5rem;
}

.cd-attendee-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cda-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

.cda-info {
    display: flex;
    flex-direction: column;
}

.cda-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.cda-loc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.cd-logs-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.cd-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}

.cd-logs-table th {
    padding: 8px 10px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}

.cd-logs-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* MARKETING BROADCASTER */
.broadcast-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.broadcast-creator-card {
    position: relative;
    min-height: 480px;
}

.broadcast-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 6, 22, 0.95);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lock-box {
    text-align: center;
    max-width: 320px;
    padding: 2rem;
}

.lock-box i {
    font-size: 3rem;
    color: var(--neon-pink);
    margin-bottom: 1rem;
    animation: glow-pulse 1.5s infinite;
}

.lock-box h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.lock-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

/* Checkbox Styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-primary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 1px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(189, 0, 255, 0.3);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--neon-purple);
    border-color: var(--neon-purple);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.broadcast-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
}

.broadcast-log-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 12px;
}

.bli-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.bli-title {
    font-weight: bold;
    color: var(--neon-cyan);
    font-size: 0.85rem;
}

.bli-date {
    color: var(--text-muted);
}

.bli-body {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.bli-channels {
    display: flex;
    gap: 6px;
}

.bli-channels span {
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-muted);
}

/* INTERACTIVE EVENTS CALENDAR */
.calendar-layout-container {
    padding: 1.5rem;
}

.calendar-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-selector h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    min-width: 140px;
    text-align: center;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.day-name {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-column: span 7;
}

.calendar-day-cell {
    min-height: 85px;
    padding: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day-cell:nth-child(7n) {
    border-right: none;
}

.calendar-day-cell:hover {
    background: rgba(255, 255, 255, 0.01);
}

.calendar-day-cell.other-month {
    opacity: 0.25;
}

.calendar-day-cell.today {
    background: rgba(0, 243, 255, 0.02);
}

.calendar-day-cell.today .day-number {
    color: var(--neon-cyan);
    font-weight: bold;
    border-bottom: 1px solid var(--neon-cyan);
}

.day-number {
    font-size: 0.75rem;
    align-self: flex-start;
    padding-bottom: 2px;
}

.cell-events-list {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    overflow-y: auto;
}

.calendar-event-tag {
    font-size: 0.65rem;
    padding: 2px 5px;
    background: rgba(189, 0, 255, 0.12);
    border: 1px solid rgba(189, 0, 255, 0.3);
    color: #df9cff;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-tag.video-call {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.3);
    color: #9cffff;
}

.calendar-event-tag.marketing {
    background: rgba(255, 0, 100, 0.12);
    border-color: rgba(255, 0, 100, 0.3);
    color: #ff9cbd;
}

/* CHAT & AI COPILOT LAYOUT */
.chat-layout-grid {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 1.25rem;
    height: 580px;
    align-items: stretch;
}

.chat-channels-card {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.channels-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.channels-header h4 {
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-muted);
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.channel-btn.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 500;
}

.chat-feed-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.chat-feed-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.chat-feed-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-feed-header .subtitle {
    font-size: 0.75rem;
}

.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-primary);
}

.chat-msg-box {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.cmb-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    margin-bottom: 3px;
}

.cmb-sender {
    font-weight: 600;
}

.cmb-time {
    color: var(--text-muted);
}

.cmb-body {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0 12px 12px 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-msg-row.me {
    flex-direction: row-reverse;
}

.chat-msg-row.me .chat-msg-box {
    align-items: flex-end;
}

.chat-msg-row.me .cmb-header {
    flex-direction: row-reverse;
}

.chat-msg-row.me .cmb-body {
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.2);
    border-radius: 12px 0 12px 12px;
    color: #fff;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
}

.btn-chat-send {
    background: var(--neon-blue);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.btn-chat-send:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.4);
}

/* AI COPILOT PANEL */
.ai-copilot-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-left: 1px solid rgba(189, 0, 255, 0.15);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.ai-header h4 {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.ai-prompts-hints {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.ai-hint-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.7rem;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-hint-btn strong {
    color: var(--neon-pink);
    display: block;
}

.ai-hint-btn:hover {
    background: rgba(189, 0, 255, 0.05);
    border-color: rgba(189, 0, 255, 0.25);
}

.ai-chat-output {
    flex-grow: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-message {
    padding: 6px 10px;
    border-radius: 6px;
}

.ai-message.system {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #666;
    color: var(--text-muted);
}

.ai-message.user {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--neon-cyan);
}

.ai-message.response {
    background: rgba(189, 0, 255, 0.05);
    border-left: 2px solid var(--neon-purple);
    color: #fff;
}

.ai-input-bar {
    display: flex;
    gap: 6px;
}

.btn-ai-send {
    background: var(--neon-pink);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.btn-ai-send:hover {
    box-shadow: 0 0 10px rgba(255, 0, 153, 0.4);
    filter: brightness(1.2);
}

/* DIALOG MODAL BASE */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 2, 9, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.modal-card {
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(189, 0, 255, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.15);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--neon-pink);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
}

/* BROADCAST TRANSMISSION CARD */
.broadcast-progress-card {
    max-width: 450px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.progress-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    animation: fadeIn 0.3s;
}

.progress-step-item.pending {
    color: rgba(255, 255, 255, 0.2);
}

.progress-step-item.active {
    color: var(--neon-cyan);
}

.progress-step-item.done {
    color: var(--neon-green);
}

.progress-step-item.done i {
    color: var(--neon-green);
}

.progress-step-item i {
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 153, 0.3);
        opacity: 0.9;
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 153, 0.6);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 153, 0.3);
        opacity: 0.9;
    }
}

@keyframes marker-glow {
    0% {
        fill: rgba(0, 243, 255, 0.8);
    }
    50% {
        fill: rgba(0, 243, 255, 1);
        filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.8));
    }
    100% {
        fill: rgba(0, 243, 255, 0.8);
    }
}

@keyframes marker-wave {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(189, 0, 255, 0.3);
}
