/* ---------------------------------------------------------
   WEMSYS ADMIN — ESTILO SaaS MODERNO
   --------------------------------------------------------- */

/* Contenedor general */
body.wp-admin .wemsys-container {
    padding: 20px;
    max-width: 1400px;
}

/* Títulos */
.wemsys-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1f2937;
}

.wemsys-card h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* Tarjetas */
.wemsys-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Tarjetas pequeñas del dashboard */
.wemsys-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #374151;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-active { background: #10b981; }
.badge-inactive { background: #f59e0b; }
.badge-banned { background: #ef4444; }

.badge-role-user { background: #6b7280; }
.badge-role-admin { background: #3b82f6; }
.badge-role-superadmin { background: #8b5cf6; }

/* Tabla moderna */
.wemsys-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.wemsys-table th {
    text-align: left;
    padding: 10px;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
}

.wemsys-table td {
    background: #ffffff;
    padding: 14px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    vertical-align: middle;
}

.wemsys-table tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.wemsys-table tr td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Botones */
.wemsys-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.wemsys-btn-primary {
    background: #3b82f6;
    color: white;
}

.wemsys-btn-primary:hover {
    background: #2563eb;
}

.wemsys-btn-danger {
    background: #ef4444;
    color: white;
}

.wemsys-btn-danger:hover {
    background: #dc2626;
}

.wemsys-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.wemsys-btn-secondary:hover {
    background: #d1d5db;
}

/* Inputs */
.wemsys-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    margin-bottom: 12px;
}

.wemsys-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* Switch (biometría) */
.wemsys-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.wemsys-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wemsys-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #d1d5db;
    transition: .4s;
    border-radius: 24px;
}

.wemsys-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.wemsys-switch input:checked + .wemsys-slider {
    background-color: #10b981;
}

.wemsys-switch input:checked + .wemsys-slider:before {
    transform: translateX(22px);
}

/* Gráficos */
canvas {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .wemsys-card {
        padding: 15px;
    }
    .wemsys-title {
        font-size: 22px;
    }
}