/* ================================
   LeafYTInsel Web Panel - Modern Style
   Dark Theme mit Gradients & Icons
   ================================ */

:root {
    /* Haupt-Farben */
    --bg: #0a0a0f;
    --bg-dark: #06060a;
    --card: #12121a;
    --card-hover: #1a1a25;

    /* Primary Gradient (Blau/Cyan) */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-primary-hover: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);

    /* Akzent Gradient (Gruen) */
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --gradient-warning: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);

    /* Text */
    --text: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    /* Border */
    --border: #1e293b;
    --border-light: #334155;

    /* Status */
    --error: #ef4444;
    --warning: #eab308;
    --success: #22c55e;

    /* Sonstiges */
    --sidebar-bg: linear-gradient(180deg, #0f0f18 0%, #0a0a10 100%);
    --card-gradient: linear-gradient(145deg, #14141f 0%, #0d0d14 100%);
}

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

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

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary);
}

code {
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--primary-light);
    font-size: 0.85em;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===== Login Page ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.login-card {
    background: var(--card-gradient);
    border-radius: 20px;
    padding: 45px;
    width: 100%;
    max-width: 440px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-header h1 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(59, 130, 246, 0.05);
}

.form-group input::placeholder {
    color: var(--text-dark);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== Dashboard Layout ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sidebar-header .logo-link {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-header .logo-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.sidebar-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-header h2 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-section-title {
    padding: 12px 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 25px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-light);
    border-left-color: var(--primary);
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 25px;
}

.logout-item {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.logout-item:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.session-timer {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--error);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
}

.user-info span {
    flex: 1;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--border);
}

.logout-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    color: var(--error);
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: var(--error);
    transform: scale(1.05);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 35px 45px;
    background:
        radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        var(--bg-dark);
    min-height: 100vh;
}

.content-header {
    margin-bottom: 35px;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-header h1 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-header p {
    color: var(--text-muted);
}

/* ===== Cards ===== */
.card {
    background: var(--card-gradient);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 i {
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header.gradient-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.card-header.gradient-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.card-header.gradient-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.card-body {
    padding: 25px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.green { background: var(--gradient-success); }
.stat-icon.red { background: var(--gradient-danger); }
.stat-icon.yellow { background: var(--gradient-warning); }
.stat-icon.purple { background: var(--gradient-purple); }

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Toggle Switch ===== */
.toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ===== Setting Items ===== */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

.setting-item:hover {
    padding-left: 10px;
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-info h4 i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.setting-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-control input[type="number"],
.setting-control input[type="text"] {
    width: 100px;
    padding: 10px 14px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.setting-control input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Number Input Spinner entfernen */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== Tables ===== */
.table-container {
    overflow-x: auto;
}

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

table th,
table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--bg);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.3rem;
}

/* ===== Auto-Save Indicator ===== */
.save-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.save-indicator.saving {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.save-indicator.saved {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.save-indicator.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ===== Section Titles & Spacers ===== */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title:first-of-type {
    margin-top: 0;
}

.section-title i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.section-spacer {
    height: 50px;
}

/* Card spacing */
.main-content > .card {
    margin-bottom: 20px;
}

/* ===== Custom Block Input ===== */
.select-with-custom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-block-input {
    margin-top: 8px;
}

/* ===== Large Button ===== */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== Form Styles (LeafCombat) ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-info {
    flex: 1;
}

.toggle-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.toggle-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.toggle {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.toggle input:checked + .toggle-slider {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* Additional Card Header Gradients */
.card-header.gradient-red {
    background: var(--gradient-danger);
}

.card-header.gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.card-header.gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.card-header.gradient-gold {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.card-header.gradient-green {
    background: var(--gradient-success);
}

/* Select Styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 48px;
}

select.form-input option {
    background: var(--card);
    color: var(--text);
}

/* ===== Info Banner ===== */
.info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.info-banner > i {
    color: var(--primary-light);
    font-size: 1.4rem;
    margin-top: 3px;
}

.info-banner strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
}

.info-banner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-banner ul li {
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.info-banner ul li:last-child {
    margin-bottom: 0;
}

/* ===== Kits Grid ===== */
.kits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Kit Card ===== */
.kit-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kit-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.kit-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.kit-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.kit-info {
    flex: 1;
}

.kit-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.kit-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.kit-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.1);
}

.btn-icon.btn-danger:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.kit-settings {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.kit-setting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kit-setting span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.kit-setting.toggle-setting {
    margin-left: auto;
}

.form-input-small {
    width: 120px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input-small:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.kit-details {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
}

.kit-inventory {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inventory-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-section h4 i {
    color: var(--primary-light);
}

.armor-slots,
.hotbar-slots,
.offhand-slot {
    display: flex;
    gap: 8px;
}

.inventory-slots {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
}

.item-slot {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-slot.small {
    width: 36px;
    height: 36px;
}

.item-slot img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.item-slot.small img {
    width: 26px;
    height: 26px;
}

.item-slot i {
    color: var(--text-dark);
    font-size: 1rem;
    opacity: 0.5;
}

.item-amount {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.item-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(139, 92, 246, 0.6);
    font-size: 1.1rem;
}

.item-slot.small .item-fallback {
    font-size: 0.85rem;
}

.kit-hint {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kit-hint i {
    color: var(--warning);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--warning);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 10px;
}

.modal-body .text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--border-light);
    background: var(--card);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ===== Warps Grid ===== */
.warps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* ===== Warp Card ===== */
.warp-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.warp-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.warp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.warp-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.warp-info {
    flex: 1;
}

.warp-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.warp-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.warp-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.warp-status.enabled {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.warp-status.disabled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.warp-actions {
    display: flex;
    gap: 8px;
}

.warp-coords {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.warp-coords span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warp-coords span i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.warp-details {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
}

.warp-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.warp-setting-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warp-setting-group label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.warp-setting-group.toggle-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.warp-hint {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warp-hint i {
    color: var(--warning);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 25px;
    }

    .dashboard {
        flex-direction: column;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .login-card {
        padding: 30px 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .setting-control {
        width: 100%;
    }

    .kits-grid {
        grid-template-columns: 1fr;
    }

    .kit-settings {
        flex-direction: column;
        gap: 12px;
    }

    .kit-setting.toggle-setting {
        margin-left: 0;
    }

    .inventory-slots {
        grid-template-columns: repeat(5, 1fr);
    }

    .info-banner {
        flex-direction: column;
    }
}

/* ===== Rewards Grid ===== */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.reward-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reward-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.reward-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.reward-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.reward-icon.kill {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.reward-icon.streak {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.reward-info {
    flex: 1;
    min-width: 0;
}

.reward-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reward-type {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.reward-type.kill {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.reward-type.streak {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.reward-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.reward-status.enabled {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.reward-status.disabled {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.reward-content {
    padding: 16px;
}

.reward-section {
    margin-bottom: 12px;
}

.reward-section:last-child {
    margin-bottom: 0;
}

.reward-section h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reward-section h4 i {
    font-size: 0.75rem;
}

.reward-items, .reward-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.item-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-tag.more {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.command-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Consolas', monospace;
}

.command-tag.more {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    font-family: inherit;
}

.reward-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.reward-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
}

.reward-actions .btn-edit {
    flex: 1;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.reward-actions .btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.reward-actions .btn-toggle,
.reward-actions .btn-delete {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.reward-actions .btn-toggle {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.reward-actions .btn-toggle:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.reward-actions .btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.reward-actions .btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ===== Modal Styles for Rewards ===== */
.modal-content.large {
    max-width: 700px;
}

.modal-content.small {
    max-width: 400px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.form-section {
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-small:hover {
    transform: translateY(-1px);
}

.items-list, .commands-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.list-item .form-input {
    flex: 1;
}

.list-item .form-input.small {
    max-width: 80px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.btn-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-add {
    padding: 8px 16px;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-danger {
    background: var(--gradient-danger) !important;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
