:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-card-hover: rgba(30, 30, 40, 0.85);
    --accent-primary: #00ff88;
    --accent-secondary: #00b8ff;
    --accent-gold: #ffcc00;
    --accent-danger: #ff4444;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 184, 255, 0.05) 0%, transparent 20%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* Mobile App Tweaks */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* Prevent text selection like an app */
}

/* Allow text selection in inputs and console */
input,
textarea,
.console-output,
code {
    user-select: text;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, white 0%, #eee 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
    background: #33ff99;
    box-shadow: 0 6px 16px rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--accent-danger);
    color: white;
}

.btn-warning {
    background: rgba(255, 204, 0, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 204, 0, 0.2);
}

.btn-warning:hover {
    background: var(--accent-gold);
    color: black;
}

.btn-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.btn-success:hover {
    background: var(--accent-primary);
    color: black;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bots Section */
.section-title {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Bot Card */
.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    background: var(--bg-card-hover);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.bot-info h3 {
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.bot-server {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.bot-status {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-primary);
}

.status-online::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.status-offline {
    background: rgba(255, 68, 68, 0.15);
    color: var(--accent-danger);
}

.status-offline::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.status-connecting {
    background: rgba(255, 204, 0, 0.15);
    color: var(--accent-gold);
}

.status-connecting::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.bot-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-bar-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    height: 8px;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.health-fill {
    height: 100%;
    background: var(--accent-danger);
    border-radius: 6px;
    transition: width 0.5s;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.food-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 6px;
    transition: width 0.5s;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.bot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.afk-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.4);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    /* Forced flex by JS when active */
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex !important;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 0;
}

.modal-content {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    z-index: 1;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-large .modal-content,
.modal-large {
    max-width: 900px;
}

.modal-content.console-modal {
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-content.inventory-modal {
    max-width: 600px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Console */
.console-output {
    background: #0a0a0c;
    flex: 1;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    color: #ddd;
}

.console-input-area {
    padding: 16px;
    background: #1a1a1c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.console-input-area input {
    flex: 1;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.console-input-area input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Inventory */
.inventory-container {
    padding: 24px;
    background: #c6c6c6;
    /* Classic MC Inventory Grey */
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    border: 2px solid #555;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.inventory-grid,
.inventory-hotbar {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.inv-slot {
    width: 36px;
    height: 36px;
    background: #8b8b8b;
    border: 2px solid;
    border-color: #373737 #fff #fff #373737;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-slot:hover {
    background: #bdbdbd;
}

.inv-item-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.inv-item-count {
    position: absolute;
    bottom: 0px;
    right: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #3f3f3f;
    font-family: 'JetBrains Mono', monospace;
}

.inventory-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Container Section */
.inventory-container-section {
    padding: 20px 24px;
    background: #c6c6c6;
    border-bottom: 2px solid #555;
}

.container-title {
    font-size: 14px;
    color: #404040;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.inventory-container-grid {
    display: grid;
    gap: 4px;
    justify-content: center;
}

/* Dynamic grid layouts for different container sizes */
.inventory-container-grid[data-size="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.inventory-container-grid[data-size="9"] {
    grid-template-columns: repeat(9, 1fr);
}

.inventory-container-grid[data-size="18"],
.inventory-container-grid[data-size="27"],
.inventory-container-grid[data-size="36"],
.inventory-container-grid[data-size="45"],
.inventory-container-grid[data-size="54"] {
    grid-template-columns: repeat(9, 1fr);
}

/* Special layouts */
.inventory-container-grid[data-size="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.inventory-container-grid[data-size="1"] {
    grid-template-columns: repeat(1, 1fr);
}

.inventory-container-grid[data-size="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* Notifications */
.notifications {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: #1a1a1c;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    min-width: 250px;
}

.notification.success {
    border-left: 3px solid var(--accent-primary);
}

.notification.success::before {
    content: '✓';
    font-weight: bold;
    color: var(--accent-primary);
}

.notification.error {
    border-left: 3px solid var(--accent-danger);
}

.notification.error::before {
    content: '✕';
    font-weight: bold;
    color: var(--accent-danger);
}

.notification.info {
    border-left: 3px solid var(--accent-secondary);
}

.notification.info::before {
    content: 'ℹ';
    font-weight: bold;
    color: var(--accent-secondary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {
    body {
        padding-bottom: 20px;
        background: #000;
    }

    .container {
        padding: 0 16px;
    }

    /* Header - Clean & Minimal */
    .header {
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-content {
        justify-content: space-between;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        display: none;
        /* Hide subtitle on mobile */
    }

    /* Hide all header buttons on mobile */
    .user-controls {
        display: none !important;
    }

    /* Show only username */
    #userInfo {
        display: block !important;
        font-size: 12px !important;
        opacity: 0.7;
    }

    /* Stats - 2x2 Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: 20px 0;
    }

    .stat-card {
        padding: 16px;
        min-height: auto;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .stat-info h3 {
        font-size: 22px;
    }

    .stat-info p {
        font-size: 11px;
    }

    /* Bot Cards - THE STAR OF THE SHOW */
    .section-title {
        font-size: 20px;
        margin: 24px 0 16px 0;
    }

    .bots-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .bot-card {
        background: linear-gradient(145deg, #111115 0%, #0a0a0d 100%);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        padding: 20px;
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
        transition: transform 0.2s, border-color 0.2s;
    }

    .bot-card:active {
        transform: scale(0.98);
    }

    .bot-card:hover {
        border-color: rgba(0, 255, 136, 0.15);
    }

    /* Bot Header - Name & Status */
    .bot-header {
        margin-bottom: 16px;
        gap: 12px;
    }

    .bot-info h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 6px;
        letter-spacing: -0.3px;
    }

    .bot-server {
        font-size: 12px;
        padding: 4px 8px;
        opacity: 0.7;
    }

    .bot-status {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    /* Health/Food Bars - Compact */
    .bot-stats-row {
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .stat-bar-container {
        height: 6px;
        margin-top: 4px;
    }

    /* Bot Actions - Organized Button Groups */
    .bot-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    /* Primary action - full width */
    .bot-actions .btn-primary:first-child,
    .bot-actions .btn-danger:first-child {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
    }

    /* Secondary actions - grid layout */
    .bot-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Make connect/disconnect button span full width */
    .bot-actions>.btn-primary:first-of-type,
    .bot-actions>.btn-danger:first-of-type,
    .bot-actions>.btn-success:first-of-type {
        grid-column: 1 / -1;
    }

    .bot-actions .btn {
        padding: 10px 12px;
        font-size: 13px;
        justify-content: center;
    }

    .bot-actions .btn-small {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* More menu - hidden by default */
    .bot-more-menu {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* AFK Badge - Smaller */
    .afk-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 8px;
    }

    /* Modals - Bottom Sheet Style */
    .modal {
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
        animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal-content.console-modal,
    .modal-content.inventory-modal {
        max-width: 100%;
        height: 90vh;
    }

    @keyframes slideUpModal {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: #121214;
        z-index: 10;
    }

    .modal-body {
        padding: 20px;
    }

    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Notifications - Top instead of bottom */
    .notifications {
        top: 80px;
        right: 16px;
        left: 16px;
        bottom: auto;
    }

    .notification {
        width: 100%;
    }

    /* Mobile FAB - Floating Action Button */
    .mobile-fab {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent-primary) 0%, #00d970 100%);
        border: none;
        box-shadow:
            0 4px 20px rgba(0, 255, 136, 0.4),
            0 0 0 4px rgba(0, 255, 136, 0.1);
        cursor: pointer;
        display: none;
        /* Hidden by default */
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #000;
        z-index: 999;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .mobile-fab:active {
        transform: scale(0.9);
    }

    /* Show FAB only on mobile */
    @media (max-width: 768px) {
        .mobile-fab {
            display: flex;
        }
    }
}

.drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 40px;
    height: 40px;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    opacity: 0.8;
}

.drag-ghost img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

/* Armor Placeholders */
.slot-helmet:empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff44' stroke-width='2'%3E%3Cpath d='M12 2a9 9 0 0 1 9 9v7a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2v-7a9 9 0 0 1 9-9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.slot-chestplate:empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff44' stroke-width='2'%3E%3Cpath d='M4 3h16v18h-16zM4 3l4 8M20 3l-4 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.slot-leggings:empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff44' stroke-width='2'%3E%3Cpath d='M4 3h16v20h-4v-10h-8v10h-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.slot-boots:empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff44' stroke-width='2'%3E%3Cpath d='M4 10h6v12h-6zM14 10h6v12h-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.slot-offhand:empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff44' stroke-width='2'%3E%3Cpath d='M12 2l-9 3v7c0 5 9 10 9 10s9-5 9-10v-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

/* Macro Manager Specific Styles */
.macro-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.macro-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.action-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-left: 2px solid var(--accent-primary);
}

.action-item:hover {
    background: rgba(0, 0, 0, 0.4);
}

.dropdown-content {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    z-index: 100;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #eee;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: white;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}