/* UI Components for Between The Lines */

/* Article Body Modal */
.article-body-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.article-body-modal .modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.article-body-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-body-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.article-body-modal .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-body-modal .close-modal:hover {
    color: #333;
}

.article-body-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.article-body-modal .article-text {
    line-height: 1.6;
    color: #444;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-body-modal hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Clickable elements styling */
.clickable {
    cursor: pointer;
    position: relative;
}

.clickable:hover {
    box-shadow: inset 0 0 0 2px #3498db;
}

.clickable:hover::after {
    content: "Click for details";
    position: absolute;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 0;
    right: 0;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Hide hover preview and cursor when drilldown is disabled */
body.drilldown-disabled .clickable {
    cursor: default !important;
}

body.drilldown-disabled .clickable:hover {
    box-shadow: none !important;
}

body.drilldown-disabled .clickable:hover::after {
    display: none !important;
}

/* Back button styling - .back-button is in buttons.css */
.back-button-inline {
    padding: 0;
    margin-right: 8px;
    border: none;
    background: transparent;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.back-button-inline:hover {
    color: #0d47a1;
    text-decoration: none;
}

.back-button-inline .material-icons {
    font-size: 18px;
    margin-right: 4px;
}

/* Add specific styling for the analysis title */
#preAnalyzedEventTitle {
    display: flex;
    align-items: center;
}

.event-title-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.event-title-header .material-icons {
    margin-right: 6px;
    color: #495057;
}

/* Analysis-specific card header - generic .card-header is in ui-elements.css */
.analysis-card .card-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.analysis-card .card-header .analysis-title,
.card-header .analysis-title {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-container {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
}

.modal-title {
    margin-top: 0;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-right: 30px; /* Make room for close button */
}

.modal-content {
    margin: 20px 0;
    line-height: 1.6;
}

.analysis-section {
    margin-top: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 1.2em;
    font-weight: 600;
}

/* Tabs styling - see ui-elements.css for enhanced tab styles */

/* Event cards for recent view */
.event-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Incomplete event styling */
.event-card.event-incomplete {
    opacity: 0.5;
    filter: grayscale(50%);
    cursor: not-allowed;
}

.event-card.event-incomplete:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-card.non-clickable {
    pointer-events: none;
}

.event-image {
    width: 100%;
    height: 140px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.event-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
    line-height: 1.4;
}

.event-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-date {
    color: #003e42;
    font-size: 14px;
    font-weight: bold;
}

.event-article-count {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    color: #495057;
    font-size: 13px;
}

/* Analysis status badge */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: auto;
    background: #f5f5f5;
    color: #666;
    align-self: flex-start;
}

.status-badge.complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.analyzing {
    background: #fff8e1;
    color: #f57f17;
    animation: pulse 1s linear infinite;
}

.status-badge.error {
    background: #ffebee;
    color: #c62828;
}

/* Animations - @keyframes spin is defined in main.css */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Small spinner for refresh button */
.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    animation: spin 1s linear infinite;
}

/* Top Ribbon Styles */
body {
    margin: 0;
    padding: 0;
}

.top-ribbon {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    margin: 0;
}

.ribbon-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.ribbon-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
    max-width: calc(100vw - 110px); /* Less space needed for smaller language selector */
}

.app-brand:hover {
    opacity: 0.9;
    text-decoration: none;
}

.app-brand i {
    font-size: 2rem;
    color: #3498db;
}

.app-brand .app-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #4285f4, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.view-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.ribbon-nav {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-ribbon {
        padding: 0.625rem 0;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .ribbon-content {
        padding: 0 0.75rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        height: 100%;
    }

    .ribbon-left {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    
    .app-brand {
        gap: 0.25rem;
        min-width: 0;
        flex: 1;
        max-width: calc(100vw - 100px);
    }
    
    .app-brand i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .app-brand .app-title {
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        display: block;
    }
    
    .view-title {
        display: none;
    }

    .ribbon-nav {
        display: flex;
        gap: 0.125rem;
        flex-shrink: 0;
    }

    .nav-link {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .nav-link span {
        display: none;
    }

    .nav-link i {
        font-size: 1.1rem;
    }
    
    .language-selector {
        display: flex !important;
        align-items: center;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
    
    .language-selector .custom-select {
        min-width: 30px;
        max-width: 30px;
        position: relative;
        display: inline-block;
    }
    
    .language-selector .custom-select:after {
        content: "▼";
        font-size: 8px;
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        pointer-events: none;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .language-selector select {
        background-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 3px 12px 3px 4px;
        border-radius: 4px;
        font-size: 11px;
        width: 100%;
        font-weight: 500;
        text-align: center;
        opacity: 0.9;
        transition: all 0.2s ease;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        box-sizing: border-box;
    }
    
    .language-selector select:hover,
    .language-selector select:focus {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        color: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #events {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0;
    }

    .event-card {
        margin-bottom: 0;
        font-size: 13px;
    }
    
    .event-image {
        height: 120px;
    }
    
    .event-info {
        padding: 8px;
    }
    
    .event-title {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .event-meta-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .event-date {
        font-size: 11px;
    }
    
    .event-article-count {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .status-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .modal-container {
        width: 95%;
        max-width: none;
        margin: 10px auto;
        padding: 15px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        background: rgba(0,0,0,0.1);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-title {
        font-size: 18px;
        padding-right: 40px;
    }
    
    .emotional-entities {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .emotional-sentiment-card {
        padding: 1rem;
    }
    
    .concepts-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .concept-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .top-ribbon {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .ribbon-content {
        padding: 0 0.5rem;
        gap: 0.125rem;
        height: 100%;
    }
    
    .app-brand {
        max-width: calc(100vw - 90px);
    }
    
    .app-brand .app-title {
        font-size: 0.8rem;
    }
    
    .ribbon-nav {
        gap: 0.125rem;
    }
    
    .nav-link {
        padding: 0.4rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .language-selector {
        margin-left: 0.125rem;
    }
    
    .language-selector .custom-select {
        min-width: 35px;
        max-width: 35px;
    }
    
    .language-selector select {
        font-size: 10px;
        padding: 2px 12px 2px 4px;
        width: 100%;
    }
    
    .language-selector .custom-select:after {
        font-size: 7px;
        right: 3px;
    }

    .event-image {
        height: 100px;
    }
    
    .event-info {
        padding: 6px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .modal-container {
        margin: 5px auto;
        padding: 10px;
        max-height: calc(100vh - 10px);
    }
    
    .modal-title {
        font-size: 16px;
    }
}

main.container {
    margin-top: 90px;
}

@media (max-width: 768px) {
    main.container {
        margin-top: 70px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    main.container {
        margin-top: 65px;
        padding: 0 0.5rem;
    }
}

/* Analysis popup animation */
#analysisPopupContainer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#analysisPopupContainer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Events section transition */
#events {
    transition: opacity 0.3s ease-out;
}

#events.hiding {
    opacity: 0;
}

/* Emotional Profile Styles */
.emotional-profile {
    padding: 1rem 0;
}

.emotional-entities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.emotional-sentiment-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.emotional-sentiment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.emotional-sentiment-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.emotion-bars {
    margin-bottom: 1rem;
}

.emotion-bar-container {
    margin-bottom: 0.75rem;
}

.emotion-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.emotion-bar-wrapper {
    height: 20px;
    background: var(--bg-muted);
    border-radius: 10px;
    overflow: hidden;
}

.emotion-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    border-radius: 10px;
    transition: width 1s ease-out;
}

.emotion-percentage {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.emotion-joy { background: linear-gradient(to right, #FFD166, #F9B127); }
.emotion-anger { background: linear-gradient(to right, #EF476F, #D1365B); }
.emotion-sadness { background: linear-gradient(to right, #118AB2, #0A6985); }
.emotion-fear { background: linear-gradient(to right, #7209B7, #5607A9); }
.emotion-surprise { background: linear-gradient(to right, #06D6A0, #05A57A); }
.emotion-disgust { background: linear-gradient(to right, #8B5E83, #73486C); }
.emotion-neutral { background: linear-gradient(to right, #8D99AE, #697188); }

.emotion-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Event Overview Styles */
.event-overview {
    padding: 1rem;
}

.overview-section {
    margin-bottom: 2rem;
}

.overview-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--heading-color);
}

.overview-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.overview-key-points {
    padding-left: 1.5rem;
}

.overview-key-points li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.event-timeline {
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.timeline-content {
    color: var(--text-primary);
    line-height: 1.5;
}

/* View Toggle Styles */
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.view-toggle {
    background: #f8f9fa;
    border-radius: 25px;
    padding: 4px;
    display: flex;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.view-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    background: #007bff;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    z-index: 1;
}

.toggle-option {
    padding: 8px 20px;
    font-weight: 500;
    font-size: 14px;
    color: #6c757d;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.toggle-option.active {
    color: white;
}

.view-toggle:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Toggle states - calculate the orb position and size */
.view-toggle.cards-active::before {
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    left: 4px;
}

.view-toggle.list-active::before {
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    left: calc(50% + 2px);
}

/* List View Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-list-item {
    background: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.event-list-item:hover {
    background: #f8f9fa;
}

.event-list-item.event-incomplete {
    opacity: 0.5;
    filter: grayscale(50%);
    cursor: not-allowed;
}

.event-list-item.event-incomplete:hover {
    background: white;
}

.event-list-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    margin-right: 20px;
}

.event-list-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.event-list-date {
    color: #003e42;
    font-size: 14px;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.event-list-count {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
    color: #495057;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
}

/* Mobile adjustments for list view */
@media (max-width: 768px) {
    .event-list-item {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .event-list-title {
        margin-right: 0;
        font-size: 14px;
    }
    
    .event-list-meta {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .event-list-date {
        min-width: auto;
        font-size: 12px;
        text-align: left;
    }
    
    .event-list-count {
        font-size: 12px;
        padding: 2px 8px;
        min-width: auto;
    }
    
    .view-toggle-container {
        margin: 15px 0;
    }
    
    .toggle-option {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .view-toggle.cards-active::before,
    .view-toggle.list-active::before {
        height: calc(100% - 6px);
        top: 3px;
    }
}

/* Key Concepts Styles */
.key-concepts {
    padding: 1rem;
}

.concepts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.concept-item {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.concept-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.concept-name {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.concept-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.related-terms {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

/* Event Summary Section - Compact summary above tabs */
.event-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    position: relative;
}

.event-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    border-radius: 8px 0 0 8px;
}

.event-summary-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary, #212529);
    padding-left: 8px;
}

.event-summary-content p {
    margin: 0 0 0.75rem 0;
}

.event-summary-content p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for event summary */
@media (max-width: 768px) {
    .event-summary {
        padding: 12px 14px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .event-summary-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .event-summary {
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .event-summary-content {
        font-size: 0.85rem;
    }
}

/* Loading Spinner - used across multiple pages */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Button with icon - used in search and event detail */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-with-icon .material-icons {
    font-size: 18px;
}

/* Analysis controls - form styling for analysis options */
.analysis-controls {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.analysis-controls .form-group {
    margin-bottom: 15px;
}

.analysis-controls .form-group:last-child {
    margin-bottom: 0;
}

.analysis-controls label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.analysis-controls select {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .analysis-controls {
        padding: 15px;
    }
}

/* Analysis title - header for analysis sections */
.analysis-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.analysis-title .material-icons {
    margin-right: 10px;
    font-size: 1.6rem;
} 