/* ========================================
   UNIVERSIDAD DORADOS - ACTIVIDADES PENDIENTES
   Diseño Futurista & Minimalista
   ======================================== */

/* ============ BASE CONTAINER ============ */
#actividades-container {
    min-height: 100vh;
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 162, 39, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ============ HEADER ============ */
#actividades-main-header {
    position: relative;
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #fafafa 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.15);
}

#actividades-header-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#actividades-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(212, 168, 83, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4a853;
    box-shadow: 
        0 0 20px rgba(212, 168, 83, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.08);
    animation: actividades-float 3s ease-in-out 1;
}

#actividades-icon-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

#actividades-icon-wrapper i {
    font-size: 2.5rem;
    color: #d4a853;
    text-shadow: 0 0 10px rgba(212, 168, 83, 0.4);
}

@keyframes actividades-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#actividades-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(212, 168, 83, 0.15);
}

#actividades-title-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    margin: 1.5rem auto 0;
    box-shadow: 0 0 10px rgba(212, 168, 83, 0.4);
}

/* ============ SECCIONES ============ */
#actividades-section-pendientes,
#actividades-section-ejecutivo,
#actividades-section-realizadas {
    margin-bottom: 3rem;
}

.actividades-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.actividades-section-title i {
    color: #d4a853;
    font-size: 1.75rem;
}

.actividades-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.3), transparent);
    margin-left: 1rem;
}

/* ============ HEADER DE SECCIÓN COLAPSABLE ============ */
.actividades-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    margin: -0.75rem -1rem 1rem -1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    user-select: none;
}

.actividades-section-header:hover {
    background: rgba(212, 168, 83, 0.08);
}

.actividades-section-header .actividades-section-title {
    margin-bottom: 0;
}

.actividades-collapse-btn {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.08));
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.actividades-collapse-btn:hover {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(212, 168, 83, 0.15));
    transform: scale(1.1);
}

.actividades-collapse-btn i {
    font-size: 1rem;
    color: #d4a853;
    transition: transform 0.3s ease;
}

/* Badge de conteo */
.actividades-count-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.actividades-count-badge-success {
    background: linear-gradient(135deg, #4CAF50, #43a047);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Contenido colapsable */
.actividades-collapsible-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 1;
}

.actividades-collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

/* ============ FILTROS ============ */
#actividades-filtros-ejecutivo,
#actividades-filtros-realizadas {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#actividades-filtros-ejecutivo .row,
#actividades-filtros-realizadas .row {
    align-items: flex-end;
}

#actividades-input-ejecutivo,
#actividades-input-fecha-inicio,
#actividades-input-fecha-fin {
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

#actividades-input-ejecutivo:focus,
#actividades-input-fecha-inicio:focus,
#actividades-input-fecha-fin:focus {
    outline: none;
    border-color: #d4a853;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

#actividades-btn-buscar-ejecutivo,
#actividades-btn-buscar-realizadas {
    background: linear-gradient(135deg, #d4a853, #c9a227);
    color: #332702;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#actividades-btn-limpiar-ejecutivo,
#actividades-btn-limpiar-realizadas,
.btn-limpiar {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#actividades-btn-limpiar-ejecutivo:hover,
#actividades-btn-limpiar-realizadas:hover,
.btn-limpiar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    background: linear-gradient(135deg, #5a6268, #495057);
}



#actividades-btn-buscar-ejecutivo:hover,
#actividades-btn-buscar-realizadas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 83, 0.3);
}

.actividades-label {
    font-weight: 600;
    color: #4a4a68;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ============ GRID DE CARDS ============ */
#actividades-grid-pendientes,
#actividades-grid-ejecutivo,
#actividades-grid-realizadas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ============ CARDS DE ACTIVIDADES ============ */
.actividad-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    animation: actividades-fadeIn 0.5s ease backwards;
}

@keyframes actividades-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actividad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a853, #FFD700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actividad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #d4a853;
}

.actividad-card:hover::before {
    opacity: 1;
}

/* Card pendiente */
.actividad-card-pendiente::before {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

/* Card realizada */
.actividad-card-realizada::before {
    background: linear-gradient(90deg, #4CAF50, #81c784);
}

/* Card ejecutivo */
.actividad-card-ejecutivo::before {
    background: linear-gradient(90deg, #c9a227, #d4a853);
}

/* ============ CONTENIDO DE CARD ============ */
.actividad-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.actividad-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.actividad-card-pendiente .actividad-card-icon {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
    color: #dc3545;
}

.actividad-card-realizada .actividad-card-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08));
    color: #4CAF50;
}

.actividad-card-ejecutivo .actividad-card-icon {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.08));
    color: #d4a853;
}

.actividad-card-icon i {
    font-size: 1.5rem;
}

.actividad-card-title-wrapper {
    flex: 1;
    min-width: 0;
}

.actividad-card-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actividad-card-tipo {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(212, 168, 83, 0.1));
    color: #b8860b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actividad-card-body {
    margin-bottom: 1rem;
}

.actividad-card-descripcion {
    color: #4a4a68;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actividad-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 168, 83, 0.1);
}

.actividad-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #8a8aa3;
}

.actividad-card-info i {
    color: #d4a853;
    font-size: 1rem;
}

.actividad-card-info-value {
    font-weight: 600;
    color: #4a4a68;
}

.actividad-card-fecha {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.08));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b8860b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actividad-card-fecha i {
    font-size: 0.9rem;
}

.actividad-card-hora {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15), rgba(108, 117, 125, 0.08));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actividad-card-hora i {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ============ MENSAJES VACÍOS ============ */
#actividades-empty-pendientes,
#actividades-empty-ejecutivo,
#actividades-empty-realizadas,
#actividades-loading {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed rgba(212, 168, 83, 0.3);
    border-radius: 16px;
    color: #8a8aa3;
}

#actividades-empty-pendientes i,
#actividades-empty-ejecutivo i,
#actividades-empty-realizadas i,
#actividades-loading i {
    font-size: 3rem;
    color: rgba(212, 168, 83, 0.4);
    margin-bottom: 1rem;
    display: block;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    #actividades-container {
        padding: 1rem;
    }

    #actividades-main-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    #actividades-grid-pendientes,
    #actividades-grid-ejecutivo,
    #actividades-grid-realizadas {
        grid-template-columns: 1fr;
    }

    #actividades-filtros-ejecutivo,
    #actividades-filtros-realizadas {
        padding: 1rem;
    }

    .actividad-card-footer {
        flex-direction: column;
    }

    .actividad-card-fecha {
        margin-left: 0;
        justify-content: center;
    }

    /* Estilos responsive para colapso */
    .actividades-section-header {
        padding: 0.5rem 0.75rem;
        margin: -0.5rem -0.75rem 1rem -0.75rem;
    }

    .actividades-collapse-btn {
        width: 32px;
        height: 32px;
    }

    .actividades-count-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .actividades-section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #actividades-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .actividad-card {
        padding: 1rem;
    }

    .actividad-card-icon {
        width: 40px;
        height: 40px;
    }

    .actividad-card-icon i {
        font-size: 1.2rem;
    }
}
