:root {
    --gc-red: #E50000;
    --gc-black: #1A1A1A;
    --gc-gray: #6C757D;
    --gc-bg: #F0F4F8;
    --gc-green: #28A745;
    --gc-yellow: #FFC107;
    --gc-white: #FFFFFF;
    --gc-border: #DEE2E6;
    --gc-shadow: 0 12px 30px rgba(26, 26, 26, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--gc-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--gc-black);
    margin: 0;
}

/* Estructura */

.gc-wrapper {
    display: flex;
    min-height: 100vh;
}

.gc-sidebar {
    width: 280px;
    background: var(--gc-black);
    color: var(--gc-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
}

.gc-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.gc-content {
    padding: 28px;
}

/* Sidebar */

.gc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gc-logo {
    width: 48px;
    height: 48px;
    background: var(--gc-red);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    font-size: 24px;
}

.gc-sidebar-brand h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 800;
}

.gc-sidebar-brand span {
    color: #BFC5CC;
    font-size: 12px;
}

.gc-menu {
    padding: 18px 14px;
    flex: 1;
}

.gc-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #D8DEE5;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.gc-menu-link i {
    font-size: 18px;
}

.gc-menu-link:hover {
    background: rgba(229, 0, 0, 0.16);
    color: var(--gc-white);
}

.gc-menu-link.active {
    background: var(--gc-red);
    color: var(--gc-white);
}

.gc-sidebar-footer {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gc-sidebar-footer small {
    display: block;
    color: #BFC5CC;
}

.gc-sidebar-footer strong {
    color: var(--gc-white);
}

/* Navbar */

.gc-navbar {
    height: 86px;
    background: var(--gc-white);
    border-bottom: 1px solid var(--gc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.gc-navbar h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.gc-navbar p {
    margin: 4px 0 0 0;
    color: var(--gc-gray);
    font-size: 14px;
}

.gc-role-badge {
    background: var(--gc-black);
    color: var(--gc-white);
    padding: 9px 14px;
    border-radius: 20px;
}

/* Cards */

.gc-card {
    background: var(--gc-white);
    border: 1px solid var(--gc-border);
    border-radius: 18px;
    box-shadow: var(--gc-shadow);
    padding: 22px;
}

.gc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.gc-card-header h4,
.gc-card h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

/* Stats */

.gc-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gc-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gc-white);
    font-size: 26px;
}

.gc-stat-icon.red {
    background: var(--gc-red);
}

.gc-stat-icon.black {
    background: var(--gc-black);
}

.gc-stat-icon.yellow {
    background: var(--gc-yellow);
    color: var(--gc-black);
}

.gc-stat-icon.green {
    background: var(--gc-green);
}

.gc-stat-card span {
    color: var(--gc-gray);
    font-weight: 600;
}

.gc-stat-card h3 {
    margin: 4px 0 0 0;
    font-size: 30px;
    font-weight: 900;
}

/* Tablas */

.gc-table thead th {
    background: #F8F9FA;
    color: var(--gc-black);
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gc-border);
}

.gc-table td {
    vertical-align: middle;
    color: #2F3438;
}

.gc-img-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--gc-border);
    background: #F8F9FA;
}

.gc-empty-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #F8F9FA;
    border: 1px dashed var(--gc-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gc-gray);
    font-size: 24px;
}

/* Botones */

.btn-gc-primary {
    background: var(--gc-red);
    border: 1px solid var(--gc-red);
    color: var(--gc-white);
    font-weight: 700;
}

.btn-gc-primary:hover {
    background: #BD0000;
    border-color: #BD0000;
    color: var(--gc-white);
}

.btn-gc-danger {
    background: var(--gc-red);
    border: 1px solid var(--gc-red);
    color: var(--gc-white);
    font-weight: 700;
}

.btn-gc-danger:hover {
    background: #BD0000;
    border-color: #BD0000;
    color: var(--gc-white);
}

.btn-gc-outline {
    border: 1px solid var(--gc-black);
    color: var(--gc-black);
    background: transparent;
    font-weight: 700;
}

.btn-gc-outline:hover {
    background: var(--gc-black);
    color: var(--gc-white);
}

.btn-gc-warning {
    background: var(--gc-yellow);
    border: 1px solid var(--gc-yellow);
    color: var(--gc-black);
    font-weight: 700;
}

.btn-gc-warning:hover {
    background: #E0A800;
    border-color: #E0A800;
    color: var(--gc-black);
}

.btn-gc-success {
    background: var(--gc-green);
    border: 1px solid var(--gc-green);
    color: var(--gc-white);
    font-weight: 700;
}

.btn-gc-success:hover {
    background: #208637;
    border-color: #208637;
    color: var(--gc-white);
}

/* Formularios */

.gc-form-label {
    font-weight: 700;
    color: var(--gc-black);
    margin-bottom: 6px;
}

.gc-form-control,
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--gc-border);
    padding: 11px 13px;
}

.gc-form-control:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--gc-red);
    box-shadow: 0 0 0 0.2rem rgba(229, 0, 0, 0.14);
}

.gc-help {
    color: var(--gc-gray);
    font-size: 13px;
}

/* Permisos */

.gc-permission-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--gc-border);
}

.gc-permission-box i {
    font-size: 28px;
}

.gc-permission-box strong {
    display: block;
    margin-bottom: 4px;
}

.gc-permission-box p {
    margin: 0;
    color: var(--gc-gray);
}

.gc-permission-box.admin {
    background: rgba(229, 0, 0, 0.08);
}

.gc-permission-box.admin i {
    color: var(--gc-red);
}

.gc-permission-box.gerente {
    background: rgba(40, 167, 69, 0.09);
}

.gc-permission-box.gerente i {
    color: var(--gc-green);
}

.gc-permission-box.jefe {
    background: rgba(255, 193, 7, 0.14);
}

.gc-permission-box.jefe i {
    color: #B17D00;
}

/* Alertas */

.gc-alert {
    border-radius: 14px;
    border: none;
    box-shadow: var(--gc-shadow);
}

/* Login */

.gc-login-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.93), rgba(229, 0, 0, 0.78)),
        url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.96);
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gc-login-logo {
    width: 64px;
    height: 64px;
    background: var(--gc-red);
    color: var(--gc-white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    font-size: 32px;
    margin-bottom: 18px;
}

.gc-login-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--gc-black);
    margin-bottom: 4px;
}

.gc-login-subtitle {
    color: var(--gc-gray);
    margin-bottom: 24px;
}

/* Responsive */

@media (max-width: 992px) {
    .gc-sidebar {
        position: static;
        width: 100%;
    }

    .gc-wrapper {
        flex-direction: column;
    }

    .gc-main {
        margin-left: 0;
        width: 100%;
    }

    .gc-navbar {
        height: auto;
        padding: 18px;
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }

    .gc-content {
        padding: 18px;
    }
}
.gc-img-preview {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--gc-border);
    background: #F8F9FA;
    box-shadow: var(--gc-shadow);
}
/* Logo real */

.gc-logo {
    overflow: hidden;
}

.gc-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.gc-login-logo {
    overflow: hidden;
}

.gc-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* Split Screen Login */

.gc-split-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--gc-bg);
}

.gc-split-left {
    position: relative;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.86), rgba(229, 0, 0, 0.62)),
        url('/img/loginxd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gc-white);
    display: flex;
    align-items: center;
    padding: 70px;
    overflow: hidden;
}

.gc-split-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.35), transparent 35%);
}

.gc-split-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.gc-split-logo-box {
    width: 96px;
    height: 96px;
    background: var(--gc-white);
    border-radius: 24px;
    padding: 12px;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.gc-split-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gc-split-content h1 {
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 22px;
}

.gc-split-content p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
}

.gc-split-features {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.gc-split-features div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.gc-split-features i {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.gc-split-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background:
        linear-gradient(180deg, #FFFFFF, #F0F4F8);
}

.gc-split-form-card {
    width: 100%;
    max-width: 430px;
    background: var(--gc-white);
    border: 1px solid var(--gc-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--gc-shadow);
}

/* Responsive Split Login */

@media (max-width: 992px) {
    .gc-split-login {
        grid-template-columns: 1fr;
    }

    .gc-split-left {
        min-height: 360px;
        padding: 38px 24px;
    }

    .gc-split-content h1 {
        font-size: 38px;
    }

    .gc-split-content p {
        font-size: 16px;
    }

    .gc-split-right {
        padding: 24px;
    }
}