/* Content */

body {
    margin: 0;
    padding: 0;
}

#content {
    /*padding-top: 4rem;*/
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.box {
    margin: 1em;
}

.box-tiny {
    min-width: 14rem;
    max-width: 20rem;
}

.box-medium {
    min-width: 40rem;
    max-width: 80rem;
}

.box-large {
    width: 100%;
}

aside.box {
    min-width: 20rem;
    max-width: 40rem;
}

@media (max-width: 22rem) {
    .box.box-tiny {
        margin: 0;
        min-width: 100%;
    }
    aside.box {
        margin: 0.5em, 0, 0, 0;
        min-width: 100%;
    }
}

@media (max-width: 42rem) {
    .box.box-medium,
    .box.box-large {
        margin: 0;
        min-width: 100%;
    }
}

/* Modal */

.modal-container {
    position: fixed;
    top: 3.6rem;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Messages */

#message-box {
    padding: 8px 15px;
    margin: 0px 30px 20px 30px;
    position: fixed;
    top: 3ex;
    right: 3ex;
    z-index: 2000;
    cursor: pointer;
}

/* Common form */

.form-group,
.form-control {
    margin-bottom: 1em;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    vertical-align: baseline;
}
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select {
    min-height: 2.5em;
}

form > .form-control {
    display: flex;
    justify-content: end;
}

/* Navbar form */

nav form,
nav.table-pagination,
nav.table-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}
#login nav form {
    /* Disable inline for login form */
    display: inherit;
    flex-wrap: inherit;
}
nav .form-group,
nav .form-control {
    margin-right: 0.5em;
}
nav .form-group input[type="checkbox"] + label,
nav .form-group input[type="radio"] + label {
    margin-right: 0.25em;
}
nav .form-control {
    margin-bottom: 1em;
}

/* Form tiny */

.form-tiny .form-group,
.form-tiny .form-group input,
.form-tiny .form-group textarea,
fieldset.form-tiny .form-group input,
fieldset.form-tiny .form-group textarea {
    width: 100%;
}

.form-tiny .form-group input[type="checkbox"],
fieldset.form-tiny .form-group input[type="checkbox"] {
    width: auto;
    margin: auto;
}

fieldset.form-tiny .form-group {
    display: inherit;
}

fieldset.form-tiny {
    max-width: 15em;
}

/* Form large */

.box-large .form-large,
.form-large.form-mosaic {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.box-large .form-large fieldset {
    min-width: 30rem;
}

.form-large .form-group {
    display: flex;
    align-items: center;
}

.box-medium .form-large .form-group {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.form-large .form-group label {
    width: 7em;
    text-align: right;
    padding-right: 1em;
}
.form-large .form-group input,
.form-large .form-group select,
.form-large .form-group textarea {
    flex: 10;
}
.form-large .form-group input[type="checkbox"],
.form-large .form-group input[type="radio"] {
    margin-left: 12em;
    flex: 0;
}
.form-large .form-group input[type="checkbox"] + label,
.form-large .form-group input[type="radio"] + label {
    width: auto;
}

/* Form filters */

.filters ul {
    list-style-type: none;
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
}
.filters ul li {
    margin: 0px 1ex;
}
.filters ul.filter-columns li {
    margin: 0px 1em;
    width: 15rem;
}
.filters ul li label {
    display: inline;
}

/* Table */

.box-body table {
    margin-left: auto;
    margin-right: auto;
}

table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
}

td nav {
    display: flex;
    justify-content: center;
}

td,
th {
    padding: 0.5em;
}

/* Misc */

nav button,
.btn {
    cursor: pointer;
}

@media print {
    .noprint {
        display: none;
    }
}

.text-flow {
    display: flex;
    flex-wrap: wrap;
}

/* Loading filter */

#loading {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding-top: 15%;
    z-index: 999;
}

/* Login form */

.login-box {
    max-width: 30rem;
    margin: 3em auto;
    position: relative;
}
#login > aside {
    position: absolute;
    float: left;
    left: -17rem;
    min-width: auto;
    max-width: 17rem;
}
#login-logo {
    text-align: center;
}
.login-box .login-box-body {
    padding: 2em;
}

@media (max-height: 30rem) {
    #login {
        margin: 1em auto;
    }
}

@media (max-width: 60rem) and (min-height: 35rem) {
    #login > aside {
        position: relative;
        float: none;
        left: 0;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    #login nav {
        margin-top: 0;
    }
}

@media (max-height: 35rem) and (max-width: 60rem) {
    #login > aside {
        position: relative;
        float: none;
        left: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }
    #login-logo {
        display: none;
    }
}

/* Navigation bar (main menu and box menu) */

nav.navbar {
    display: flex;
    /*flex-wrap: wrap;*/
}

.navbar ul {
    display: flex;
    /*flex-wrap: wrap;*/
    list-style-type: none;
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
}

#user-menu {
    justify-content: end;
    flex-grow: 1;
}

#menu .navbar-brand {
    display: block;
}

#main-menu .dropdown-menu,
#user-menu .dropdown-menu {
    position: absolute;
    flex-direction: column;
}
#user-menu .dropdown-menu {
    right: 0px;
}

#menu-collapser {
    display: none;
}

@media (min-width: 42rem) {
    #menu-collapser + label {
        display: none !important;
    }
}

@media (max-width: 42rem) {
    #menu {
        display: inherit;
    }
    #menu-collapser + label {
        float: right;
    }
    #menu .navbar-brand {
        float: left;
    }
    #menu-collapser:not(:checked) ~ #main-menu,
    #menu-collapser:not(:checked) ~ #user-menu {
        display: none;
    }
    #main-menu,
    #user-menu {
        flex-direction: column;
        width: 100%;
    }
    #main-menu li button,
    #user-menu li button,
    #main-menu .dropdown-menu,
    #user-menu .dropdown-menu {
        width: 100%;
    }
    #user-menu .dropdown-menu {
        right: auto;
    }
}

/* Browser bar */

.browser ul {
    display: flex;
    list-style-type: none;
}

/* Catalog picker */

.catalog-picker {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.catalog-picker ul.catalog-picker-categories {
    flex: 1;
    min-width: 8rem;
    max-width: 20rem;
}

.catalog-picker ul.catalog-picker-products {
    flex: 3;
}

.catalog-picker ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}
.catalog-picker li {
    display: inline-block;
}

.catalog-picker button {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0.25rem;
    vertical-align: bottom;
}
.catalog-picker button img {
    max-width: 100%;
    max-height: 100%;
}
.catalog-picker label {
    position: absolute;
    bottom: 0px;
    left: 0px;
    margin: 0px;
    width: 100%;
    overflow: hidden;
}
.catalog-label-long {
    font-size: small;
}
.catalog-label-verylong {
    font-size: x-small;
}

.catalog-picker-categories,
.catalog-picker-products {
    overflow-y: scroll;
    border: 1px solid #000;
    padding: 0.2rem;
}

.qty-cell {
    text-align: center;
}
.qty {
    width: 4em;
    text-align: center;
}

/* Restaurant map */

.floor-display {
    width: 640px;
    height: 480px;
    border-top: 1px solid #888;
    border-left: 1px solid #888;
    position: relative;
}
.place {
    list-style-type: none;
    margin: -1.5rem 0px 0px -2rem;
    user-select: none;
}
.place-list {
    list-style-type: none;
}
/* ===== MATERIAL DESIGN CSS ===== */
/* Material Design Variables */
:root {
    /* Original Theme Colors */
    --first-color: #0087ff; /* Primary Blue from theme */
    --second-color: #050d3d; /* Primary Dark Blue from theme */
    --third-color: #4634ff; /* Primary Purple from theme */
    --fourth-color: #071251; /* Secondary Dark Blue from theme */
    --fifth-color: #1e157d; /* Deep Purple from theme */
    --sixth-color: #28c76f; /* Success Green from theme */

    /* Material Design Color System */
    --md-primary: #6750a4;
    --md-primary-container: #eaddff;
    --md-on-primary: #ffffff;
    --md-secondary: #625b71;
    --md-secondary-container: #e8def8;
    --md-on-secondary: #ffffff;
    --md-surface: #fffbfe;
    --md-surface-variant: #e7e0ec;
    --md-on-surface: #1c1b1f;
    --md-outline: #79747e;
    --md-shadow: #000000;
    --md-primary-rgb: 103, 80, 164;

    /* Material Elevation */
    --md-elevation-1:
        0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-elevation-2:
        0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-elevation-3:
        0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);

    /* Material Typography */
    --md-font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Modern Gradients */
    --primary-gradient: linear-gradient(135deg, #0087ff 0%, #4634ff 100%);
    --secondary-gradient: linear-gradient(135deg, #050d3d 0%, #071251 100%);
    --accent-gradient: linear-gradient(135deg, #28c76f 0%, #20d67b 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --neon-glow: 0 0 20px rgba(70, 52, 255, 0.3);

    /* Updated color system */
    --primary-blue: #0087ff;
    --deep-space: #050d3d;
    --electric-purple: #4634ff;
    --midnight-blue: #071251;
    --cyber-green: #28c76f;
    --neon-blue: #00d4ff;

    /* Typography */
    --font-heading: "Roboto", "SF Pro Display", -apple-system, sans-serif;
    --font-body: "Roboto", "SF Pro Text", -apple-system, sans-serif;
}

/* Material Icons Base - Using local fonts */
.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.material-icons-outlined {
    font-family: "Material Icons Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.material-icons-round {
    font-family: "Material Icons Round";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

/* Icon Sizes */
.md-icon-sm,
.icon-sm {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.md-icon-md,
.icon-md {
    font-size: 24px;
    width: 24px;
    height: 24px;
}
.md-icon-lg,
.icon-lg {
    font-size: 32px;
    width: 32px;
    height: 32px;
}
.md-icon-xl,
.icon-xl {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

/* Material Body */
body {
    font-family: var(--md-font-family);
    background: #f5f5f5;
    color: var(--md-on-surface);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Material Cards */
.md-card {
    background: var(--md-surface);
    border-radius: 12px;
    box-shadow: var(--md-elevation-1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.md-card:hover {
    box-shadow: var(--md-elevation-2);
    transform: translateY(-2px);
}

.md-card-elevated {
    box-shadow: var(--md-elevation-2);
}

.md-card-filled {
    background: var(--md-surface-variant);
}

/* Card Sections */
.md-card-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.md-card-header-text {
    flex: 1;
}

.md-card-headline {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
    color: var(--md-on-surface);
}

.md-card-subhead {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--md-outline);
    margin: 4px 0 0;
}

.md-card-content {
    padding: 16px 24px;
}

.md-card-actions {
    padding: 16px 24px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Material Buttons */
.md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-family: var(--md-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.md-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}

.md-button:hover::before {
    opacity: 0.08;
}

.md-button:active::before {
    opacity: 0.12;
}

.md-filled-button {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

.md-tonal-button {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

.md-outlined-button {
    background: transparent;
    color: var(--md-primary);
    border: 1px solid var(--md-outline);
}

.md-text-button {
    background: transparent;
    color: var(--md-primary);
}

/* Material Chips */
.md-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--md-surface-variant);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--md-on-surface-variant);
}

.md-chip-filled {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

/* Status Indicators */
.md-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.md-status-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.md-status-warning {
    background: #fff8e1;
    color: #f57c00;
}

.md-status-error {
    background: #ffebee;
    color: #c62828;
}

/* Layout Utilities */
.md-layout-grid {
    display: grid;
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.md-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.md-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Typography Scale */
.md-display-large {
    font-size: 57px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: -0.25px;
}

.md-display-medium {
    font-size: 45px;
    font-weight: 400;
    line-height: 52px;
}

.md-display-small {
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
}

.md-headline-large {
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
}

.md-headline-medium {
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
}

.md-headline-small {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

/* Enhanced Body Styles */
body {
    background: #f7f7f7 url(../img/background.jpg) repeat center fixed;
    color: #34495e;
    line-height: 1.5;
    font-family: var(--font-body);
    min-height: 100vh;
}

/* Glass Morphism Box */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow), var(--neon-glow);
}

/* Modern Buttons */
.btn-modern {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 135, 255, 0.4);
}

/* Cyber Elements */
.cyber-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(
            135deg,
            var(--electric-purple),
            var(--neon-blue)
        )
        border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Animations */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(70, 52, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(70, 52, 255, 0.6);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.glow {
    animation: glow 3s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--cyber-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Icon Styles */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 8px;
}

.status-icon .material-icons-round {
    font-size: 32px;
}

.stat-icon .material-icons-round {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-icon .material-icons-round {
    font-size: 36px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cyber Header */
.cyber-header {
    height: 200px;
    background: var(--secondary-gradient);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.particles .particle {
    position: absolute;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Status Elements */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: -100px auto 0;
}

/* ===== EXISTING STYLES ===== */
@font-face {
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/PT_Sans-normal-400.woff) format("woff");
    unicode-range: U+0-10FFFF;
}
@font-face {
    font-family: "OpenDyslexic";
    font-style: normal;
    font-weight: normal;
    src:
        local("OpenDyslexic"),
        url(../fonts/OpenDyslexic-Regular.otf) format("opentype");
}
@font-face {
    font-family: "OpenDyslexic";
    font-style: italic;
    font-weight: normal;
    src:
        local("OpenDyslexic-Italic"),
        url(../fonts/OpenDyslexic-Italic.otf) format("opentype");
}
@font-face {
    font-family: "OpenDyslexic";
    font-style: normal;
    font-weight: bold;
    src:
        local("OpenDyslexic-Bold"),
        url(../fonts/OpenDyslexic-Bold.otf) format("opentype");
}
@font-face {
    font-family: "OpenDyslexic";
    font-style: italic;
    font-weight: bold;
    src:
        local("OpenDyslexic-BoldItalic"),
        url(../fonts/OpenDyslexic-BoldItalic.otf) format("opentype");
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    font-style: normal;
    font-weight: normal;
    src:
        local("AtkinsonHyperlegible"),
        url(../fonts/Atkinson-Hyperlegible-Regular-102.woff) format("woff");
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    font-style: italic;
    font-weight: normal;
    src:
        local("AtkinsonHyperlegible-Italic"),
        url(../fonts/Atkinson-Hyperlegible-Italic-102.woff) format("woff");
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    font-style: normal;
    font-weight: bold;
    src:
        local("AtkinsonHyperlegible-Bold"),
        url(../fonts/Atkinson-Hyperlegible-Bold-102.woff) format("woff");
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    font-style: italic;
    font-weight: bold;
    src:
        local("AtkinsonHyperlegible-BoldItalic"),
        url(../fonts/Atkinson-Hyperlegible-BoldItalic-102.woff) format("woff");
}

/* Containers */
/*.default-font {
    font-family:
        "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    line-height: 1.35;
}*/
.default-font {
    font-family:
        "Roboto",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif !important;
    font-size: 15px; /* Slightly larger for better admin readability */
    font-weight: 400;
    line-height: 1.6; /* Increased for better text scanning */
    letter-spacing: 0.1px;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Admin-specific typography */
.default-font h1 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--second-color);
}

.default-font h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--second-color);
}

.default-font h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--second-color);
}

.default-font p {
    margin-bottom: 1rem;
    color: #444;
}

.default-font table {
    font-size: 14px;
    font-weight: 400;
}

.default-font input,
.default-font select,
.default-font textarea {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}

.default-font .btn {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.no-font {
    font-family: initial !important;
}
.dyslexic-friendly,
.dyslexic-friendly button,
.dyslexic-friendly input[type="text"] {
    font-family: OpenDyslexic, "Comic Sans MS", sans-serif !important;
    line-height: 1.75;
}
.hyperlegible,
.hyperlegible button,
.hyperlegible input[type="text"] {
    font-family: AtkinsonHyperLegible, sans-serif !important;
}

.hi-contrast {
    color: #000;
    background: #fff;
}

#content {
    justify-content: center;
}

/* Modal */
.modal-container {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Box rounded borders */
.box.box-body,
.box > .box-body {
    border-radius: 1em;
}
.box header + .box-body {
    border-radius: 0px 0em 1em 1em;
}

@media (max-width: 22rem) {
    .box.box-tiny .box-body {
        border-radius: 0;
    }
}

@media (max-width: 42rem) {
    .box.box-medium .box-body,
    .box.box-large .box-body {
        border-radius: 0;
    }
}

/* Box browser header */
.box header .browser {
    background: transparent;
}

.box header .browser ul {
    padding: 0;
    margin: 0 0 0 1ex;
    justify-content: flex-start;
}

.box header .browser li {
    background-color: #eee;
    margin-right: 0.5em;
    padding: 0.5em;
    border-radius: 0.5em 0.5em 0 0;
    border-bottom: 1px solid #aaa;
}
.box header .browser li:last-child {
    background-color: #fff;
    border-bottom: none;
}

.box header .browser li h1 {
    font-size: medium;
    font-weight: bold;
    color: #555;
    margin: 0;
}

.box header .browser a {
    color: #555;
    text-decoration: none;
}
.box header .browser a:hover {
    color: #555;
    text-decoration: underline;
}

/* Box header */
.box header .navbar {
    background-color: var(--first-color);
}

.box header > h2 {
    background-color: var(--first-color);
    color: #fff;
    border-radius: 0.5em 0.5em 0 0;
    margin: 0;
    padding: 0.5em 1em 0.5em 1em;
}

.box.box-body,
.box .box-body {
    background-color: #fff;
    padding: 1em;
}

.box nav {
    color: #fff;
    border: none 0;
    border-radius: 0;
    margin-bottom: 0;
}

/* Buttons */
a.btn {
    display: inline-block;
    text-decoration: none;
}

.btn {
    padding: 0.5em;
    border-width: 0 0.2rem 0.2rem 0.05rem;
    border-radius: 0.5rem;
    border-style: outset;
    font-size: small;
}

.btn:hover {
    border-style: inset;
}

.btn:disabled {
    background-color: #777;
    border-color: #636363;
    color: white;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--first-color);
    border-color: #0070d4;
    color: #fff;
}

.btn-misc {
    color: #000;
    background-color: #f1f1f1;
    border-color: #a2a2a2;
}

.btn-add {
    background-color: #28c76f;
    border-color: #20a258;
    color: white;
}

.btn-import {
    background-color: var(--second-color);
    border-color: #02061a;
    color: white;
}

.btn-export {
    background-color: var(--first-color);
    border-color: #0070d4;
    color: white;
}

.btn-edit {
    background-color: #1e9ff2;
    border-color: #0d8aec;
    color: white;
}

.btn-delete {
    background-color: #eb2222;
    border-color: #d61c1c;
    color: white;
}

/* Misc */
small {
    font-weight: lighter;
    color: #777;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #050d3d;
}

dt {
    font-weight: 700;
}
.dl-horizontal dd,
.dl-horizontal dt {
    margin-top: 0.35em;
}

.thumbnail {
    height: 3rem;
}
.thumbnail-text {
    vertical-align: middle;
    margin-right: 0.5em;
}

.filters ul li p.help {
    font-size: small;
    font-style: italic;
    margin-left: 3ex;
    margin-top: 0px;
}

.text-flow {
    align-items: center;
    column-gap: 1rem;
}

/* Login form */
#login-logo {
    padding: 0px 20px;
    min-width: 0;
    width: auto;
}
#login-logo img {
    position: relative;
    top: -15px;
}

@media (max-width: 60rem) and (min-height: 35rem) {
    #login-logo {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
    #login nav {
        border-top-right-radius: 0;
        border-top-left-radius: 0;
    }
}

/* Loading screen */
#loading {
    background-color: rgba(128, 128, 128, 0.5);
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: x-large;
    text-shadow: 1px 1px 5px #444;
}
/* ===== MODERN MATERIAL DESIGN NAVIGATION ===== */
#menu.navbar {
    background: linear-gradient(
        135deg,
        var(--md-primary) 0%,
        var(--electric-purple) 100%
    );
    padding: 0;
    box-shadow: var(--md-elevation-3);
    border: none;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-family: "Roboto", sans-serif;
    flex-wrap: wrap;
}

/* Mobile Menu Toggle */
#menu-collapser {
    display: none;
}

#menu-collapser + label {
    display: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    order: 1;
}

/* Brand Logo */
.navbar-brand {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--md-elevation-1);
    order: 2;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-elevation-2);
    background: rgba(255, 255, 255, 1);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    display: block;
}

/* Main Navigation Menu */
#main-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 3;
}

/* Dropdown Sections */
.dropdown {
    position: relative;
    list-style: none;
}

.dropdown > button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    position: relative;
    overflow: hidden;
    border: none;
}

.dropdown > button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dropdown.expanded > button {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--md-surface);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: var(--md-elevation-3);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--md-on-surface);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(var(--md-primary-rgb), 0.08);
    color: var(--md-primary);
    transform: translateX(4px);
    text-decoration: none;
}

/* Icon Styling - SIMPLIFIED AND WORKING */
.dropdown-menu a[style*="background-image"] {
    padding-left: 3rem !important;
    background-position: 1rem center !important;
    background-size: 20px 20px !important;
    background-repeat: no-repeat !important;
}

/* User Menu */
#user-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 1rem;
    list-style: none;
    order: 4;
}

#user-menu .dropdown > button {
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: auto;
}

#user-menu .dropdown-menu {
    right: 0;
    left: auto;
}

/* Active State Indicator */
.dropdown.expanded > button {
    position: relative;
}

.dropdown.expanded > button::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    #menu.navbar {
        padding: 0.5rem;
        min-height: 60px;
    }

    /* Show mobile menu toggle */
    #menu-collapser + label {
        display: block;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        padding: 0.75rem;
        margin: 0.2rem 0.5rem;
        width: 44px;
        height: 44px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236750A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px;
        color: transparent;
    }

    /* Brand positioning */
    .navbar-brand {
        margin: 0 auto;
        order: 2;
    }

    .navbar-brand img {
        height: 35px;
    }

    /* User menu positioning */
    #user-menu {
        order: 3;
        padding: 0 0.5rem;
    }

    #user-menu .dropdown > button {
        padding: 0.6rem 1rem;
        min-width: auto;
        font-size: 0.9rem;
    }

    /* Main menu - hidden by default, shown when toggle is checked */
    #main-menu {
        position: static;
        transform: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: var(--md-elevation-2);
        display: none;
        order: 5;
        gap: 0.5rem;
    }

    #menu-collapser:checked ~ #main-menu {
        display: flex;
    }

    /* Dropdown buttons full width on mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown > button {
        width: 100%;
        text-align: left;
        justify-content: space-between;
        padding: 1rem;
    }

    .dropdown > button::after {
        content: "›";
        font-size: 1.2rem;
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .dropdown.expanded > button::after {
        transform: rotate(-90deg);
    }

    /* Dropdown menus on mobile */
    .dropdown-menu {
        position: static;
        width: 100%;
        margin: 0.5rem 0 0 0;
        box-shadow: none;
        background: rgba(var(--md-primary-rgb), 0.05);
        animation: none;
    }

    .dropdown-menu a {
        padding: 0.875rem 1rem;
    }

    /* Icon spacing adjustment for mobile */
    .dropdown-menu a[style*="background-image"] {
        padding-left: 2.75rem !important;
        background-position: 0.875rem center !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar-brand {
        padding: 0.4rem 0.8rem;
    }

    .navbar-brand img {
        height: 30px;
    }

    #user-menu .dropdown > button {
        padding: 0.5rem 0.8rem;
        font-size: 0.875rem;
    }

    .dropdown > button {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    #menu-collapser + label {
        padding: 0.6rem;
        width: 40px;
        height: 40px;
    }
}

/* Accessibility Improvements */
.dropdown > button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.dropdown-menu a:focus {
    outline: 2px solid var(--md-primary);
    outline-offset: -2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .dropdown > button {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid white;
    }

    .dropdown-menu {
        border: 2px solid var(--md-outline);
    }
}

.spacing-row {
    margin-top: 10px;
    margin-bottom: 10px;
}

#message-box.message-info {
    background-color: #1e9ff2;
    color: #fff;
    border: 2px solid #0d8aec;
}
#message-box.message-warning {
    background-color: #ff9f43;
    color: #000;
    border: 2px solid #e08a34;
}
p.warning {
    background-color: #ff9f43;
    color: #000;
    border: 2px solid #e08a34;
    border-radius: 1ex;
    padding: 1ex;
}
p.warning strong {
    color: #eb2222;
}
#message-box.message-error {
    background-color: #eb2222;
    border: 2px solid #d61c1c;
    color: #fff;
}

nav.table-pagination {
    color: unset;
    justify-content: center;
}
table thead {
    position: sticky;
    top: 4rem;
}
table tfoot {
    position: sticky;
    bottom: 1rem;
}
table thead tr,
table thead tr .z-oddcol,
table tfoot tr,
table tfoot tr .z-oddcol {
    background-color: #ddd;
}
table td.numeric {
    font-variant-numeric: tabular-nums;
    text-align: end;
}
table td.datetime {
    font-variant-numeric: tabular-nums;
}
.ticket {
    background-color: #eee;
    border: 1px solid #000;
    padding: 1ex;
    min-width: 34ex;
    max-width: 34ex;
    top: 4rem;
    bottom: 0px;
    max-height: 90vh;
    overflow-y: scroll;
}

/* Form */
fieldset legend {
    font-weight: bold;
    font-size: large;
    color: var(--second-color);
}

.tooltip {
    font-style: italic;
    font-size: small;
}

/* Catalog picker */
.catalog-picker button {
    background-color: #ddd;
}

.catalog-picker label {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Table styles */
.floor-display {
    margin-left: auto;
    margin-right: auto;
}

table,
th,
td {
    border: 1px solid #f1f1f1;
}
th {
    border-bottom: 2px solid #f1f1f1;
    background-color: #f7f7f7;
}
tr {
    background-color: #fff;
}
tr:hover {
    background-color: #f1f1f1;
}
.z-oddcol {
    background-color: #f7f7f7;
}
tbody tr:hover .z-oddcol {
    background-color: #ebebeb;
}

/* Archive entries like products not currently sold. */
.invisible-data {
    font-style: italic;
    font-size: small;
}

.floor-display {
    background-image: url("../img/grid.png");
}
.place {
    position: absolute;
    border: 1px solid #000;
    background-color: #fff;
    z-index: 2;
    width: 4rem;
    height: 3rem;
    font-size: small;
    display: flex;
    align-items: end;
    line-height: 1;
    cursor: grab;
}
.place.selected {
    border-color: #5aaf58;
    background-color: #c0e174;
    color: #333;
}
.deleted-places {
    display: flex;
    padding: 0px;
}
.place-list {
    margin: 1ex;
    padding: 0.5ex;
    border: 1px solid #000;
    background-color: #fff;
}
.floor {
    background-color: lightgray;
    border: solid 1px black;
    position: relative;
    width: 640px;
    height: 480px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .md-layout-grid {
        padding: 16px;
        gap: 16px;
    }

    .md-grid-2,
    .md-grid-3 {
        grid-template-columns: 1fr;
    }

    .md-card-header {
        padding: 16px 16px 0;
    }

    .md-card-content {
        padding: 12px 16px;
    }

    .md-card-actions {
        padding: 12px 16px 16px;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        margin-top: -50px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        color: black;
        background: blueviolet;
    }
}
/* ===== MATERIAL DESIGN LOGIN PAGE ===== */
.login-main {
    width: 100%;
    min-height: 100vh;
    background: #f7f7f7 url(../img/background.jpg) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Roboto", sans-serif;
}

.login-area {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(103, 80, 164, 0.15);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-area:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 40px rgba(103, 80, 164, 0.2);
}

.login-wrapper__top {
    margin-bottom: 40px;
    text-align: center;
}

.login-wrapper__top h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(
        135deg,
        var(--md-primary),
        var(--electric-purple)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.login-wrapper__top p {
    color: var(--md-outline);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--md-on-surface);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--md-surface-variant);
    border-radius: 12px;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    background: var(--md-surface);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--md-on-surface);
}

.form-control::placeholder {
    color: var(--md-outline);
    opacity: 0.7;
}

.form-control:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 4px rgba(103, 80, 164, 0.1);
    background: var(--md-surface);
}

/* Flex Utilities */
.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forget-text {
    color: var(--md-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.forget-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--md-primary);
    transition: width 0.3s ease;
}

.forget-text:hover {
    color: var(--md-primary);
    text-decoration: none;
}

.forget-text:hover::after {
    width: 100%;
}

/* Button Styles */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cmn-btn {
    background: linear-gradient(
        135deg,
        var(--md-primary),
        var(--electric-purple)
    );
    color: white;
    width: 100%;
    box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3);
}

.cmn-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.cmn-btn:hover::before {
    left: 100%;
}

.cmn-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(103, 80, 164, 0.4),
        0 4px 16px rgba(103, 80, 164, 0.3);
    background: linear-gradient(
        135deg,
        var(--md-primary),
        var(--electric-purple)
    );
    color: white;
}

.cmn-btn:active {
    transform: translateY(0);
}

/* Enhanced Login Styles */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 12px;
}

.required::after {
    content: " *";
    color: #d32f2f;
}

.security-options {
    background: rgba(var(--md-primary-rgb), 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--md-on-surface);
    cursor: pointer;
}

.tooltip {
    font-size: 0.8rem;
    color: var(--md-outline);
    font-style: italic;
}

/* Font Selection */
.font-selection {
    margin-top: 1.5rem;
}

.font-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.font-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid var(--md-surface-variant);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.font-option:hover {
    border-color: var(--md-primary);
}

.font-option.active {
    border-color: var(--md-primary);
    background: rgba(var(--md-primary-rgb), 0.05);
}

.font-option input {
    display: none;
}

.font-preview {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button Styles */
.login-btn {
    position: relative;
    overflow: hidden;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Login Help */
.login-help {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--md-surface-variant);
}

.help-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--md-outline);
    font-size: 0.9rem;
}

.help-item:last-child {
    margin-bottom: 0;
}

.help-item .material-icons-round {
    font-size: 18px;
    opacity: 0.7;
}

/* Error States */
.form-group.error .form-control {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .btn-content {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-main {
        padding: 15px;
    }

    .login-area {
        padding: 30px 25px;
        margin: 10px;
        border-radius: 16px;
    }

    .login-wrapper__top h3 {
        font-size: 1.75rem;
    }

    .login-wrapper__top p {
        font-size: 1rem;
    }

    .security-options {
        padding: 1rem;
    }

    .font-options {
        grid-template-columns: 1fr;
    }

    .login-help {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .form-control {
        padding: 14px;
    }

    .btn {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .login-area {
        padding: 25px 20px;
    }

    .login-wrapper__top {
        margin-bottom: 30px;
    }

    .login-wrapper__top h3 {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* Accessibility */
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--md-primary);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .security-options {
        border: 2px solid var(--md-outline);
    }

    .font-option.active {
        border-width: 3px;
    }
}
/*/-------/*/
/* Sidebar Cards Layout */
.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Inventory Card Specific Styles */
.inventory-card {
    border-left: 4px solid #28c76f !important;
}

.credentials-box {
    background: rgba(40, 199, 111, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(40, 199, 111, 0.1);
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-label {
    font-size: 0.875rem;
    color: var(--md-outline);
    font-weight: 500;
}

.credential-value {
    font-family: "Courier New", monospace;
    font-weight: 600;
    color: var(--md-on-surface);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(40, 199, 111, 0.2);
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--md-outline);
    background: rgba(255, 159, 67, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Promotion Card Specific Styles */
.promotion-card {
    border-left: 4px solid #ff6b35 !important;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 107, 53, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 107, 53, 0.08);
    transform: translateX(4px);
}

.feature-item .material-icons-round {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--md-outline);
    margin-top: 2px;
}

.promotion-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.access-instructions {
    background: rgba(40, 199, 111, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.access-instructions ol {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.access-instructions li {
    margin-bottom: 0.25rem;
    color: var(--md-on-surface);
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar-cards {
        position: static;
        margin-top: 2rem;
    }

    .col-lg-4 {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .sidebar-cards {
        gap: 1rem;
    }

    .feature-item {
        padding: 0.5rem;
    }

    .credentials-box {
        padding: 0.75rem;
    }
}
/* Local Material Icons */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
         url('../fonts/MaterialIcons-Regular.woff') format('woff'),
         url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIconsOutlined-Regular.woff2') format('woff2'),
         url('../fonts/MaterialIconsOutlined-Regular.woff') format('woff'),
         url('../fonts/MaterialIconsOutlined-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Material Icons Round';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIconsRound-Regular.woff2') format('woff2'),
         url('../fonts/MaterialIconsRound-Regular.woff') format('woff'),
         url('../fonts/MaterialIconsRound-Regular.ttf') format('truetype');
}

/* Local Roboto Font */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/Roboto-Light.woff2') format('woff2'),
         url('../fonts/Roboto-Light.woff') format('woff'),
         url('../fonts/Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff'),
         url('../fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Roboto-Medium.woff2') format('woff2'),
         url('../fonts/Roboto-Medium.woff') format('woff'),
         url('../fonts/Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
         url('../fonts/Roboto-Bold.woff') format('woff'),
         url('../fonts/Roboto-Bold.ttf') format('truetype');
}

/* Material Icons Base Styles */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Icon Sizes */
.md-icon-sm { font-size: 18px; width: 18px; height: 18px; }
.md-icon-md { font-size: 24px; width: 24px; height: 24px; }
.md-icon-lg { font-size: 32px; width: 32px; height: 32px; }
.md-icon-xl { font-size: 40px; width: 40px; height: 40px; }
