:root {
    --bg-primary: #0f1219;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --bg-hover: #262c36;
    --bg-active: #2d333b;
    --accent: #e94560;
    --accent-light: #ff6b6b;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --success: #3fb950;
    --border: #30363d;
    --shadow: rgba(0, 0, 0, 0.4);
    
    --rarity-uncommon: #6AA84F;
    --rarity-rare: #4A86E8;
    --rarity-epic: #9900FF;
    --rarity-legendary: #FF9900;
    
    --sidebar-width: 260px;
    --content-max-width: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===================
   AUTH STYLES
   =================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--accent);
    color: white;
}

.auth-tab:hover:not(.active) {
    background: var(--bg-hover);
}

/* ===================
   FORM STYLES
   =================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

/* ===================
   BUTTON STYLES
   =================== */
.btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-active);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Rarity Select Styling */
.rarity-select {
    font-weight: 500;
}

.rarity-select.uncommon { color: var(--rarity-uncommon); }
.rarity-select.rare { color: var(--rarity-rare); }
.rarity-select.epic { color: var(--rarity-epic); }
.rarity-select.legendary { color: var(--rarity-legendary); }

.rarity-option-uncommon { color: var(--rarity-uncommon); }
.rarity-option-rare { color: var(--rarity-rare); }
.rarity-option-epic { color: var(--rarity-epic); }
.rarity-option-legendary { color: var(--rarity-legendary); }

/* Requirements Popup Styles */
.req-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.req-category {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.req-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.req-category-icon {
    font-size: 1.1rem;
}

.req-category-title {
    color: var(--text-primary);
}

.req-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.req-search-box {
    margin-bottom: 0.75rem;
}

.req-search-box input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.req-search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.req-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.req-row input,
.req-row select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.req-row .req-material {
    flex: 2;
}

.req-row .req-material-custom {
    flex: 1;
}

.req-row .req-amount {
    flex: 1;
    min-width: 100px;
}

.req-row .req-level {
    width: 80px;
}

.req-row .req-fixed-label {
    flex: 1;
    color: var(--text-secondary);
    font-weight: 500;
}

.req-row .req-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.req-row .req-delete:hover {
    color: #dc3545;
}

/* Mob select with rarity colors */
.req-mob-select option.rarity-uncommon { color: var(--rarity-uncommon); }
.req-mob-select option.rarity-rare { color: var(--rarity-rare); }
.req-mob-select option.rarity-epic { color: var(--rarity-epic); }
.req-mob-select option.rarity-legendary { color: var(--rarity-legendary); }

/* Requirements Tooltip */
.item-with-req {
    position: relative;
}

.req-indicator {
    color: var(--rarity-rare);
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.req-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 1000;
    display: none;
    margin-bottom: 0.5rem;
}

.req-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--border);
}

.item-with-req:hover .req-tooltip {
    display: block;
}

.req-tooltip-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.req-tooltip-category {
    margin-bottom: 0.5rem;
}

.req-tooltip-category-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.req-tooltip-item {
    font-size: 0.8rem;
    color: var(--text-primary);
    padding: 0.15rem 0;
}

.req-tooltip-item .mob-level {
    color: var(--rarity-epic);
    font-style: italic;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ===================
   MESSAGE STYLES
   =================== */
.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.success-message {
    background: rgba(63, 185, 80, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.demo-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-info code {
    background: var(--bg-hover);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent-light);
}

/* ===================
   APP CONTAINER
   =================== */
.app-container {
    display: none;
    min-height: 100vh;
}

/* ===================
   SIDEBAR
   =================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-logo-text h1 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.3;
}

.sidebar-author {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===================
   SIDEBAR NAVIGATION
   =================== */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.nav-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-hover);
    border-left-color: var(--accent);
    color: var(--text-primary);
}

.nav-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item-text {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item-add {
    color: var(--accent);
    font-weight: 600;
}

.nav-item-add:hover {
    background: rgba(233, 69, 96, 0.1);
}

/* ===================
   SIDEBAR FOOTER
   =================== */
.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info-small {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name-small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-small {
    font-size: 0.65rem;
    color: var(--rarity-legendary);
    text-transform: uppercase;
    font-weight: 600;
}

.btn-logout-small {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn-logout-small:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--accent);
}

/* ===================
   MAIN CONTENT - CENTERED (wie Login)
   =================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.content-wrapper {
    width: 800px;
    max-width: 100%;
}

.content-header {
    margin-bottom: 1.5rem;
}

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

.content-icon {
    font-size: 1.5rem;
}

.content-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===================
   RARITY LEGEND
   =================== */
.rarity-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.rarity-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rarity-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.rarity-legend-dot.uncommon { background: var(--rarity-uncommon); }
.rarity-legend-dot.rare { background: var(--rarity-rare); }
.rarity-legend-dot.epic { background: var(--rarity-epic); }
.rarity-legend-dot.legendary { background: var(--rarity-legendary); }

/* ===================
   CONTENT META
   =================== */
.content-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.content-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-body {
    width: 100%;
}

/* ===================
   EMPTY STATE
   =================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* ===================
   SECTION STYLES
   =================== */
.checklist-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.section-header:hover {
    background: var(--bg-hover);
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-toggle {
    color: var(--text-muted);
    transition: transform 0.2s;
    font-size: 0.75rem;
}

.section-toggle.collapsed {
    transform: rotate(-90deg);
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.section-edit-btn {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    padding: 0.25rem;
}

.section-header:hover .section-edit-btn {
    opacity: 1;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-progress {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.section-content {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.section-content.collapsed {
    display: none;
}

/* ===================
   INFO BOX
   =================== */
.info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--rarity-rare);
    border-radius: 6px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.info-box-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rarity-rare);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-box-content ul {
    list-style: disc;
    margin-left: 1.25rem;
}

.info-box-content li {
    margin-bottom: 0.2rem;
}

/* ===================
   CHECKLIST ITEMS
   =================== */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.2s;
}

.checklist-item:hover {
    background: var(--bg-hover);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed .item-text {
    text-decoration: line-through;
}

.item-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.item-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.item-checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 0.7rem;
}

.item-text {
    flex: 1;
    font-size: 0.85rem;
}

.item-text.link {
    color: var(--accent);
    cursor: pointer;
}

.item-text.link:hover {
    text-decoration: underline;
}

.item-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.checklist-item:hover .item-actions {
    opacity: 1;
}

/* ===================
   TABLE STYLES
   =================== */
.item-table {
    width: 100%;
    border-collapse: collapse;
}

.item-table th {
    text-align: left;
    padding: 0.6rem 0.875rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.item-table td {
    padding: 0.6rem 0.875rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.item-table tr:last-child td {
    border-bottom: none;
}

.item-table tr:hover td {
    background: var(--bg-hover);
}

.item-table .col-checkbox {
    width: 36px;
}

.item-table .col-rarity {
    width: 28px;
}

.item-table .col-level {
    width: 70px;
    text-align: center;
}

.item-table .col-actions {
    width: 50px;
    text-align: right;
}

.rarity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.rarity-dot.uncommon { background: var(--rarity-uncommon); box-shadow: 0 0 6px var(--rarity-uncommon); }
.rarity-dot.rare { background: var(--rarity-rare); box-shadow: 0 0 6px var(--rarity-rare); }
.rarity-dot.epic { background: var(--rarity-epic); box-shadow: 0 0 6px var(--rarity-epic); }
.rarity-dot.legendary { background: var(--rarity-legendary); box-shadow: 0 0 6px var(--rarity-legendary); }

.item-name-colored {
    font-weight: 500;
}

.item-name-colored.uncommon { color: var(--rarity-uncommon); }
.item-name-colored.rare { color: var(--rarity-rare); }
.item-name-colored.epic { color: var(--rarity-epic); }
.item-name-colored.legendary { color: var(--rarity-legendary); }

/* ===================
   POPUP STYLES
   =================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.popup-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.popup-container.popup-large {
    max-width: 700px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.popup-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.popup-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--text-primary);
}

.popup-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.popup-body textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.popup-body textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.popup-body label input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--accent);
}

.popup-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.popup-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* ===================
   USER TABLE
   =================== */
.user-table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.user-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.user-table tr:hover td {
    background: var(--bg-hover);
}

.user-table select {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
}

.user-table select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-delete-user {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-delete-user:hover {
    color: #dc3545;
}

/* ===================
   ADMIN BUTTON
   =================== */
.admin-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rarity-legendary);
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    transition: all 0.2s;
    z-index: 50;
}

.admin-btn:hover {
    transform: scale(1.1);
}

/* ===================
   MOBILE MENU BUTTON
   =================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 101;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ===================
   UTILITY CLASSES
   =================== */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-accent { color: var(--accent); }

/* ===================
   RESPONSIVE - TABLET
   =================== */
@media (max-width: 1200px) {
    .content-wrapper {
        width: 700px;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .content-wrapper {
        width: 100%;
    }
}

/* ===================
   RESPONSIVE - MOBILE
   =================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.open {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .content-wrapper {
        width: 100%;
    }

    .content-title h2 {
        font-size: 1.25rem;
    }
    
    .rarity-legend {
        gap: 1rem;
        padding: 0.6rem 0.875rem;
    }
    
    .rarity-legend-item {
        font-size: 0.75rem;
    }

    .section-header {
        padding: 0.75rem;
    }
    
    .section-content {
        padding: 0.75rem;
    }

    .popup-container {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .item-table th,
    .item-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .admin-btn {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ===================
   RESPONSIVE - SMALL MOBILE
   =================== */
@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem;
    }
    
    .auth-logo h1 {
        font-size: 1.25rem;
    }
    
    .rarity-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .item-table .col-level {
        display: none;
    }
    
    .content-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}
