html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* SIDEBAR VARIABLES */
:root {
    --sidebar-width: 255px;
    --sidebar-bg: #142c4e;
    --sidebar-hover: #234875;
    --primary: #2563eb;
    --page-bg: #f4f7fc;
    --text-main: #172b4d;
    --text-muted: #718096;
    --card-radius: 16px;
}

/* SIDEBAR LAYOUT */
.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* SIDEBAR */
.dashboard-layout > .sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100vh;
    min-height: 0;
    position: sticky;
    top: 0;
    align-self: start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 15px;
    color: #fff;
    background: linear-gradient(180deg, #17365d 0%, #102440 100%);
    border: none;
    border-radius: 0;
    box-shadow: 5px 0 24px rgba(15, 35, 65, .12);
    z-index: 100;
}

/* BRAND */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 23px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.4px;
    overflow-wrap: anywhere;
}

.brand-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .13);
    border-radius: 12px;
    font-size: 23px;
}

/* SECTION LABEL */
.sidebar-label {
    padding: 0 12px;
    margin: 19px 0 9px;
    color: #9eb5d4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* SIDEBAR LINKS */
.dashboard-layout .sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    margin: 0 0 5px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #dce7f5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dashboard-layout .sidebar a:hover,
.dashboard-layout .sidebar a.active {
    color: #fff;
    background: linear-gradient(110deg, #2860a1, #244a78);
    border-color: rgba(255, 255, 255, .08);
}

.dashboard-layout .sidebar a:hover {
    transform: translateX(2px);
}

/* LINK ICONS */
.sidebar-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    font-size: 17px;
}

/* ACCOUNT SECTION */
.sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #e3edf9;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2c6099;
    font-size: 18px;
}

.account-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-name {
    font-weight: 700;
    color: #fff;
}

.account-role {
    margin-top: 3px;
    color: #a9c0dc;
    font-size: 11px;
}

/* MAIN CONTENT NEXT TO SIDEBAR */
.dashboard-layout > .main-content {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
}

/* DESKTOP */
@media (min-width: 768px) {
    .dashboard-layout > .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-width);
        height: 100vh;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .dashboard-layout > .main-content {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
}

/* MOBILE */
@media (max-width: 767.98px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-layout > .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 16px;
        overflow: visible;
    }

    .sidebar-brand {
        padding-bottom: 14px;
        margin-bottom: 8px;
    }

    .sidebar-label {
        margin-top: 13px;
    }

    .dashboard-layout .sidebar a {
        padding: 10px 12px;
    }

    .sidebar-account {
        margin-top: 14px;
    }

    .dashboard-layout > .main-content {
        grid-column: 1;
        min-height: auto;
        padding: 19px 16px 25px;
    }
}
/* SIDEBAR LOGOUT BUTTON */
.sidebar-logout {
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-logout form {
    width: 100%;
    margin: 0;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.sidebar-logout-btn span:first-child {
    font-size: 18px;
}