/* Component-specific styles */

/* Modal Component */
.modal-header-custom {
    background-color: var(--primary-dark);
    color: var(--white);
}

.modal-header-custom .btn-close {
    filter: invert(1);
}

/* Page Header Component */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-orange);
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

/* Bulk Actions Bar */
.bulk-actions {
    background: var(--primary-green);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: none;
    align-items: center;
    gap: var(--spacing-md);
}

.bulk-actions.active {
    display: flex;
}

/* Tag Pills */
.tag-pill {
    background-color: rgba(107, 142, 124, 0.2);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    margin: 0.25rem;
    display: inline-block;
}

/* Checkbox styling */
.checkbox-custom {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--gray-dark);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-medium);
    margin-bottom: var(--spacing-md);
}

/* Form Section Headers */
.form-section-header {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-orange);
}

/* User Badge */
.user-badge {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
}

/* Event Details Modal */
.event-details {
    font-size: 0.95rem;
}

.event-title {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Event Sections */
.event-section {
    background-color: var(--gray-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--primary-green);
}

.event-section-title {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-medium);
}

.event-section-content {
    color: var(--gray-dark);
}

.event-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.event-value {
    color: var(--black);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.event-details a {
    color: var(--primary-green);
    text-decoration: none;
    word-break: break-all;
}

.event-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.modal-footer .text-muted {
    color: var(--gray-dark) !important;
}

.modal-footer .text-muted strong {
    color: var(--primary-green);
}

/* ========================================
   VIEW EVENT MODAL - Enhanced Design
   ======================================== */

/* Modal Container */
.view-modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

/* Modal Header with Gradient */
.view-modal-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A7A6B 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: start;
    border: none;
}

.view-modal-title-section {
    flex: 1;
}

.view-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.view-modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.subtitle-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.view-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Status Badge in Header */
.view-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.view-status-badge.draft {
    background: rgba(241, 245, 249, 0.9);
    color: #64748b;
}

.view-status-badge.published {
    background: rgba(209, 250, 229, 0.9);
    color: #065f46;
}

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

.view-status-badge.draft .view-status-dot {
    background: #94a3b8;
}

.view-status-badge.published .view-status-dot {
    background: #10b981;
}

/* Modal Body */
.view-modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: 70vh;
}

/* Content Cards */
.view-content-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.view-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-medium);
}

.view-section-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.view-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

/* Info Grid */
.view-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.view-info-grid.single {
    grid-template-columns: 1fr;
}

.view-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.view-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-info-value {
    font-size: 15px;
    color: var(--primary-dark);
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--gray-medium);
}

.view-info-value a {
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-info-value a:hover {
    text-decoration: underline;
    color: #5A7A6B;
}

/* Visual Date Highlight */
.view-date-highlight {
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A7A6B 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.view-date-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.view-date-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.view-date-year {
    font-size: 14px;
    opacity: 0.9;
}

/* Format Badge */
.view-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Tags Display */
.view-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-medium);
    min-height: 48px;
}

.view-tag-chip {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A7A6B 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Notes Display */
.view-notes-display {
    background: #fffbeb;
    border-left: 4px solid var(--primary-orange);
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}

/* Modal Footer */
.view-modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
}

.view-footer-meta {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.view-footer-meta strong {
    color: var(--primary-green);
}

.view-footer-actions {
    display: flex;
    gap: 10px;
}

/* Footer Buttons */
.view-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.view-btn-secondary {
    background: #64748b;
    color: white;
}

.view-btn-secondary:hover {
    background: #64748b;
    color: var(--primary-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(100, 116, 139, 0.3);
}

.view-btn-danger {
    background: var(--danger);
    color: white;
}

.view-btn-danger:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 83, 80, 0.4);
}

.view-btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A7A6B 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(107, 142, 124, 0.2);
}

.view-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A7A6B 100%);
    color: var(--primary-gold);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(107, 142, 124, 0.3);
}

/* Responsive Design for View Modal */
@media (max-width: 768px) {
    .view-modal-header {
        padding: 20px;
    }
    
    .view-modal-title {
        font-size: 20px;
    }
    
    .view-modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .view-content-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .view-info-grid {
        grid-template-columns: 1fr;
    }
    
    .view-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .view-footer-meta {
        order: 2;
        text-align: center;
        justify-content: center;
    }
    
    .view-footer-actions {
        order: 1;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Old Modal Styles (kept for backward compatibility) */
/* Responsive Modal for Mobile */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .event-details {
        font-size: 0.9rem;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .event-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .event-section-title {
        font-size: 1rem;
    }
    
    .event-label {
        font-size: 0.75rem;
    }
    
    .event-value {
        font-size: 0.9rem;
    }
    
    .event-details .row > div {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch !important;
    }
    
    .modal-footer .text-muted {
        order: 2;
        text-align: center;
    }
    
    .modal-footer .d-flex {
        order: 1;
        width: 100%;
        justify-content: stretch;
    }
    
    .modal-footer .d-flex .btn {
        flex: 1;
    }
}

/* Dropdown-style Tag Selector */
.tags-dropdown-container {
    position: relative;
    width: 100%;
}

.tags-dropdown-trigger {
    position: relative;
    cursor: pointer;
}

.tags-search-input {
    width: 100%;
    padding-right: 2.5rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.tags-search-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(107, 142, 124, 0.15);
    outline: none;
}

.tags-dropdown-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-fast);
    color: var(--gray-dark);
    pointer-events: none;
}

.tags-dropdown-icon.rotated {
    transform: translateY(-50%) rotate(180deg);
}

.tags-dropdown-list {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    padding: 0.5rem;
    display: block;
}

.tags-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    user-select: none;
    width: 100%;
    clear: both;
    flex-wrap: nowrap;
    box-sizing: border-box;
    min-width: 100%;
    max-width: 100%;
}

.tags-dropdown-item:hover {
    background-color: rgba(107, 142, 124, 0.08);
}

.tags-dropdown-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-green);
    flex-shrink: 0;
}

.tags-dropdown-text {
    font-size: 0.95rem;
    color: var(--gray-dark);
    flex-grow: 1;
}

.tags-dropdown-item:has(.tags-dropdown-checkbox:checked) {
    background-color: rgba(107, 142, 124, 0.12);
}

.tags-dropdown-item:has(.tags-dropdown-checkbox:checked) .tags-dropdown-text {
    color: var(--primary-green);
    font-weight: 600;
}

.tags-dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Scrollbar styling for dropdown */
.tags-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.tags-dropdown-list::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: var(--radius-md);
}

.tags-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: var(--radius-md);
}

.tags-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Mobile optimization for dropdown */
@media (max-width: 768px) {
    .tags-dropdown-list {
        max-height: 250px;
    }
    
    .tags-dropdown-item {
        padding: 0.65rem;
        width: 100%;
    }
    
    .tags-dropdown-checkbox {
        width: 16px;
        height: 16px;
        margin-right: 0.6rem;
    }
    
    .tags-dropdown-text {
        font-size: 0.9rem;
    }
}

