/* ====== ESTILOS GENERALES (login + dashboard) ====== */
.techsecure-dashboard-wrap,
.techsecure-auth-wrapper {
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ====== AUTH (login/registro) ====== */

.techsecure-auth-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #dbe2f0, #eef2f7 40%, #f8fafc 100%);
}

.techsecure-card-auth {
    max-width: 420px;
    width: 100%;
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 28px 24px;
}

.techsecure-tabs-auth {
    display: flex;
    border-radius: 999px;
    background: #eceff1;
    padding: 4px;
    margin-bottom: 16px;
}

.techsecure-tab-auth {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #455a64;
}

.techsecure-tab-auth.active {
    background: #455a64;
    color: #ffffff;
}

.techsecure-errors-auth {
    margin-bottom: 10px;
    border-radius: 14px;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 10px 12px;
    color: #c62828;
    font-size: 13px;
}

.techsecure-errors-auth ul {
    margin: 0;
    padding-left: 18px;
}

.techsecure-fields-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.techsecure-label-auth {
    font-size: 12px;
    font-weight: 600;
    color: #37474f;
    margin-bottom: 3px;
}

.techsecure-input-auth {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #cfd8dc;
    padding: 9px 11px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.techsecure-input-auth:focus {
    border-color: #546e7a;
    box-shadow: 0 0 0 1px rgba(84,110,122,0.35);
}

.techsecure-remember-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #455a64;
}

.techsecure-btn-auth {
    width: 100%;
    border-radius: 16px;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    background: #455a64;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.05s ease;
}

.techsecure-btn-auth:hover {
    background: #37474f;
    transform: translateY(-1px);
}

.techsecure-footer-auth {
    margin-top: 12px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

/* ====== DASHBOARD ====== */

.ts-dashboard-container {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: calc(100vh - 40px);
    background: #f3f4f6;
    color: #111827;
}

/* Sidebar */
.ts-sidebar {
    background: #111827;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.ts-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 18px;
}

.ts-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ts-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ts-sidebar-item i {
    font-size: 14px;
}

.ts-sidebar-item span {
    display: none;
}

.ts-sidebar-item--active,
.ts-sidebar-item:hover {
    background: #374151;
    color: #f9fafb;
}

@media (min-width: 900px) {
    .ts-dashboard-container {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .ts-sidebar-item span {
        display: inline;
    }
}

/* Main */
.ts-main {
    padding: 16px 18px 32px;
}

/* Topbar */
.ts-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ts-topbar-title {
    font-size: 20px;
    font-weight: 800;
}

.ts-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-user-info {
    text-align: right;
    font-size: 12px;
}

.ts-user-name {
    font-weight: 700;
    display: block;
}

.ts-user-role {
    color: #6b7280;
}

.ts-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

/* Layout rows */
.ts-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.ts-row-stats {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.ts-row-charts {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
}

@media (min-width: 900px) {
    .ts-row-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Cards */
.ts-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.ts-card--highlight {
    background: #111827;
    color: #f9fafb;
}

.ts-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.ts-card--highlight .ts-card-label {
    color: #9ca3af;
}

.ts-card-value {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 800;
}

.ts-card-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
}

.ts-card--highlight .ts-card-footer {
    color: #e5e7eb;
}

.ts-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ts-card-title {
    font-size: 14px;
    font-weight: 700;
}

.ts-card-subtitle {
    font-size: 11px;
    color: #9ca3af;
}

.ts-card-body {
    margin-top: 4px;
}

.ts-card-chart {
    padding: 14px 16px 10px;
}

.ts-card-body--flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ts-card-chart-inner {
    min-width: 140px;
    max-width: 200px;
}

/* Legend & dots */
.ts-legend {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 12px;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ts-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 6px;
    background: #9ca3af;
}

.ts-dot--1 { background: #4b5563; }
.ts-dot--2 { background: #9ca3af; }
.ts-dot--3 { background: #d1d5db; }
.ts-dot--4 { background: #e5e7eb; }

/* Table */
.ts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ts-table thead {
    background: #f9fafb;
}

.ts-table th,
.ts-table td {
    padding: 8px 6px;
    text-align: left;
}

.ts-table th {
    font-weight: 700;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.ts-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Badges */
.ts-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.ts-badge--success {
    background: #dcfce7;
    color: #166534;
}

.ts-badge--warning {
    background: #fef9c3;
    color: #92400e;
}

.ts-badge--muted {
    background: #e5e7eb;
    color: #374151;
}
