/* --- Ojo de Dios - SuperAdmin MUROTECH (Flat & Dense Premium) --- */
@import url("./shared/tokens.css");

.super-admin-main {
    padding: 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.super-admin-container {
    width: 100%;
    max-width: 1400px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    animation: fadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInScale {
    from { transform: scale(0.98); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Header Section */
.admin-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-title-group h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -1.5px;
    font-weight: 900;
}

.admin-title-group p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Login/Logout Button */
.btn-login-container {
    display: flex;
    gap: 12px;
}

.btn-nav {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-login {
    background: var(--grad-premium);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: white;
    border: 1px solid var(--murotech-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
}

.metric-content h3 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
}

/* Tabs Navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.03);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables Section */
.section-box {
    background: white;
    border: 1px solid var(--murotech-gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Filters and Actions */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.fi {
    padding: 12px 18px;
    border: 1.5px solid var(--murotech-gray-200);
    border-radius: 12px;
    background: var(--bg-main);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.fi:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Data Table Styling (Flat & Dense) */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--murotech-gray-200);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background: var(--bg-main);
    padding: 14px 18px;
    text-align: left;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--murotech-gray-200);
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--murotech-gray-50);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: var(--primary-light);
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 4px;
}

.btn-primary { background: var(--primary-light); color: var(--primary); }
.btn-primary:hover { background: var(--primary); color: white; }

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

.btn-success { background: #dcfce7; color: #10b981; }
.btn-success:hover { background: #10b981; color: white; }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge.inactive { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.status-badge.super { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .super-admin-main { padding: 15px; }
    .super-admin-container { padding: 20px; }
    .admin-header { flex-direction: column; gap: 20px; }
    .admin-title-group h1 { font-size: 2rem; }
    .btn-login-container { width: 100%; }
    .btn-nav { flex: 1; justify-content: center; }
    .metrics-grid { grid-template-columns: 1fr; }
    .tab-nav { width: 100%; overflow-x: auto; }
}
