﻿:root {
    --primary: #1456d9;
    --primary-dark: #0f3f9f;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: "Segoe UI", Arial, sans-serif;
}

.siglad-header {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.siglad-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.siglad-logo {
    width: 34px;
    height: 34px;
}

.siglad-name {
    font-size: 28px;
    font-weight: 800;
    color: #143b82;
}

.siglad-divider {
    width: 1px;
    height: 28px;
    background: #cbd5e1;
    margin-left: 10px;
}

.siglad-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.siglad-userbar {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #334155;
    font-weight: 700;
}

.siglad-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 76px;
    bottom: 0;
    left: 0;
    padding-top: 24px;
}

.menu-link {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 26px;
    color: #64748b;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-right: 4px solid transparent;
}

    .menu-link i {
        font-size: 24px;
    }

    .menu-link:hover,
    .menu-link.active {
        background: #eef5ff;
        color: var(--primary);
        border-right-color: var(--primary);
    }

    .menu-link.disabled {
        opacity: .45;
        pointer-events: none;
        cursor: not-allowed;
    }

.siglad-main {
    margin-left: 280px;
    padding: 100px 36px 40px;
}

.alert-box {
    background: #fff8e6;
    border: 1px solid #fdecc8;
    border-left: 5px solid var(--warning);
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
}

.alert-icon {
    color: var(--warning);
    font-size: 32px;
}

.alert-content {
    flex: 1;
}

    .alert-content h4 {
        margin: 0;
        font-size: 22px;
        font-weight: 800;
        color: #92400e;
    }

    .alert-content p {
        margin: 4px 0 0;
        font-size: 16px;
        color: #92400e;
    }

.btn-alert {
    border: none;
    background: #f59e0b;
    color: white;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 800;
    min-width: 210px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px;
    min-height: 150px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

    .stat-card h5 {
        color: #64748b;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 14px;
    }

    .stat-card strong {
        display: block;
        font-size: 38px;
        line-height: 1;
        font-weight: 900;
    }

.green {
    color: var(--success);
}

.orange {
    color: var(--warning);
}

.success {
    color: var(--success);
    font-weight: 600;
    margin-top: 10px;
}

.danger {
    color: var(--danger);
    font-weight: 600;
    margin-top: 10px;
}

.roi {
    border-left: 5px solid var(--primary);
}

.section-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 22px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.module-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 330px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.module-top {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .module-top i {
        font-size: 58px;
    }

    .module-top.blue {
        background: #eff6ff;
        color: #3b82f6;
    }

    .module-top.green-bg {
        background: #ecfdf5;
        color: #22c55e;
    }

    .module-top.purple {
        background: #faf5ff;
        color: #a855f7;
    }

.module-body {
    padding: 24px;
}

    .module-body h3 {
        font-size: 21px;
        font-weight: 900;
        margin-bottom: 12px;
    }

    .module-body p {
        color: #64748b;
        font-size: 16px;
        line-height: 1.5;
    }

    .module-body a {
        color: var(--primary);
        font-weight: 800;
        text-decoration: none;
        font-size: 17px;
    }

.disabled-card {
    opacity: .45;
    pointer-events: none;
    filter: grayscale(10%);
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .siglad-sidebar {
        display: none;
    }

    .siglad-main {
        margin-left: 0;
        padding: 100px 18px 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .siglad-subtitle,
    .siglad-userbar span {
        display: none;
    }
}




/*   inicio de login */

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 430px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 38px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
    border: 1px solid #e5e7eb;
}

.login-logo {
    text-align: center;
    margin-bottom: 22px;
}

    .login-logo img {
        max-width: 190px;
    }

.login-card h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
}

.login-card p {
    text-align: center;
    color: #64748b;
    margin-bottom: 28px;
}

.login-card label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.login-card .form-control {
    height: 48px;
    border-radius: 10px;
}

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: #1456d9;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

    .btn-login:hover {
        background: #0f3f9f;
    }


/*   fim de login */ 


/*estilo visual del dropdown para cierre de sesion*/

.notification-icon {
    font-size: 18px;
    color: #64748b;
}

.user-avatar-btn {
    text-decoration: none;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1456d9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: .2s;
}

    .user-avatar:hover {
        background: #0f3f9f;
        transform: scale(1.05);
    }

.user-dropdown {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 40px rgba(15, 23, 42, .12);
    min-width: 280px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.user-dropdown-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
}

.user-avatar-large {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1456d9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.user-dropdown strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
}

.user-dropdown small {
    color: #64748b;
    font-size: 13px;
}

.user-dropdown .dropdown-item {
    padding: 12px 18px;
    font-weight: 600;
    color: #334155;
}

    .user-dropdown .dropdown-item:hover {
        background: #eef5ff;
        color: #1456d9;
    }
/* fin estilo visual cierre de sesion   */
