/* Estilos base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: #000;
    background-color: #fff;
}

/* Cabecera */
h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #007AFF;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #8E8E93;
}

/* Tarjeta principal */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
}

/* Vista de escritorio */
@media (min-width: 992px) {
    /* Contenedor principal de filtros y búsqueda */
    .dataTables_wrapper .row:first-child {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Filtros mejorados */
    .btn-group {
        display: inline-flex;
        gap: 8px;
        background: transparent;
        padding: 0;
    }

    .btn-group .btn {
        background: #F2F2F7;
        border: none;
        color: #8E8E93;
        font-size: 12px;
        font-weight: 500;
        padding: 6px 16px;
        border-radius: 14px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
    }

    .btn-group .btn.active {
        background: #007AFF;
        color: #FFFFFF;
        font-weight: 600;
    }

    .btn-group .btn:hover:not(.active) {
        background: #E5E5EA;
        color: #000000;
    }

    /* Búsqueda mejorada */
    .dataTables_filter {
        margin-left: auto;
    }

    .dataTables_filter label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #6B6B6B;
    }

    .dataTables_filter input {
        border: 1px solid rgba(0,0,0,0.1);
        background: #FFFFFF;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        width: 200px;
        transition: all 0.2s ease;
    }

    .dataTables_filter input:focus {
        outline: none;
        border-color: #007AFF;
        box-shadow: 0 0 0 3px rgba(0,122,255,0.1);
    }

    /* Tabla */
    .table {
        margin-top: 16px;
        border-collapse: separate;
        border-spacing: 0;
        background: #FFFFFF;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* Encabezados */
    .table thead th {
        padding: 16px;
        background: #F5F5F7;
        font-weight: 600;
        font-size: 13px;
        color: #6B6B6B;
        text-align: left;
        letter-spacing: -0.2px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* Celdas */
    .table td {
        padding: 16px;
        vertical-align: middle;
        font-size: 15px;
        color: #000000;
        letter-spacing: -0.2px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: background-color 0.2s ease;
    }

    /* Hover en las filas */
    .table tbody tr:hover {
        background-color: #F2F2F7;
    }

    /* DataTables personalización */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 16px;
        margin: 0 2px;
        border-radius: 8px;
        border: none;
        background: #F2F2F7;
        color: #007AFF !important;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #007AFF !important;
        color: white !important;
        border: none;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #E5E5EA !important;
        border: none;
    }

    /* Enlaces "Ver detalles" en la tabla */
    .table .ver-detalles {
        color: #007AFF;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: -0.2px;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .table .ver-detalles:hover {
        color: #0056b3;
    }

    /* Estado en la tabla */
    .table .status-badge {
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: -0.1px;
    }

    .table .status-badge.completada {
        background: #34C759;
        color: white;
    }

    .table .status-badge.en-proceso {
        background: #007AFF;
        color: white;
    }

    .table .status-badge.pendiente {
        background: #FFD60A;
        color: #000;
    }

    .table .status-badge.cancelada {
        background: #FF3B30;
        color: white;
    }

    /* Título en la tabla */
    .table .activity-title {
        font-size: 14px;
        font-weight: 500;
        color: #1C1C1E;
        letter-spacing: -0.2px;
        margin: 0;
    }

    /* Botón Completar Formularios */
    .table .btn-info {
        background: #007AFF;
        border: none;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 8px;
        letter-spacing: -0.2px;
        transition: all 0.2s ease;
    }

    .table .btn-info:hover {
        background: #0056b3;
        transform: scale(0.98);
    }

    /* Columnas específicas */
    .table td:first-child {
        color: #8E8E93;
        font-size: 13px;
    }

    .table td[data-title="Centro"],
    .table td[data-title="Fecha Inicio"],
    .table td[data-title="Profundidad"] {
        color: #3C3C43;
        font-size: 14px;
    }

    /* Título y detalles */
    .activity-title {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .ver-detalles {
        background: none;
        border: none;
        color: #007AFF;
        font-size: 14px;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }

    /* Estado */
    .status-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
    }

    .status-badge.completada { background: #34C759; color: white; }
    .status-badge.en-proceso { background: #007AFF; color: white; }
    .status-badge.pendiente { background: #FFD60A; color: #000; }

    /* Progreso */
    .actividad-progress-container {
        width: 200px;
    }

    .progress {
        height: 6px !important;
        background-color: #f2f2f2;
        border-radius: 3px;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .progress-bar {
        background-color: #007AFF;
        border-radius: 3px;
    }

    /* Iconos de formularios */
    .formularios-icons-container {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .formulario-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f8f9fa;
    }

    .formulario-icon i {
        font-size: 14px;
    }

    /* Ajustes específicos para el modal en versión escritorio */
    .activity-details .activity-info-modal {
        display: none;
        position: fixed;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 600px;
        background: white;
        padding: 24px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .activity-details .activity-info-modal .info-group {
        margin-bottom: 16px;
    }

    .activity-details .activity-info-modal .info-group p {
        margin: 12px 0;
        font-size: 15px;
        line-height: 1.5;
    }

    .activity-details .activity-info-modal .info-group strong {
        display: inline-block;
        width: 120px;
        font-weight: 600;
        color: #6c757d;
    }
}

@media (max-width: 991px) {
    /* Fondo gris para el contenedor principal */
    body, 
    .content-wrapper,
    .content,
    .card,
    .card-body {
        background: #F5F5F5 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Quitar fondo blanco de activities-mobile */
    .activities-mobile {
        padding: 16px 0;
        background: transparent;
    }

    /* Ajustar estilos de card-body */
    .card-body {
        padding: 16px 0;
        background: transparent;
    }

    /* Ajustar contenedor principal */
    .card {
        background: transparent;
        border-radius: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    /* Ajustar tarjetas de actividad */
    .activity-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin: 0 0 12px 0;
        border: 1px solid rgba(0,0,0,0.1);
        width: 100%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    /* Mantener el encabezado con fondo blanco */
    .content-header {
        margin: 0;
        background: #FFFFFF;
    }

    .content-header h1 {
        font-size: 22px;
        font-weight: 600;
        margin: 0;
    }

    .breadcrumb {
        margin-top: 8px;
        padding: 0;
        background: none;
    }

    .card-header {
        text-align: center;
        padding: 16px;
        border-bottom: 1px solid #e5e5ea;
        margin-bottom: 16px;
    }

    .card-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        text-align: center;
    }

    .card-body {
        padding: 16px 0;
        background: #fff;
    }

    .card, 
    .card-body,
    .container-fluid {
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .activity-code {
        color: #666;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .activity-title {
        font-size: 17px;
        font-weight: 600;
        margin: 0 0 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .activity-info {
        display: flex;
        justify-content: space-between;
        margin: 8px 0;
        color: #666;
    }

    .activity-info span:first-child {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .activity-info span:last-child {
        font-weight: normal;
    }

    /* Badge de estado */
    .status-badge {
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: -0.1px;
    }

    .status-badge.completada { 
        background: #34C759; 
        color: white; 
    }
    
    .status-badge.en-proceso { 
        background: #007AFF; 
        color: white; 
    }
    
    .status-badge.pendiente { 
        background: #FFD60A; 
        color: #000; 
    }

    .status-badge.cancelada { 
        background: #FF3B30; 
        color: white; 
    }

    .status-badge.bloqueada { 
        background: #8E8E93; 
        color: white; 
    }

    /* Centro y detalles */
    .activity-center {
        color: #666;
        font-size: 15px;
        margin-bottom: 4px;
    }

    /* Barra de progreso */
    .progress {
        height: 8px !important;
        background-color: #E5E5EA;
        border-radius: 4px;
        margin: 16px 0;
        overflow: hidden;
    }

    .progress-bar {
        background: linear-gradient(to right, #34C759, #30D158);
        border-radius: 4px;
        transition: width 0.3s ease-in-out;
    }

    .progress-bar.bg-warning {
        background: linear-gradient(to right, #FF9500, #FFA426);
    }

    .progress-bar.bg-danger {
        background: linear-gradient(to right, #FF3B30, #FF453A);
    }

    /* Iconos */
    .formularios-icons-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 16px 0;
    }

    .formulario-icon {
        color: #8E8E93;
        font-size: 20px;
    }

    .formulario-icon i {
        color: #8E8E93;
        font-size: 20px;
    }

    .formulario-icon i.text-success {
        color: #34C759 !important;
    }

    .formulario-icon i.text-danger {
        color: #FF3B30 !important;
    }

    .formulario-icon i.text-primary {
        color: #34C759 !important;
        opacity: 0.7;
    }

    .formulario-icon.disabled i {
        opacity: 0.5;
    }

    /* Ver detalles */
    .activity-card {
        background: white;
        padding: 16px;
        margin-bottom: 8px;
    }

    .ver-detalles {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 0 0;
        margin-top: 12px;
        border-top: 1px solid #E5E5EA;
        background: none;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        color: #000;
        font-size: 15px;
        text-decoration: none;
    }

    .ver-detalles i {
        color: #8E8E93;
    }

    .activity-info-modal {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 16px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }

    .activity-info-modal .info-group {
        margin-bottom: 16px;
    }

    .activity-info-modal p {
        margin: 8px 0;
        font-size: 15px;
        line-height: 1.4;
    }

    .activity-info-modal strong {
        font-weight: 600;
        display: inline-block;
        width: 120px;
    }

    .modal-backdrop {
        background-color: rgba(0,0,0,0.5);
    }

    .activities-mobile {
        padding: 16px 0;
        background: #fff;
    }

    .activity-card {
        background: white;
        border-radius: 12px;
        padding: 20px 24px;
        margin: 0 0 12px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.1);
        width: 100%;
    }

    /* Contenedor principal */
    .container-fluid {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .btn-info {
        background: #007AFF !important;
        color: white !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 12px !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        margin: 16px 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        transition: background-color 0.2s ease !important;
        box-shadow: none !important;
        text-transform: none !important;
        letter-spacing: -0.2px !important;
    }

    .btn-info:active,
    .btn-info:hover,
    .btn-info:focus {
        background: #0051D5 !important;
        transform: scale(0.98);
        box-shadow: none !important;
    }

    .btn-info i {
        font-size: 16px !important;
    }

    /* Filtros estilo iOS para móvil */
    .ios-filters {
        padding: 8px 16px;
        margin: 0 0 16px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
    }

    .ios-filters .btn-group {
        display: flex;
        width: 100%;
        gap: 8px;
        padding: 4px 0;
    }

    .ios-filters .btn {
        flex: 0 0 auto;
        background: #F2F2F7 !important;
        border: none !important;
        color: #007AFF !important;
        font-size: 15px !important;
        padding: 8px 16px !important;
        border-radius: 16px !important;
        white-space: nowrap;
        font-weight: 400 !important;
        min-width: auto !important;
        transition: all 0.2s ease;
        margin: 0 !important;
    }

    .ios-filters .btn.active {
        background: #007AFF !important;
        color: #FFFFFF !important;
    }

    .ios-filters .btn:hover,
    .ios-filters .btn:focus {
        background: #E5E5EA !important;
        box-shadow: none !important;
    }

    .ios-filters .btn.active:hover,
    .ios-filters .btn.active:focus {
        background: #0051D5 !important;
    }

    .activities-container {
        padding: 12px 0 !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    /* Contenedor principal */
    .activities-mobile {
        background: #F5F5F5;
        min-height: 100vh;
    }

    /* Filtros estilo iOS */
    .ios-filters {
        width: 100%;
        margin: 0;
        padding: 12px 16px;
        background: transparent !important;
    }

    .ios-filters .btn-group {
        display: flex;
        width: 100%;
        gap: 6px;
        padding: 0;
        background: transparent;
    }

    .ios-filters .btn {
        flex: 1;
        background: #F2F2F7 !important;
        border: none !important;
        color: #007AFF !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
        border-radius: 20px !important;
        font-weight: 500 !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
        transition: all 0.2s ease;
        margin: 0 !important;
        letter-spacing: -0.2px;
        white-space: nowrap;
        text-align: center;
    }

    .ios-filters .btn.active {
        background: #007AFF !important;
        color: #FFFFFF !important;
        font-weight: 600 !important;
    }

    /* Mantener el fondo blanco en el encabezado */
    .content-header {
        margin: 0;
        background: #FFFFFF;
    }

    /* Título de actividad */
    .activity-title {
        font-size: 17px;
        font-weight: 600;
        color: #000000;
        margin-bottom: 4px;
        letter-spacing: -0.4px;
    }

    /* Centro */
    .activity-center {
        font-size: 15px;
        color: #6B6B6B;
        margin-bottom: 8px;
        letter-spacing: -0.2px;
    }

    /* Badges de estado */
    .status-badge {
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: -0.1px;
    }

    .status-badge.completada {
        background: #34C759;
        color: white;
    }

    .status-badge.en-proceso {
        background: #007AFF;
        color: white;
    }

    .status-badge.pendiente {
        background: #FFD60A;
        color: #000;
    }

    .status-badge.cancelada {
        background: #FF3B30;
        color: white;
    }

    .status-badge.bloqueada {
        background: #8E8E93;
        color: white;
    }

    /* Info adicional */
    .activity-info {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: #8E8E93;
        margin: 12px 0;
        letter-spacing: -0.2px;
    }

    /* Botón de completar formularios */
    .btn-info {
        background: #007AFF !important;
        border: none !important;
        padding: 12px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        border-radius: 12px !important;
        letter-spacing: -0.3px;
    }

    /* Botón ver detalles */
    .ver-detalles {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 0 0;
        margin-top: 12px;
        border-top: 1px solid rgba(0,0,0,0.1);
        font-size: 15px;
        color: #007AFF;
        font-weight: 500;
        letter-spacing: -0.2px;
    }

    .ver-detalles i {
        color: #8E8E93;
        font-size: 13px;
    }

    /* Contenedor principal */
    .activities-mobile {
        padding: 0;
        background: #FFFFFF;
        margin: 0;
        border-left: 0;
        border-right: 0;
    }

    /* Contenedor de la página */
    .content-wrapper {
        margin: 0;
        padding: 0;
        border: none;
    }

    .content {
        padding: 0;
        margin: 0;
        border: none;
    }

    /* Tarjetas de actividad */
    .activity-card {
        border-left: 0;
        border-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Eliminar márgenes y bordes de los filtros */
    .ios-filters {
        margin: 0;
        padding: 0;
        border: none;
    }

    .ios-filters .btn-group {
        margin: 0;
        padding: 0;
        border: none;
    }

    /* Mantener el fondo y otros estilos */
    .activities-mobile {
        background: #F5F5F5;
    }

    /* Estilo iOS para el título principal */
    h1 {
        text-align: center !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #000000 !important;
        margin: 12px auto 8px auto !important;
        padding: 0 16px !important;
        letter-spacing: -0.4px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    }

    /* Contenedor del título */
    .content-header {
        background: #F5F5F5 !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    }

    /* Actividades individuales */
    .activity-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 16px;
        margin: 0;
    }

    .activity-item:last-child {
        border-bottom: none;
    }

    /* Primera y última actividad con bordes redondeados */
    .activity-item:first-child {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .activity-item:last-child {
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    /* Eliminar padding y márgenes de contenedores */
    .activities-container,
    .activities-mobile,
    .container-fluid,
    .content,
    .content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Ajustar los filtros para que ocupen todo el ancho */
    .ios-filters {
        width: 100%;
        margin: 0;
        padding: 12px 16px;
    }

    /* Eliminar bordes y sombras del contenedor principal */
    .card {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* Contenedor de actividades con ancho máximo y centrado */
    .activities-container {
        max-width: 600px !important;
        margin: 0 auto !important;
        padding: 16px !important;
    }

    /* Ajustar el contenedor principal */
    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Ocultar "Mis actividades asignadas" y breadcrumb */
    .card-header h3,
    .card-header .h3,
    .breadcrumb {
        display: none !important;
    }

    /* Contenedor del header limpio */
    .content-header {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Colores de iconos */
.formulario-icon i.text-success { color: #34C759; }
.formulario-icon i.text-primary { color: #007AFF; }
.formulario-icon i.text-danger { color: #FF3B30; }
.formulario-icon i.text-secondary { color: #8E8E93; }

/* Colores de progreso */
.progress-bar.bg-success { background-color: #34C759; }
.progress-bar.bg-warning { background-color: #FF9500; }
.progress-bar.bg-danger { background-color: #FF3B30; }

/* Estilos para la versión móvil */
.activities-mobile {
    padding: 16px;
    background: transparent;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.activity-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.ios-status {
    font-size: 13px;
    color: #8E8E93;
    background: #E5E5EA;
    padding: 4px 8px;
    border-radius: 4px;
}

.activity-meta {
    margin-bottom: 16px;
}

.activity-center {
    font-size: 15px;
    color: #6B6B6B;
    display: block;
    margin-bottom: 4px;
}

.activity-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #8E8E93;
}

.ios-progress-container {
    margin: 16px 0;
}

.ios-progress {
    height: 4px;
    background: #E5E5EA;
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-percentage {
    font-size: 13px;
    color: #8E8E93;
    text-align: right;
}

.ios-icons {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    color: #8E8E93;
    font-size: 20px;
}

.ios-button {
    width: 100%;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    margin: 16px 0;
}

.ios-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border: none;
    background: none;
    color: #007AFF;
    font-size: 15px;
    border-top: 1px solid #E5E5EA;
    margin-top: 8px;
}

.activity-info-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #8E8E93;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-close:hover {
    color: #FF3B30;
}

/* Estilos para los estados */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    text-align: center;
    min-width: 100px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

/* Estados con colores más sutiles */
.status-badge.pendiente {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-badge.cancelada {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-badge.completada {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-badge.en-proceso {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-badge.bloqueada {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* Hover effects sutiles */
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Centrado en la tabla */
td .status-badge {
    margin: 0 auto;
    display: table;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
        min-width: 90px;
    }
}

/* Animación suave al cambiar estados */
.status-badge {
    transition: all 0.3s ease;
}

/* Estilos para el contenedor del estado en la tabla */
td:has(.status-badge) {
    text-align: center;
    vertical-align: middle;
}

/* Mantener solo los estilos del botón de filtro principal */
.btn-outline-primary.filter-btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary.filter-btn:hover {
    background-color: #007bff15;
}

.btn-outline-primary.filter-btn i {
    margin-right: 6px;
}

/* Estilos para el modal de filtros */
#modalFiltros .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#modalFiltros .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem;
}

#modalFiltros .modal-title {
    font-weight: 600;
    color: #333;
}

#modalFiltros .list-group {
    padding: 0.5rem;
}

#modalFiltros .list-group-item {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

#modalFiltros .list-group-item:last-child {
    margin-bottom: 0;
}

#modalFiltros .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

#modalFiltros .list-group-item.active {
    background-color: #007bff15;
    color: #007bff;
    border-color: #007bff;
}

#modalFiltros .badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 15px;
}

#modalFiltros .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-outline-primary.filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    #modalFiltros .list-group-item {
        padding: 0.75rem 1rem;
    }
}

/* Ocultar los filtros originales */
.btn-group[data-filter] {
    display: none !important;
}

.ios-filters {
    display: none !important;
}

/* Ocultar los botones de filtro de DataTables */
#tablaMisActividades_wrapper .col-12.col-md-6:first .btn-group {
    display: none !important;
}