* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #172033;
}

body {
    background: #f4f6f9;
}

a {
    text-decoration: none;
}

/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #061b31 0%,
            #0e3156 55%,
            #164b7d 100%
        );

    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex: 1;

    width: 100%;
    max-width: 1050px;

    margin: auto;

    padding: 35px;

    display: grid;

    grid-template-columns:
        1fr
        430px;

    gap: 70px;

    align-items: center;
}

.login-wrapper.single {
    grid-template-columns: 430px;
    justify-content: center;
}

.login-brand {
    color: #ffffff;
}

.login-logo-light {
    max-width: 270px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.brand-text h1 {
    margin: 0 0 12px;

    font-size: 40px;
    font-weight: 700;
}

.brand-text p {
    margin: 0;

    font-size: 18px;

    color: rgba(
        255,
        255,
        255,
        0.82
    );
}

.login-card {
    width: 100%;

    background: #ffffff;

    border-radius: 18px;

    padding: 35px;

    box-shadow:
        0 28px 70px
        rgba(0, 0, 0, 0.30);
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-dark {
    display: block;

    max-width: 210px;
    width: 100%;

    margin:
        0 auto
        25px;

    height: auto;
}

.login-card-header h2 {
    margin: 0;

    font-size: 26px;

    color: #102b4e;
}

.login-card-header p {
    margin:
        8px 0
        0;

    color: #6b7280;

    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #344054;
}

.form-group input {
    width: 100%;
    height: 50px;

    border:
        1px solid
        #d0d5dd;

    border-radius: 9px;

    padding:
        0 14px;

    font-size: 15px;

    color: #1f2937;

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-group input:focus {
    border-color: #17568d;

    box-shadow:
        0 0 0 3px
        rgba(23, 86, 141, .10);
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 80px;
}

.show-password {
    position: absolute;

    right: 8px;
    top: 50%;

    transform:
        translateY(-50%);

    border: none;

    background: transparent;

    color: #17568d;

    cursor: pointer;

    font-weight: 600;
}

.btn-login {
    width: 100%;
    height: 50px;

    border: 0;

    border-radius: 9px;

    background: #123b66;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s;
}

.btn-login:hover {
    background: #0b2d50;
}

.login-help {
    margin-top: 22px;

    text-align: center;

    font-size: 12px;

    line-height: 1.6;

    color: #98a2b3;
}

.login-footer {
    text-align: center;

    color:
        rgba(
            255,
            255,
            255,
            .65
        );

    font-size: 12px;

    padding: 20px;
}

.alert {
    padding:
        13px
        15px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #b42318;

    border:
        1px solid
        #fecdca;
}

.alert-success {
    background: #ecfdf3;
    color: #027a48;

    border:
        1px solid
        #abefc6;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 68px;

    background: #ffffff;

    border-bottom:
        1px solid
        #e4e7ec;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        0
        22px;

    position: fixed;

    left: 0;
    right: 0;
    top: 0;

    z-index: 1000;
}

.topbar-left {
    display: flex;

    align-items: center;

    gap: 13px;
}

.topbar-logo {
    height: 38px;
    width: auto;
}

.topbar-left strong {
    display: block;

    font-size: 15px;

    color: #102b4e;
}

.topbar-left span {
    display: block;

    margin-top: 2px;

    font-size: 11px;

    color: #667085;
}

.menu-toggle {
    display: none;

    border: 0;

    background: none;

    font-size: 25px;

    cursor: pointer;
}

.topbar-user {
    display: flex;

    align-items: center;

    gap: 16px;
}

.topbar-user div {
    text-align: right;
}

.topbar-user strong {
    display: block;

    font-size: 13px;
}

.topbar-user span {
    display: block;

    margin-top: 2px;

    font-size: 11px;

    color: #667085;
}

.logout-button {
    padding:
        9px
        14px;

    border-radius: 7px;

    color: #b42318;

    background: #fef3f2;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   SIDEBAR
========================================================= */

.dashboard-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;

    top: 68px;
    bottom: 0;
    left: 0;

    width: 255px;

    background: #0c2948;

    overflow-y: auto;

    padding:
        22px
        14px;

    transition:
        transform .25s;
}

.sidebar-logo {
    padding:
        0
        13px
        22px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            .10
        );

    margin-bottom: 18px;
}

.sidebar-logo img {
    width: 100%;
    max-width: 185px;

    height: auto;
}

.sidebar-section {
    padding:
        15px
        12px
        8px;

    color:
        rgba(
            255,
            255,
            255,
            .42
        );

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.sidebar-link {
    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        11px
        12px;

    margin-bottom: 3px;

    color: #d7e4f0;

    border-radius: 8px;

    font-size: 13px;

    transition:
        background .2s;
}

.sidebar-link span {
    width: 21px;

    text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #ffffff;

    background:
        rgba(
            255,
            255,
            255,
            .11
        );
}


/* =========================================================
   CONTENT
========================================================= */

.dashboard-content {
    margin-left: 255px;

    padding:
        98px
        28px
        35px;
}

.page-header h1 {
    margin: 0;

    font-size: 25px;

    color: #101828;
}

.page-header p {
    margin:
        7px 0
        0;

    color: #667085;

    font-size: 14px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 17px;

    margin-top: 27px;
}

.stat-card {
    background: #ffffff;

    border:
        1px solid
        #eaecf0;

    border-radius: 12px;

    padding: 21px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, .04);
}

.stat-label {
    font-size: 13px;

    color: #667085;

    font-weight: 600;
}

.stat-number {
    margin-top: 7px;

    font-size: 30px;

    font-weight: 700;

    color: #123b66;
}

.dashboard-panel {
    margin-top: 22px;

    background: #ffffff;

    border:
        1px solid
        #eaecf0;

    border-radius: 12px;

    padding: 25px;
}

.dashboard-panel h2 {
    margin:
        0 0
        10px;

    font-size: 18px;

    color: #102b4e;
}

.dashboard-panel p {
    margin: 0;

    line-height: 1.7;

    color: #667085;

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (
    max-width: 900px
) {

    .login-wrapper {
        grid-template-columns: 1fr;

        max-width: 500px;

        gap: 30px;
    }

    .login-brand {
        text-align: center;
    }

    .login-logo-light {
        max-width: 220px;
    }

    .brand-text h1 {
        font-size: 30px;
    }

    .sidebar {
        transform:
            translateX(-100%);

        z-index: 999;
    }

    .sidebar.sidebar-open {
        transform:
            translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .stats-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (
    max-width: 570px
) {

    .login-wrapper {
        padding: 20px;
    }

    .login-brand {
        display: none;
    }

    .login-card {
        padding:
            30px
            22px;
    }

    .topbar-user div {
        display: none;
    }

    .topbar-logo {
        height: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding:
            90px
            17px
            25px;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
}

/* =========================================================
   CRÉDITO DESARROLLADOR
========================================================= */

.sidebar-credit {
    margin-top: auto;
    padding: 18px 10px 12px;
    text-align: center;

    background: transparent !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}

.sidebar-credit span {
    display: block;

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    opacity: 0.90 !important;

    text-shadow: none !important;
}

/* =========================================================
   FORMULARIOS ADMINISTRATIVOS
========================================================= */

.content-grid {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    margin-top: 25px;
    align-items: start;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.card-title {
    margin-bottom: 22px;
}

.card-title h2 {
    margin: 0;
    color: #102b4e;
    font-size: 18px;
}

.card-title p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group select {
    width: 100%;
    height: 50px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    padding: 0 13px;

    background: #ffffff;
    color: #1f2937;

    font-size: 14px;

    outline: none;
}

.form-group select:focus {
    border-color: #17568d;

    box-shadow:
        0 0 0 3px
        rgba(23, 86, 141, .10);
}

.form-help {
    display: block;

    margin-top: 7px;

    color: #667085;

    font-size: 11px;

    line-height: 1.5;
}

.btn-primary-action {
    width: 100%;
    min-height: 47px;

    border: 0;
    border-radius: 8px;

    background: #123b66;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    padding: 12px 18px;

    cursor: pointer;
}

.btn-primary-action:hover {
    background: #0b2d50;
}


/* =========================================================
   TABLAS
========================================================= */

.table-card {
    min-width: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.admin-table th {
    padding: 12px 13px;

    text-align: left;

    background: #f8fafc;

    color: #475467;

    font-weight: 700;

    border-bottom: 1px solid #eaecf0;

    white-space: nowrap;
}

.admin-table td {
    padding: 13px;

    border-bottom: 1px solid #f0f2f5;

    color: #344054;

    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafcff;
}

.empty-table {
    text-align: center;

    padding: 35px !important;

    color: #98a2b3 !important;
}

.status-select {
    height: 34px;

    padding: 0 8px;

    border: 1px solid #d0d5dd;

    border-radius: 6px;

    background: #ffffff;

    font-size: 12px;
}

.inline-form {
    margin: 0;
}

.page-alert {
    margin-top: 22px;
    margin-bottom: 0;
}

.course-count {
    display: inline-block;

    min-width: 50px;

    padding: 5px 9px;

    border-radius: 20px;

    text-align: center;

    font-size: 12px;
    font-weight: 700;
}

.course-ok {
    background: #ecfdf3;
    color: #027a48;
}

.course-error {
    background: #fef3f2;
    color: #b42318;
}


/* =========================================================
   RESPONSIVE ADMIN
========================================================= */

@media (max-width: 1100px) {

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-card {
        padding: 18px;
    }
}

.btn-secondary-small {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;

    border-radius: 6px;

    padding: 7px 10px;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.btn-secondary-small:hover {
    background: #f8fafc;
}

.teacher-assignment-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-assignment-form select {
    min-width: 230px;
    height: 36px;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    padding: 0 9px;

    background: #ffffff;
}

.assigned-teacher {
    color: #027a48;
    font-weight: 600;
}

.not-assigned {
    color: #b42318;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;

    color: #17568d;

    font-size: 13px;
    font-weight: 600;
}