/* Theme Variables */
:root[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --button-bg: #cfcfcf;
    --sidebar-bg: #f5f5f5;
    --text-primary: #585858;
    --text-secondary: #666666;
    --accent-color: #6b9bb3;
    --border-color: #e0e0e0;
    --hover-bg: #e8e8e8;
    --status-active: #4CAF50;
    --status-inactive: #9e9e9e;
}

:root[data-theme="dark"] {
    --bg-primary: #141a1f;
    --bg-secondary: #293743;
    --button-bg: #374b5b;
    --sidebar-bg: #13171a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #6b9bb3;
    --border-color: #2f363d;
    --hover-bg: #2f363d;
    --status-active: #4CAF50;
    --status-inactive: #666666;
}

/* Reset and Base Styles */
* {
    /* margin: 0; */
    /* padding: 0; */
    /* box-sizing: border-box; */
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body a {
    color: var(--accent-color);
    text-decoration: none;
}

.label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.side-menu {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    border-right: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.main-content {
    flex: 1;
    padding: 30px;
}

/* Menu Styles */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: background-color 0.2s;
    gap: 10px;
}

.menu-item:hover {
    background-color: var(--hover-bg);
}

.menu-item.active {
    background-color: var(--accent-color);
    color: white;
}

.menu-item .icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

/* Theme Toggle */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.theme-button {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.theme-button:hover {
    background-color: var(--hover-bg);
}

/* Show/hide theme icons based on current theme */
:root[data-theme="light"] .dark-icon,
:root[data-theme="dark"] .light-icon {
    display: none;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

th {
    text-align: left;
    padding: 16px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.status-active {
    background-color: var(--status-active);
    color: white;
}

.status-inactive {
    background-color: var(--status-inactive);
    color: white;
}

/* Button Styles */
.button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    gap: 5px;
    align-items: center;
}

.button-primary {
    background-color: var(--accent-color);
    color: white;
}

.button-secondary {
    background-color: var(--button-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Section Headers */
.section-header {
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Additional Elements */
.role-badge {
    padding: 6px 12px;
    border-radius: 16px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}


.sidebar {
    background-color: var(--sidebar-bg);
    position: fixed;
    left: 0px;
    top: 60px;
    width: 240px;
    height: calc(100% - 60px);
    z-index: 2;
}

.main {

    position: absolute;

    left: 240px;

    top: 60px;

    width: calc(100% - 280px);

    padding: 20px;

    font-size: 14px;

    max-width: 1200px;
}

.logo {
    /* background-color: #017eff; */
    top: 0px;
    left: 0px;
    height: 60px;
    width: 240px;
    position: fixed;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
}

.topbar {
    background-color: var(--sidebar-bg);
    color: var(--accent-color);
    top: 0px;
    left: 0px;
    height: 60px;
    width: 100%;
    position: fixed;
    box-shadow: rgb(40 42 49 / 16%) 0px 1px 2px 0px;
    z-index: 4;
}

.cover {
    background-color: #f1f1f1;
    height: 80px;
    position: fixed;
    top: 10px;
    width: 100%;
    z-index: 1;
}

.menu {
    font-family: 'Lato', sans-serif;
    overflow-y: auto;
    height: 100%;
}

.menubt {

    border-left: 0.3rem solid transparent;
    padding-left: 0px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-left: 0.3rem solid rgba(0, 152, 247, 0);
    left: 0px;
    position: relative;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.menubt a {
    color: #909bad;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    padding-left: 20px;
}

.menubt :hover {
    border-left: 0.3rem solid rgb(0, 151, 247);
    color: #acb9cc;
    ;
}

.menutitle {
    /* -webkit-font-smoothing: antialiased; */
    /* color: #5b626f; */
    /* text-transform: uppercase; */
    /* font-size: 13px; */
    /* letter-spacing: 0.1rem; */
    /* font-weight: 800; */
    /* padding: 7px; */
}

input[type=text] {
    width: 70%;
    padding: 7px;
    margin: 10px 5px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    /* font-family: 'Lato'; */
    box-shadow: rgb(40 42 49 / 16%) 0 0 4px 0px;
    border: 0px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.popup {
    background-color: #FFFFFF;
}

button {
    display: inline-block;
    padding: 0.4em 1.45em;
    margin: 0.1em;
    /* border: 0.15em solid #d4d4d4; */
    box-sizing: border-box;
    text-decoration: none;
    /* font-family: 'Lato'; */
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    background: var(--button-bg);
    border-radius: 5px;
    border: none;
    line-height: 1.5;
    display: flex;
    gap: 5px;
    align-items: center;
}

button:hover {
    /* border-color:#7a7a7a; */
    background-color: #33435e;
    color: #c8d7ef;
}

button:active {
    background-color: #999999;
}

@media all and (max-width:30em) {
    button {
        display: block;
        margin: 0.2em auto;
    }
}

input[type="submit" i] {
    display: inline-block;
    padding: 0.4em 1.45em;
    /* margin: 0.1em; */
    /* border: 0.15em solid #d4d4d4; */
    box-sizing: border-box;
    text-decoration: none;
    /* font-family: 'Lato'; */
    /* font-weight: 600; */
    /* color: #18202d; */
    /* text-align: center; */
    /* position: relative; */
}

.window3d {
    width: 500px;
    height: 500px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 10px;
    width: 500px;
    position: absolute;
    left: 0px;
    z-index: 2;
}

.materialwindow3d {
    width: 500px;
    height: 500px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 10px;
    width: 500px;
    position: fixed;
    left: 253px;
    z-index: 2;
}

.parameter-column {
    position: absolute;
    max-width: 500px;
    top: 630px;
}

.textureBox {
    min-width: 500px;
    min-height: 500px;
    padding-right: 20px;
    padding-bottom: 20px
}

.devine-link a {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    position: fixed;
    bottom: 10px;
    color: #4f678e;
    left: 35px;
    text-decoration: none;
}

.devine-link a:hover {
    color: #7a9ed8;
}

.logout {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 15px;
}

.debug-dir, .debug-name {
    margin: 0 10px;
    font-size: 13px;
    opacity: 0.8;
}

.logout a {
    text-decoration: none;
    color: var(--text-primary);
}

.logout a:hover {
    color: #7a9ed8;
}

.item-row {
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    margin: 5px;
    cursor: pointer;
    display: flex;
    /* min-height: 30px; */
    /* box-shadow: rgb(40 42 49 / 16%) 0px 1px 2px 0px; */
    border-radius: 12px;
    align-items: center;
    padding: 7px;
}

.item-row-top {
    /* background-color: var(--bg-secondary); */
    -webkit-font-smoothing: antialiased;
    margin: 5px;
    /* height: 20px; */
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    font-weight: 500;
}

.item-row a {
    text-decoration: none;
    color: #017eff;
}

.item-row a:hover {
    text-decoration: none;
    color: #83b8ec;
}

.column-4 {
    width: 25%;
    position: relative;
    display: flex;
    /* float: left; */
    /* margin: auto; */
}

.column-5 {
    width: 20%;
    position: relative;
    float: left;
    margin: auto;
}

.column-6 {
    width: 16%;
    position: relative;
    float: left;
    text-align: center;
}

.column-7 {
    width: 14%;
    position: relative;
    float: left;
    margin: auto;
}

.column-3 {
    width: 33%;
    position: relative;
    float: left;
    margin: auto;
}

.column-2 {
    width: 50%;
    position: relative;
    float: left;
    margin: auto;
}

.bottomButs {
    width: 80%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    margin-top: 40px;
    /* background-color: #f1f1f1; */
    padding-top: 10px;
    padding-bottom: 10px;
}

.warn {
    background-color: #efa1a1;
    border: 0.15em solid #e09292;
    color: #904444;
}

.warn:active {
    background-color: #ff0000 !important;
    color: white !important;
}

.login-box {
    padding: 30px;
    background: white;
    width: fit-content;
    box-shadow: rgb(40 42 49 / 16%) 0px 1px 2px 0px;
    position: relative;
    left: 20px;
    top: 20px;
}

.submit-bt {
    width: 80%;
    text-align: right;
}

.multi-select {
    width: 400px;
}

.material-parameters {
    /* background-color: #18202d; */
    width: 400px;
    position: absolute;
    left: 550px;
}

.image-input {
    width: 220px !important;
}

.image-chooser {
    width: calc(100% - 773px);
    max-height: calc(100% - 80px);
    position: fixed;
    left: 765px;
    top: 67px;
    background: white;
    box-shadow: rgb(40 42 49 / 16%) 0px 1px 2px 0px;
    z-index: 10;
    overflow-y: auto;
}

.map-preview {
    margin-top: 10px;
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    float: left;
}

.list-preview {
    width: 55px;
    /* height:55px; */
    border-radius: 5px;
    /* margin: 14px; */
}

.thumb-img {
    float: left;
    padding: 3px;
    /* border: gray; */
    border: 1px solid #e6e3e3;
    border-radius: 5px;
    margin: 2px;
}

.model-select {
    position: fixed;
    z-index: 10;
    width: 212px;
    top: 582px;
}

.model-select button {
    width: 20px;
    height: 20px;
    border: 0px;
    padding: 0px;
}

.target-select {
    top: 650px;
    position: fixed;
}

input[type="range" i] {

    width: 100%
}

.delete-bt {
    color: #ffffff;
    background-color: #efa1a1;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    position: relative;
    top: -45px;
    left: -10px;
    cursor: pointer;
    display: none;
}

.delete-bt span {
    margin: -2 !important;
}

hr {
    margin: 30px;
}

.thumb-prev {
    width: 80px;
    margin: 20px;

}

.msg-text {
    font-style: italic;
    font-size: 10px;
}

.pagination {
    padding: 30px;
    display: flex;
    justify-content: space-around;
    max-width: 400px;
    margin: auto;
}

.pagination a {
    text-decoration: none;
    color: #6f7071;
}

.pagination a:hover {
    text-decoration: none;
    color: #83b8ec;
}

@media only screen and (max-width: 600px) {
    .logo {
        width: 30px;
        width: 70px;
        overflow: hidden;
    }

    .sidebar {
        width: 0px;
        overflow: hidden;
        z-index: 10;
    }

    .main {
        width: calc(100% - 20px);
        left: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .openmenu {
        width: 240px;
    }

    .window3d {
        padding-right: 0px;
        padding-bottom: 0px;
        left: 0px;
        position: relative;

    }

    .stats {
        width: 100%;
        display: block !important;
    }

    .stats-column {
        display: block;
        float: none;
        width: 100%;
    }
}

.help-icon {

    width: 15px;
    height: 15px;
    border-radius: 10px;
    background-color: #017eff;
    position: relative;
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    border: solid #ffffff 1px;
    box-shadow: 2px 2px 2px #b9b9b9;
    cursor: help;
    visibility: visible;
}

.help-pop-up {
    width: 300px;
    background-color: white;
    border: solid #000000 1px;
    box-shadow: 2px 2px 2px #b9b9b9;
    position: absolute;
    right: 10px;
    padding: 10px;
    padding-top: 0px;

}

.help-close {
    position: relative;
    right: 4px;
    top: 0;
    text-align: right;
    cursor: pointer;
}

.stats {

    display: flex;
    width: 100%;
    text-align: center;
}

.stats-column {
    width: 300px;
    margin: 19px;
    background: #ffffff;

}

.stats-content {

    text-align: left;
}

.stats-item {

    display: flex;
    align-items: center;
    padding: 3px;
}

.stats-item-large {

    display: flex;
    align-items: center;
    padding: 3px;
}

.stats-item img {
    width: 36px;
    height: 36px;
    margin-right: 20px;
}

.stats-quantity {

    width: 66px;
    text-align: right;
}

.stats-sku {
    width: 100px;
}

.flags {
    width: 36px !important;
    height: 24px !important;
}

.stats-place {
    font-size: 10px;
    width: 95px;
}

.stats-timestamp {
    width: 300px;
    text-align: end;
}

.stats-openDesign {
    margin-left: 15px;
    font-weight: bold;
    cursor: pointer;
}

.stats-openDesign:hover {
    color: #0088ff;
}

.svg-preview-bk {
    width: 784px;
    /* height: 670px; */
    margin-bottom: 20px;
    background: url("/imgs/trans_bg.png");
    max-width: 500px;
    max-height: 500px;
    max-width: 500px;
}

.preview-holder {
    width: 1000px;
    height: 1000px;
    margin-bottom: 20px;
    overflow: auto;
}

.draggable {
    cursor: move;
}

.non-select {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.class-list-holder {
    position: absolute;
    left: 944px;
    top: 153px;
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 151px;
    justify-content: space-evenly;
}

.item-list {

    display: flex;
    flex-direction: column;
    width: fit-content;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    margin: 28px;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.edit-buttons {
    display: flex;
    /* justify-content: space-between; */
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-definitions {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.product-definitions div {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    width: 250px;
}

.svg-preview-holder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
}

.svg-analysis {
    width: 305px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    row-gap: 20px;

}

.product-tile {
    width: 100px;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.product-tile h4 {
    margin: 0;
}

.product-tile-img {
    width: 100px;
    height: 100px;
}

.product-tile-img img {
    width: 100px;
    height: 100px;
}

.product-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.tile-list-view {
    display: flex;
    flex-wrap: wrap;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.roster-container {
    display: flex;
    flex-direction: column;
    width: 500px;
}

.player-item input {
    width: 100px;
    height: 20px;
}

.player-item button {
    width: 100px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.design-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 713px;
    justify-content: space-between;
}

.design {

    cursor: pointer;
    border: solid 1px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 2px;
    width: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.5rem;
}

.model {
    padding: 5px;
    cursor: pointer;
    border: solid 1px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 2px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Filters Section */
.filters-section {
    margin-bottom: 2rem;
}

.category-filters {
    margin-bottom: 1.5rem;
}

.category-filters h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.category-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-box {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem;
}

.search-input-wrapper input:focus {
    outline: none;
}

/* Products Table */
.products-table {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: flex;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-secondary);
}

.table-row {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background-color 0.2s;
}

.table-row:hover {
    background: var(--hover-bg);
}

.column {
    padding: 0 0.5rem;
}

.column.preview {
    width: 100px;
}

.column.title {
    flex: 1;
}

.column.sku {
    width: 150px;
}

.column.actions {
    width: 120px;
    display: flex;
    gap: 0.5rem;
}

.product-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Buttons */
.button-icon {
    padding: 0.5rem;
    border-radius: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.button-icon:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Drag and Drop */
.dragger.over {
    border: 2px dashed var(--accent-color);
}

/* Product Edit Page */
.product-edit-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-preview-section {
    margin-bottom: 2rem;
}

.preview-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.thumb-prev {
    width: 153px;
    height: 153px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-upload {
    flex: 1;
}

.form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}


.description-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.description-container textarea {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.product-definitions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.bottom-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.button-danger {
    background-color: #dc3545;
    color: white;
}

.button-danger:hover {
    background-color: #c82333;
}

.helper-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}


/* Design container styles */
.design-container {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}



.sku-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sku-form input {
    max-width: 200px;
}

/* Theme Toggle Switch */
.theme-toggle-container {
    padding: 1rem;
    margin-top: auto;
}

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.theme-labels {
    position: relative;
    height: 24px;
}

.theme-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.theme-label .label {
    font-size: 0.875rem;
}

/* Show/hide theme labels based on current theme */
:root[data-theme="light"] .light-theme,
:root[data-theme="dark"] .dark-theme {
    opacity: 1;
}

.switch {
    /* position: relative; */
    display: none;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.login-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0 2.5rem 2.5rem 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Force both login inputs to use exactly the same field styling. */
.login-form .input-with-icon input[type="text"],
.login-form .input-with-icon input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-form .input-with-icon input[type="text"]:focus,
.login-form .input-with-icon input[type="password"]:focus {
    outline: none;
    border-color: #8a7ca8;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .material-icons {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
}

.login-form .form-actions {
    margin-top: 1rem;
}

.login-form .form-actions button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1rem;
}

.add-roster-button {
    display: flex;
    align-items: center;
    gap: 1rem;
}