/* Agenda & News Module Styles */

.agenda-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agenda-news-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.agenda-news-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.agenda-news-subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
}

/* Module Selector */
.module-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.module-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.module-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.module-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.module-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    display: block;
}

.module-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 4px;
}

.module-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Content Modules */
.content-module {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.content-module.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Agenda Module Styles */
.agenda-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.agenda-filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agenda-session-filter {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.agenda-session-filter:focus {
    outline: none;
    border-color: #3498db;
}

.load-agenda-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.load-agenda-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.agenda-search {
    display: flex;
    gap: 10px;
}

.agenda-search-input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    width: 250px;
    transition: border-color 0.3s ease;
}

.agenda-search-input:focus {
    outline: none;
    border-color: #3498db;
}

.agenda-search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.agenda-search-btn:hover {
    background: #2980b9;
}

.agenda-content {
    min-height: 400px;
}

.agenda-welcome {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.agenda-welcome h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.agenda-welcome p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 10px 0;
}

.admin-note {
    color: #e67e22 !important;
    font-style: italic;
}

/* Agenda Item Cards */
.agenda-item-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
}

.agenda-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.agenda-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.agenda-item-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

.agenda-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.agenda-item-meta {
    text-align: right;
    min-width: 120px;
}

.agenda-session, .agenda-date {
    display: block;
    color: #7f8c8d;
    font-size: 0.9em;
}

.agenda-session {
    font-weight: 600;
    color: #2c3e50;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.committee {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.category-badge.moa {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.category-badge.safety {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.category-badge.admin {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
}

.category-badge.general {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.pdf-parsed-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.folder-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-source {
    display: block;
    color: #7f8c8d;
    font-size: 0.85em;
    font-style: italic;
}

.agenda-item-title {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

.agenda-item-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.agenda-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.pdf-link, .edit-btn, .delete-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pdf-link {
    background: #e74c3c;
    color: white;
}

.pdf-link:hover {
    background: #c0392b;
    transform: translateY(-1px);
}


.edit-btn {
    background: #f39c12;
    color: white;
}

.edit-btn:hover {
    background: #e67e22;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

/* News Module Styles */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-filter-section {
    display: flex;
    gap: 10px;
}

.filter-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.news-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.news-filter-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.news-filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.news-search {
    display: flex;
    gap: 10px;
}

.news-search-input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    width: 250px;
    transition: border-color 0.3s ease;
}

.news-search-input:focus {
    outline: none;
    border-color: #3498db;
}

.news-search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-search-btn:hover {
    background: #2980b9;
}

/* Professional News Layout - Two Column Design */
.news-item-card {
    background: white;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    display: block;
    page-break-inside: avoid;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Featured article (first item) gets special treatment */
.news-item-card:first-child {
    border-bottom: 4px solid #007cba;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.news-item-card:first-child .news-article-content {
    padding: 40px 50px;
}

/* Regular articles use two-column layout */
.news-item-card:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 50px;
    min-height: 300px;
    align-items: start;
}

/* Alternate layout for visual variety */
.news-item-card:nth-child(even):not(:first-child) {
    background: #fafbfc;
}

.news-item-card:hover {
    background: #fafafa;
    border-bottom-color: #007cba;
}

.news-item-card:first-child:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
}

/* Article content container */
.news-article-content {
    display: flex;
    flex-direction: column;
    padding: 30px 50px;
}

/* Left and right column content */
.news-column-left {
    display: flex;
    flex-direction: column;
}

.news-column-right {
    display: flex;
    flex-direction: column;
}

.news-kicker {
    font-size: 0.9rem;
    color: #007cba;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
    border-left: 3px solid #007cba;
    padding-left: 12px;
}

.news-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
    font-family: 'Georgia', serif;
}

/* Featured article title */
.news-item-card:first-child .news-title {
    font-size: 3.2rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: justify;
    font-family: 'Georgia', serif;
    text-indent: 1.2em;
}

/* Featured article content */
.news-item-card:first-child .news-content {
    font-size: 1.2rem;
    line-height: 1.8;
    columns: 2;
    column-gap: 40px;
    column-rule: 1px solid #e0e0e0;
    text-align: justify;
}

/* Two-column content for regular articles */
.news-item-card:not(:first-child) .news-content {
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Professional byline styling */
.news-byline {
    font-size: 0.95rem;
    color: #2c2c2c;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-transform: none;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #f8f9fa 0%, transparent 100%);
    padding-left: 12px;
}

.news-byline::before {
    content: "By ";
    font-weight: 400;
    color: #666;
}

.news-content .first-paragraph {
    font-weight: 500;
    color: #2c3e50;
}

.news-content .read-more {
    color: #3498db;
    font-style: italic;
}

.news-content .topic-heading {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #007cba;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    break-after: avoid;
}

/* Enhanced News Content Styles */
.content-heading {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0 10px 0;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.content-paragraph {
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}

.list-item {
    margin: 8px 0 8px 20px;
    padding-left: 10px;
    border-left: 2px solid #ecf0f1;
    line-height: 1.6;
}

.paragraph-spacing {
    height: 15px;
}

.expand-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}


.news-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    font-size: 0.9rem;
}

.news-date,
.news-category {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category {
    background: #007cba;
    color: white;
    border-color: #0056b3;
}

/* Professional importance indicators */
.news-item-card.importance-high::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #dc3545, #c82333);
    z-index: 10;
}

.news-item-card.importance-medium::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #ffc107, #e0a800);
    z-index: 10;
}

.news-item-card.importance-low::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #28a745, #1e7e34);
    z-index: 10;
}

/* Professional importance badge */
.news-importance-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

/* Editors */
.agenda-editor, .news-editor {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #3498db;
}

.agenda-editor h3, .news-editor h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.btn-save {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

/* Empty States */
.agenda-empty, .news-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.agenda-empty h3, .news-empty h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.agenda-empty p, .news-empty p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Loading */
.module-loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ecf0f1;
    border-left: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #c0392b;
}

.agenda-details-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.6em;
}

.agenda-details-meta {
    color: #7f8c8d;
    font-size: 1em;
    margin-bottom: 20px;
}

.agenda-details-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1em;
}

.agenda-details-actions {
    margin-top: 25px;
    text-align: center;
}

/* Responsive Design for Professional Layout */
@media (max-width: 768px) {
    .agenda-news-container {
        padding: 15px;
    }
    
    .module-selector {
        flex-direction: column;
    }
    
    .module-btn {
        min-width: auto;
        width: 100%;
    }
    
    .agenda-controls, .news-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .agenda-filter-section {
        justify-content: center;
    }
    
    .agenda-search, .news-search {
        justify-content: center;
    }
    
    .agenda-search-input, .news-search-input {
        width: 200px;
    }
    
    .agenda-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .agenda-item-badges {
        justify-content: center;
        width: 100%;
    }
    
    .agenda-item-meta {
        text-align: left;
        width: 100%;
        min-width: auto;
    }
    
    .agenda-item-actions {
        justify-content: center;
    }
    
    /* Mobile layout - stack columns vertically */
    .news-item-card:not(:first-child) {
        display: block !important;
        padding: 20px 25px;
    }
    
    .news-item-card:first-child .news-article-content {
        padding: 30px 25px;
    }
    
    .news-item-card:first-child .news-content {
        columns: 1 !important;
        column-rule: none;
    }
    
    .news-column-left,
    .news-column-right {
        display: block;
        width: 100%;
    }
    
    .news-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .news-item-card:first-child .news-title {
        font-size: 2.4rem;
    }
    
    .news-content {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: left;
        text-indent: 0;
    }
    
    .news-byline {
        margin: 15px 0;
        padding-left: 0;
        background: none;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 8px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .editor-actions {
        justify-content: center;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
        padding: 20px;
    }
    
    .news-importance-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
}

/* Admin Controls */
.admin-controls {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-controls button {
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}