/* Nexia Dashboard Stylesheet - Matching Gestio/Geslog/SumarMas Design System */
:root {
    --sidebar-bg: #1a1a3d;
    --sidebar-hover: #2a2a5d;
    --sidebar-active: #22336b;
    --nexia-primary: #19C6B7;
    --nexia-secondary: #605BE5;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --border-color: #eaeaea;
    --radius-md: 12px;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.dashboard-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Layout matching Gestio / Geslog / SumarMas */
.sidebar {
    width: 270px;
    background-color: var(--sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-logo, .sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-link {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.sidebar-logo img, .sidebar-header img {
    max-height: 55px;
    max-width: 90%;
    background-color: #ffffff;
    padding: 6px 16px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #8b8ba7;
    padding: 14px 24px 6px;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    color: #a0a0bd;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover);
}

.sidebar-link.active {
    color: #ffffff;
    background-color: var(--sidebar-active);
    border-left-color: var(--nexia-primary);
}

.sidebar-link i {
    width: 20px;
    font-size: 1.15rem;
    color: var(--nexia-primary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--bg-light);
}

.topbar {
    background-color: #ffffff;
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.content-container {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Dashboard Cards System */
.nexia-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 24px;
}

.nexia-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.nexia-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a3d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nexia-card-title i {
    color: var(--nexia-primary);
}

/* Stat Cards */
.stat-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary { background: rgba(25, 198, 183, 0.12); color: var(--nexia-primary); }
.stat-icon.secondary { background: rgba(96, 91, 229, 0.12); color: var(--nexia-secondary); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.stat-icon.success { background: rgba(16, 185, 129, 0.12); color: #047857; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a3d;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Badges & Tables */
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}
.badge-status.pendiente { background: #fef3c7; color: #b45309; }
.badge-status.verificado { background: #d1fae5; color: #047857; }
.badge-status.rechazado { background: #fee2e2; color: #b91c1c; }

/* Buttons */
.btn-nexia-primary {
    background: linear-gradient(135deg, var(--nexia-primary), #0cb5a6);
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(25, 198, 183, 0.25);
    transition: all 0.2s ease;
}

.btn-nexia-primary:hover {
    background: linear-gradient(135deg, #16b0a3, #089c8e);
    color: #ffffff;
}

.btn-nexia-secondary {
    background: linear-gradient(135deg, var(--nexia-secondary), #4f46e5);
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
}
