/* Main Container */
.convergence365-agenda-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    --color-primary: #000000;
    --color-secondary: #FFFFFF;
    --color-text: #7A7A7A;
    --color-accent: #01A2ED;
}

/* Tabs */
.agenda-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 3px solid #e9ecef;
    overflow-x: auto;
    padding-bottom: 0;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.tab-button:hover {
    color: var(--color-accent);
}

.tab-button.active {
    color: var(--color-secondary);
    background: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Filters */
.agenda-filters {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
}

.agenda-search-input,
.agenda-filter-select {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 0;
    font-size: 15px;
    transition: border-color 0.2s;
}

.agenda-search-input:focus,
.agenda-filter-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Tab Content */
.agenda-content {
    position: relative;
    min-height: 400px;
}

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

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

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

/* Date Sections */
.date-section {
    margin-bottom: 50px;
}

.date-header {
    font-size: 28px;
    color: var(--color-primary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-accent);
    font-weight: 700;
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Session Cards */
.agenda-session-card {
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 0;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 8px 8px 0 rgba(1, 162, 237, 0.3);
}

.agenda-session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.agenda-session-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 rgba(1, 162, 237, 0.4);
    border-color: var(--color-primary);
}

.agenda-session-card:hover::before {
    transform: scaleY(1);
}

.session-time {
    margin-bottom: 12px;
}

.time-badge {
    display: inline-block;
    background: rgba(1, 162, 237, 0.1);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.session-title {
    font-size: 19px;
    color: var(--color-primary);
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 600;
}

.session-speakers,
.session-room {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-speakers .icon,
.session-room .icon {
    opacity: 0.7;
}

.session-excerpt {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.session-details-btn {
    background: var(--color-accent);
    color: var(--color-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}

.session-details-btn:hover {
    background: var(--color-primary);
}

/* Modal Styles */
.session-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.session-modal {
    background: white;
    border-radius: 0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    z-index: 2147483647;
    animation: slideUp 0.3s ease;
    box-shadow: 12px 12px 0 rgba(1, 162, 237, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 0;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #e9ecef;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header h2 {
    margin: 0 60px 20px 0;
    font-size: 32px;
    color: var(--color-primary);
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 30px;
}

.modal-speakers-section {
    border-top: 2px solid #e9ecef;
    padding-top: 30px;
}

.modal-speakers-section h3 {
    font-size: 22px;
    margin: 0 0 12px 0;
    color: var(--color-primary);
}

.speaker-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 0;
    margin-bottom: 10px;
}

.speaker-photo {
    width: 70px;
    height: 70px;
    border-radius: 0;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 3px 3px 0 rgba(1, 162, 237, 0.3);
    flex-shrink: 0;
}

.speaker-photo-placeholder {
    width: 70px;
    height: 70px;
    background: #e9ecef;
    border: 2px solid var(--color-primary);
    flex-shrink: 0;
}

.speaker-info {
    flex: 1;
}

.speaker-name-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.speaker-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 600;
}

.speaker-info .speaker-title {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 500;
}

.speaker-info .speaker-organization {
    font-size: 12px;
    color: var(--color-text);
    margin-bottom: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.speaker-info .speaker-organization .microsoft-logo {
    height: 12px;
    width: auto;
    display: block;
    flex-shrink: 0;
    margin-bottom: 3px;
}

.speaker-info .speaker-bio {
    font-size: 13px;
    line-height: 1.5;
    color: #495057;
}

.speaker-other-sessions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.speaker-other-sessions-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.speaker-other-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.speaker-other-session-link {
    font-size: 12px;
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.speaker-other-session-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Error State */
.agenda-error {
    padding: 40px;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .agenda-tabs {
        gap: 5px;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .agenda-filters {
        grid-template-columns: 1fr;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .session-modal {
        padding: 25px;
    }
    
    .modal-header h2 {
        font-size: 24px;
        margin-right: 45px;
    }
    
    .speaker-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Loading State */
.agenda-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text);
    font-size: 18px;
}

.agenda-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

/* Tab Loading State */
.tab-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text);
    font-size: 18px;
}

.loading-spinner {
    display: inline-block;
    position: relative;
    padding-left: 35px;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}