/**
 * QTZ Sistema de Incidencias - Estilos Admin
 * Estilos específicos para el panel de administración
 */

/* ==============================================
   CONTENEDOR ADMIN
   ============================================== */

.qtz-admin-page {
    background: #ffffff;
    margin: 20px 0;
}

.qtz-admin-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.qtz-admin-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
}

.qtz-admin-content {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    border-top: none;
}

/* ==============================================
   TARJETAS DE ESTADÍSTICAS
   ============================================== */

.qtz-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.qtz-stat-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qtz-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87);
}

.qtz-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.qtz-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0073aa;
    margin: 0;
    line-height: 1;
}

.qtz-stat-label {
    font-size: 14px;
    color: #666666;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Colores específicos para diferentes estadísticas */
.qtz-stat-card.danger .qtz-stat-number {
    color: #dc3545;
}

.qtz-stat-card.danger::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.qtz-stat-card.warning .qtz-stat-number {
    color: #ffc107;
}

.qtz-stat-card.warning::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.qtz-stat-card.success .qtz-stat-number {
    color: #28a745;
}

.qtz-stat-card.success::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

/* ==============================================
   TABLAS ADMIN
   ============================================== */

.qtz-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.qtz-admin-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qtz-admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.qtz-admin-table tr:hover {
    background-color: #f8f9fa;
}

.qtz-admin-table tr:last-child td {
    border-bottom: none;
}

/* ==============================================
   FILTROS ADMIN
   ============================================== */

.qtz-admin-filters {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.qtz-admin-filters .qtz-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.qtz-admin-filters .qtz-filter-group {
    flex: 1;
    min-width: 200px;
}

.qtz-admin-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333333;
    font-size: 13px;
}

.qtz-admin-filters select,
.qtz-admin-filters input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* ==============================================
   BOTONES ADMIN
   ============================================== */

.qtz-admin-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qtz-admin-btn-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.qtz-admin-btn-primary:hover {
    background-color: #005a87;
    color: #ffffff;
}

.qtz-admin-btn-small {
    padding: 6px 12px;
    font-size: 11px;
}

.qtz-admin-btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.qtz-admin-btn-danger:hover {
    background-color: #c82333;
    color: #ffffff;
}

/* ==============================================
   REPORTES
   ============================================== */

.qtz-report-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.qtz-report-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.qtz-report-header h3 {
    margin: 0;
    color: #333333;
    font-size: 18px;
}

.qtz-report-content {
    padding: 20px;
}

.qtz-chart-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666666;
}

/* ==============================================
   RESPONSIVO ADMIN
   ============================================== */

@media (max-width: 768px) {
    .qtz-admin-header {
        padding: 20px;
    }
    
    .qtz-admin-content {
        padding: 20px;
    }
    
    .qtz-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .qtz-admin-filters .qtz-filters-row {
        flex-direction: column;
    }
    
    .qtz-admin-filters .qtz-filter-group {
        min-width: 100%;
    }
    
    .qtz-admin-table {
        font-size: 12px;
    }
    
    .qtz-admin-table th,
    .qtz-admin-table td {
        padding: 10px 8px;
    }
}

/* ==============================================
   ESTADOS DE CARGA ADMIN
   ============================================== */

.qtz-admin-loading {
    text-align: center;
    padding: 40px;
    color: #666666;
}

.qtz-admin-loading::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: qtz-admin-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes qtz-admin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================================
   NOTIFICACIONES ADMIN
   ============================================== */

.qtz-admin-notice {
    padding: 15px 20px;
    margin: 15px 0;
    border-left: 4px solid;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.qtz-admin-notice.success {
    background-color: #d1fae5;
    border-left-color: #059669;
    color: #065f46;
}

.qtz-admin-notice.error {
    background-color: #fee2e2;
    border-left-color: #dc2626;
    color: #991b1b;
}

.qtz-admin-notice.warning {
    background-color: #fef3c7;
    border-left-color: #d97706;
    color: #92400e;
}

.qtz-admin-notice.info {
    background-color: #dbeafe;
    border-left-color: #2563eb;
    color: #1e40af;
}



/*
CSS Sub Menu list
*/


.qtz-menulist-wrapper, nav.qtz-menu-list-container, nav.qtz-menu-list-container ul{
    width: 100%;
    display: flex;
    position: relative;
}
nav.qtz-menu-list-container ul{
    padding: 10px 0;
}

nav.qtz-menu-list-container ul li{
    padding: 0 7px;
    list-style: none;
    color:#05dbf2;
}
nav.qtz-menu-list-container ul li a{
    color:#05dbf2;
    padding: 10px;
    border-bottom: #024059bb 3px solid;
    background-color: #eef1f2;
    border-radius: 6% 6% 2px 2px;
}
nav.qtz-menu-list-container ul li a:hover{
    color:#05dbf2;
    padding: 10px;
    border-bottom: #eef1f2 3px solid;
    background-color: #024059bb;
    border-radius: 6% 6% 2px 2px;
}

/* CSS Nueva insidencia*/

.qtz-input-disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #e9ecef !important;
    cursor: not-allowed !important;
}

/* Estilos base para todos los shortcodes */
.qtz-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #e53e3e;
}

.qtz-error h4 {
    margin-bottom: 10px;
    color: #c53030;
}

.qtz-error-details {
    background: #ffffff;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    padding: 10px;
    margin: 15px 0;
    font-size: 12px;
    text-align: left;
}

.qtz-error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.qtz-btn {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.qtz-btn:hover {
    background: #2980b9;
}

.qtz-btn-secondary {
    background: #95a5a6;
}

.qtz-btn-secondary:hover {
    background: #7f8c8d;
}

.qtz-select, .qtz-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Loading spinner */
.qtz-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.qtz-btn-outline {
    background: transparent;
    border: 1px solid #e53e3e;
    color: #e53e3e;
}

.qtz-btn-outline:hover {
    background: #e53e3e;
    color: white;
}