* {
    box-sizing: border-box;
}

/* BASE */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
p, span, strong, label, small {
    color: inherit;
}

/* NAVBAR */
.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
    z-index: 1030;
}

.navbar-brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.navbar-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.navbar-subtitle {
    font-size: 11px;
    margin-top: 3px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-user {
    text-align: right;
    margin-right: 6px;
}

.navbar-user-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.navbar-user-role {
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

.navbar-btn {
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.15s ease;
}

.navbar-btn:hover {
    transform: translateY(-1px);
}

.navbar-theme-form {
    margin: 0;
}

.navbar-theme-select {
    min-height: 34px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
}

/* SIDEBAR */
.app-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 220px;
    height: calc(100vh - 64px);
    padding: 15px;
    z-index: 1020;
    overflow: hidden;
}

.sidebar-title {
    font-weight: bold;
    margin-bottom: 15px;
}

.sidebar-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
}

/* CONTENT */
.app-content {
    margin-left: 240px;
    padding: 25px;
    padding-top: 89px;
    min-height: 100vh;
}

/* CARD */
.card {
    border-radius: 14px;
    padding: 20px;
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(45deg, skyblue, darkblue);
    padding: 30px;
    width: 450px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: background 0.3s ease;
}

.form:hover {
    background: linear-gradient(45deg, darkblue, skyblue);
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.login-title {
    text-align: center;
    margin-bottom: 22px;
}

.login-title h3 {
    margin-bottom: 6px;
    font-weight: 700;
    color: white;
}

.login-title p {
    margin: 0;
    color: white;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flex-column > label {
    color: white;
    font-weight: 600;
}

.inputForm {
    border: 1.5px solid #ecedec;
    border-radius: 10em;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: 0.2s ease-in-out;
    background-color: white;
}

.input {
    margin-left: 10px;
    border-radius: 10rem;
    border: none;
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.input:focus {
    outline: none;
}

.inputForm:focus-within {
    border: 1.5px solid orange;
}

.password-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 15px;
    font-size: 18px;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #333;
}

.button-submit {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    text-align: center;
    letter-spacing: 1px;
    text-decoration: none;
    background: transparent;
    transition: ease-out 0.5s;
    border: 2px solid white;
    border-radius: 10em;
    box-shadow: inset 0 0 0 0 blue;
    margin: 20px 0 10px 0;
    color: white;
    font-size: 15px;
    font-weight: 500;
    height: 50px;
    width: 100%;
    cursor: pointer;
}

.button-submit:hover {
    color: white;
    box-shadow: inset 0 -100px 0 0 royalblue;
}

.button-submit:active {
    transform: scale(0.9);
}

/* Override Bootstrap styles for login form */
.login-page .form-label {
    margin-bottom: 0 !important;
}

.login-page .input {
    padding: 0 !important;
    height: 100% !important;
    font-size: 15px;
}

.login-page .input::placeholder {
    color: #999;
    font-size: 15px;
}

.login-page .form button {
    align-self: center !important;
}

@media (max-width: 768px) {
    .form {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }
}

/* TOAST */
#appToast {
    min-width: 380px;
    max-width: 460px;
    font-size: 15px;
}

#appToast .toast-body {
    font-size: 15px;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .app-sidebar {
        width: 180px;
    }

    .app-content {
        margin-left: 200px;
        padding: 18px;
    }

    .navbar-subtitle,
    .navbar-user {
        display: none;
    }
}