body {
    background-color: #f8fafc;
}

.view-aktivitas-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Filter Layout */
.filter-wrapper {
    margin-bottom: 2.5rem;
}

.form-row-premium {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-group-premium {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.input-group-premium label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.input-control-premium {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #f8fafc;
    transition: all 0.3s;
    outline: none;
}

.input-control-premium:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-filter-premium {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-filter-premium:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
}

.btn-reset-premium {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-reset-premium:hover {
    background: #e2e8f0;
}

/* Activity Cards Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.activity-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.activity-media-container {
    position: relative;
    background: #0f172a;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-media-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.4);
    opacity: 0.7;
}

.activity-media-main {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.activity-media-main:hover {
    transform: scale(1.03);
}

.media-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.photo-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 5;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.activity-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.activity-meta-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-school {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.activity-course {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 6px;
}

.activity-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-desc.expanded {
    display: block;
    overflow: visible;
}

.btn-expand-desc {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Thumbnails strip */
.photo-thumbnails {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.thumbnail-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.thumbnail-img:hover, .thumbnail-img.active {
    border-color: #2563eb;
    transform: scale(1.05);
}

.activity-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-play-video {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-play-video:hover {
    background: #dc2626;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-download-video {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-download-video:hover {
    background: #e2e8f0;
}

/* Lightbox Modals */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

.lightbox-caption {
    color: #cbd5e1;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .view-aktivitas-container { margin: 20px auto; }
    .form-row-premium { flex-direction: column; align-items: stretch; }
    .input-group-premium { width: 100%; }
    .btn-filter-premium, .btn-reset-premium { width: 100%; justify-content: center; }
    .activity-grid { grid-template-columns: 1fr; }
}
