/* Agenda-specific styles */
body {
    padding-top: 20px;
}

/* Back Navigation Styles */
.back-nav {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

.back-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.back-text {
    font-weight: 600;
}
.agenda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.agenda-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.agenda-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
}

.agenda-subtitle {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.agenda-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.agenda-filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.agenda-session-filter {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    min-width: 200px;
}

.load-agenda-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.load-agenda-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.agenda-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.agenda-search-input {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    min-width: 250px;
}

.agenda-search-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agenda-search-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.agenda-content {
    min-height: 400px;
}

.agenda-welcome {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.agenda-welcome .welcome-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.agenda-welcome h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.agenda-welcome p {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.agenda-item-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #007cba;
    transition: all 0.3s ease;
}

.agenda-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.agenda-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.agenda-item-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.agenda-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.committee {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.moa {
    background: #e8f5e8;
    color: #388e3c;
}

.category-badge.safety {
    background: #fff3e0;
    color: #f57c00;
}

.category-badge.admin {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.general {
    background: #f5f5f5;
    color: #616161;
}

.agenda-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.agenda-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.agenda-session {
    font-weight: 600;
    color: #495057;
}

.agenda-item-content h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.agenda-item-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1em;
}

.agenda-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.pdf-link {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pdf-link:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.edit-btn, .delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #17a2b8;
    color: white;
}

.edit-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.delete-btn {
    background: #6c757d;
    color: white;
}

.delete-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.agenda-editor {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.agenda-editor h3 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-size: 1.4em;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.editor-controls {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.btn-save, .btn-cancel {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-save {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.agenda-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.agenda-empty .empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.agenda-empty h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.module-loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .agenda-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .agenda-filter-section,
    .agenda-search {
        flex-direction: column;
        width: 100%;
    }
    
    .agenda-search-input,
    .agenda-session-filter {
        min-width: auto;
        width: 100%;
    }
    
    .agenda-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .agenda-item-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .agenda-item-actions {
        justify-content: center;
    }
    
    .editor-actions {
        flex-direction: column;
    }
}