/* Active Filters */
.active-filters {
    background: #f8fdf9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(98, 42, 142, 0.1);
    margin-bottom: 20px;
}

.active-filters .badge {
    font-size: 0.9rem;
    padding: 6px 12px;
}

/* Event Search Styles */
.event-search {
    position: relative;
}

.event-search .dropdown-menu {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid rgba(98, 42, 142, 0.1);
    box-shadow: 0 2px 8px rgba(92, 186, 101, 0.08);
}

.event-search .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.event-search .dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(98, 42, 142, 0.1);
    transition: all 0.3s ease;
}

.event-search .dropdown-item:hover {
    background-color: #f8fdf9;
    color: #622a8e;
}

/* Event Items */
.event-item {
    animation: fadeIn 0.5s ease-in;
    background: linear-gradient(to bottom right, #ffffff, #f8fdf9);
    border-radius: 8px;
    border: 1px solid rgba(92, 186, 101, 0.1);
    box-shadow: 0 2px 8px rgba(92, 186, 101, 0.08);
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.event-item:hover {
    transform: translateY(-5px);
    border-color: #622a8e;
    box-shadow: 0 4px 12px rgba(92, 186, 101, 0.15);
}

.event-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #622a8e;
    transition: height 0.3s ease;
}

.event-item:hover:before {
    height: 100%;
}

.event-title-box {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(98, 42, 142, 0.1);
}

.event-title-box h3 {
    color: #2c3e50;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1rem;
    padding-left: 15px;
}

.event-title-box a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.event-title-box a:hover {
    color: #622a8e;
    padding-left: 5px;
}

.event-content-box {
    color: #666;
    line-height: 1.6;
    padding-left: 15px;
    font-size: 0.9rem;
}

.event-content-box .text-muted {
    font-size: 0.85rem;
}

/* Gradient Headings */
.event-card h1, .event-card h3, .event-card h4, .event-card h5,
.event-info-card h3, .card-header h4, .document-group h5 {
    background: linear-gradient(135deg, #622a8e, #5cba65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Status Badges for Objectives */
.text-complete, .text-success {
    color: #28a745 !important;
}

.text-pending, .text-danger {
    color: #dc3545 !important;
}

.text-current, .text-warning {
    color: #ffc107 !important;
}

/* Badge styling for objectives status */
.list-group-item small {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.list-group-item small.text-complete, .list-group-item small.text-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.list-group-item small.text-pending, .list-group-item small.text-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.list-group-item small.text-current, .list-group-item small.text-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Event Details */
.event-info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    padding-left: 2rem !important;
}

.event-info-card:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #622a8e;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Event Tags */
.event-tags {
    margin-top: 15px;
}

.event-tags .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: normal;
    color: #fff;
    background-color: #622a8e;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.event-tags a.badge:hover {
    background-color: #622a8e;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .event-title-box h3 {
        font-size: 1.1rem;
    }

    .event-item {
        margin-bottom: 20px;
    }
}