/* ==============================================
   ESTILOS PARA DASHBOARD PRINCIPAL
   ============================================== */

/* Indicadores de urgencia para formularios */
.formulario-urgente-dashboard {
    border-left: 4px solid #d9534f !important;
    background-color: #fff5f5 !important;
    animation: subtle-pulse 3s infinite;
}

.badge-urgente-dashboard {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background: #d9534f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
    animation: bounce 1s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Mejoras para badges de estadísticas */
.stats-dashboard .badge {
    font-size: 10px;
    padding: 2px 6px;
    margin: 1px;
    transition: all 0.2s ease;
}

    .stats-dashboard .badge:hover {
        transform: scale(1.05);
    }

.stat-line.urgente {
    margin-bottom: 5px;
}

.stat-line.principal .badge {
    font-size: 9px;
}

.stat-line.secundaria {
    margin-top: 3px;
}

.nuevo {
    background: url(images/nuevo.png) no-repeat;
    background-size: 55px;
    background-position-x: right;
}

.panel-default > .panel-heading {
    font-weight: bolder;
    color: gray;
    background-color: #f5f5f5;
    border-color: #ddd;
    text-align: center;
}

.checkbox {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    font-size: 1.5em;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

.huge {
    font-size: 40px;
}

/* Paneles de colores */
.panel-green {
    border-color: #5cb85c;
}

    .panel-green > .panel-heading {
        border-color: #5cb85c;
        color: white;
        background-color: #5cb85c;
    }

.panel-yellow {
    border-color: #f0ad4e;
}

    .panel-yellow > .panel-heading {
        border-color: #f0ad4e;
        color: white;
        background-color: #f0ad4e;
    }

.panel-red {
    border-color: #d9534f;
}

    .panel-red > .panel-heading {
        border-color: #d9534f;
        color: white;
        background-color: #d9534f;
    }

.panel-blue {
    border-color: #007cb4;
}

    .panel-blue > .panel-heading {
        border-color: #007cb4;
        color: white;
        background-color: #007cb4;
    }

.panel-brown {
    border-color: #9f4e00
}

    .panel-brown > .panel-heading {
        border-color: #9f4e00;
        color: white;
        background-color: #9f4e00;
    }

.panel-cyan {
    border-color: #00829f;
}

    .panel-cyan > .panel-heading {
        border-color: #00829f;
        color: white;
        background-color: #00829f;
    }

.panel-violet {
    border-color: #9d00a8;
}

    .panel-violet > .panel-heading {
        border-color: #9d00a8;
        color: white;
        background-color: #9d00a8;
    }

.panel-orange {
    border-color: #ee9a00;
}

    .panel-orange > .panel-heading {
        border-color: #ee9a00;
        color: white;
        background-color: #ee9a00;
    }

.panel-salmon {
    border-color: salmon;
}

    .panel-salmon > .panel-heading {
        border-color: salmon;
        color: white;
        background-color: salmon;
    }

.panel-olive {
    border-color: olive;
}

    .panel-olive > .panel-heading {
        border-color: olive;
        color: white;
        background-color: olive;
    }

.panel-coral {
    border-color: coral;
}

    .panel-coral > .panel-heading {
        border-color: coral;
        color: white;
        background-color: coral;
    }

.feed-element h3 {
    font-weight: 200;
    font-size: 18px;
}

    .feed-element h3 a {
        color: slategray;
    }

/* ==============================================
   ESTILOS PARA FORMULARIOS
   ============================================== */

/* Estilos para estadísticas de formularios */
.formulario-stats {
    font-size: 11px;
    line-height: 1.2;
}

.stat-badge {
    display: inline-block;
    padding: 2px 6px;
    margin: 1px;
    border-radius: 3px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .stat-badge:hover {
        transform: scale(1.1);
        text-decoration: none;
        color: white;
    }

    .stat-badge.recibidos {
        background-color: #f0ad4e;
    }

        .stat-badge.recibidos:hover {
            background-color: #ec971f;
        }

    .stat-badge.revisados {
        background-color: #5bc0de;
    }

        .stat-badge.revisados:hover {
            background-color: #46b8da;
        }

    .stat-badge.nuevos {
        background-color: #5cb85c;
        animation: pulse-new 2s infinite;
        box-shadow: 0 0 5px rgba(92, 184, 92, 0.5);
    }

        .stat-badge.nuevos:hover {
            background-color: #449d44;
            animation: none;
        }

    .stat-badge.pendientes {
        background-color: #d9534f;
    }

        .stat-badge.pendientes:hover {
            background-color: #c9302c;
        }

@keyframes pulse-new {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estilos para filas de formularios */
.border-bottom {
    border-bottom: 1px solid #eee !important;
    margin-bottom: 10px;
    padding-bottom: 10px;
    transition: background-color 0.2s ease;
}

.formulario-item:hover {
    background-color: #f9f9f9;
}

/* Estilos para notificación personalizada */
.notificacion-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    animation: slideInRight 0.5s ease;
}

.notif-header {
    background: #5cb85c;
    color: white;
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    position: relative;
}

.notif-close {
    position: absolute;
    right: 10px;
    top: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.notif-body {
    padding: 15px;
    line-height: 1.4;
}

.notif-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    text-align: right;
    border-radius: 0 0 6px 6px;
    background: #f9f9f9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Indicador visual en el título del panel de formularios */
.panel-heading .nuevos-indicator {
    background: #5cb85c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 10px;
    animation: pulse-new 2s infinite;
}

/* Utilidades de espaciado */
.mb-15 {
    margin-bottom: 15px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 2px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .notificacion-custom {
        width: 90%;
        right: 5%;
    }

    .stat-badge {
        font-size: 10px;
        padding: 1px 4px;
    }

    .formulario-stats {
        font-size: 10px;
    }

    .huge {
        font-size: 30px;
    }

    .panel-heading {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stat-badge {
        font-size: 9px;
        padding: 1px 3px;
        margin: 0.5px;
    }

    .border-bottom {
        padding: 5px;
        margin-bottom: 5px;
    }

    .notificacion-custom {
        width: 95%;
        right: 2.5%;
        top: 10px;
    }
}
