@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #7289DA;
    --primary-dark: #5B6BA8;
    --primary-light: #8BA0E8;
    --secondary: #2f3136;
    --success: #43B581;
    --success-dark: #357A5F;
    --danger: #F04747;
    --danger-dark: #C83A3A;
    --text: #DCDDDE;
    --text-muted: #72767D;
    --text-light: #949BA4;
    --bg-dark: #1e1f22;
    --bg-secondary: #2c2f33;
    --bg-tertiary: #36393f;
    --border: #3f4247;
    --border-light: #4f5258;
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.15s ease-in-out;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-focus: 0 0 0 3px rgba(114, 137, 218, 0.25);
}

/* Mode clair */
:root[data-theme="light"] {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --primary-light: #7289DA;
    --secondary: #FFFFFF;
    --success: #57F287;
    --text: #000000;
    --text-muted: #72767D;
    --text-light: #949BA4;
    --bg-dark: #FFFFFF;
    --bg-secondary: #F2F3F5;
    --bg-tertiary: #E3E5E8;
    --border: #DCDDDE;
    --border-light: #E0E0E0;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/*===== SIDEBAR =====*/
.sidebar {
    width: 260px;
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    animation: slideInLeft 0.4s ease-out;
}

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

.bot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.sidebar-header h2 {
    font-size: 16px;
}

.bot-version {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-light);
    transform: translateX(2px);
}

.nav-item:active {
    transform: translateX(0);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: white;
    border-radius: 0 2px 2px 0;
}

.nav-item .icon {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.nav-item .icon::before,
.nav-item .icon::after,
.quick-stat-icon::before,
.quick-stat-icon::after,
.section-mark::before,
.section-mark::after {
    content: '';
    position: absolute;
}

/* Guild Submenu - Appears after guild selection */
.guild-submenu {
    border-top: 1px solid var(--border);
    margin-top: 15px;
    padding-top: 15px;
    animation: slideInLeft 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.submenu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px 12px 15px;
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 10px;
    min-width: 0;
    width: 100%;
}

.submenu-header .submenu-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.submenu-header span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.submenu-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.submenu-item {
    padding-left: 52px !important;
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-word;
    white-space: normal;
}

.submenu-item:hover {
    color: var(--text-light);
    background: var(--bg-tertiary);
}

.submenu-item.active {
    background: rgba(114, 137, 218, 0.15);
    color: var(--primary);
}

/*===== MAIN CONTENT =====*/
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation améliorée pour les cartes */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(114, 137, 218, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(114, 137, 218, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

/*===== SEARCH BAR =====*/
.search-bar-container {
    margin-bottom: 20px;
}

.search-bar {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.search-bar:hover {
    border-color: var(--border-light);
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

/*===== LOADING STATES =====*/
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary), var(--bg-secondary));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--border-radius);
}

/*===== TOAST NOTIFICATIONS =====*/
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    color: var(--text);
    animation: slideInRight 0.3s ease-out;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: #5865F2;
}

.toast.info {
    border-left-color: var(--primary);
}

.toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
}

.toast-icon::before,
.toast-icon::after,
.list-item-icon::before,
.list-item-icon::after,
.stats-card-icon::before,
.stats-card-icon::after {
    content: '';
    position: absolute;
}

.toast-icon-success::before {
    inset: 1px;
    border-radius: 50%;
    border: 2px solid var(--success);
}

.toast-icon-success::after {
    left: 5px;
    top: 4px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(40deg);
}

.toast-icon-error::before,
.toast-icon-warning::before,
.toast-icon-info::before {
    inset: 1px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.toast-icon-error {
    color: var(--danger);
}

.toast-icon-error::after {
    inset: 4px;
    background:
        linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%);
}

.toast-icon-warning {
    color: #5865F2;
}

.toast-icon-warning::before {
    inset: 2px 4px 2px 4px;
    border: 0;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(180deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.toast-icon-warning::after {
    left: 8px;
    top: 5px;
    width: 2px;
    height: 6px;
    background: #1e1f22;
    box-shadow: 0 8px 0 #1e1f22;
}

.toast-icon-info {
    color: var(--primary-light);
}

.toast-icon-info::after {
    left: 8px;
    top: 4px;
    width: 2px;
    height: 8px;
    background: currentColor;
    box-shadow: 0 -4px 0 0 currentColor;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: var(--transition-fast);
}

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

/*===== CARD IMPROVEMENTS =====*/
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.status-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/*===== DASHBOARD GRID =====*/
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/*===== MINIMAL DASHBOARD =====*/
.dashboard-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.quick-stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    animation: floatUp 0.5s ease-out;
}

.quick-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    animation: glow 2s infinite;
}

.quick-stat-icon {
    flex-shrink: 0;
}

.quick-stat-content h3 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.quick-stat-content p {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.action-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    color: white;
    animation: slideInRight 0.4s ease-out;
}

.action-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.action-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.action-card .btn {
    width: 100%;
    background: white;
    color: var(--primary);
}

.action-card .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.commands-overview {
    background: linear-gradient(140deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 22px;
    animation: floatUp 0.55s ease-out;
}

.commands-overview-header {
    margin-bottom: 14px;
}

.commands-overview-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.overview-heading-row,
.action-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-mark {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.commands-overview-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.commands-overview-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.commands-overview-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    transition: var(--transition-fast);
}

.commands-overview-list li:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.commands-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(220px, 1fr) auto auto auto;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
}

.commands-filter {
    min-width: 220px;
}

.commands-layout {
    display: grid;
    grid-template-columns: 1.2fr minmax(300px, 0.8fr);
    gap: 18px;
}

.commands-list {
    display: grid;
    gap: 10px;
    align-content: start;
}

.command-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.command-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.command-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background: rgba(114, 137, 218, 0.12);
}

.command-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.command-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
}

.command-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.command-card code {
    font-size: 12px;
    color: var(--primary-light);
}

.command-chip {
    background: rgba(114, 137, 218, 0.25);
    color: var(--text);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
}

.command-details {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 18px;
    min-height: 260px;
    box-shadow: var(--shadow-md);
}

.command-detail-description {
    color: var(--text-muted);
    margin: 8px 0 14px 0;
}

.command-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-detail-block {
    margin-bottom: 14px;
}

.command-detail-block label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.command-usage-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.command-usage-row code {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    padding: 8px 10px;
    color: var(--primary-light);
    font-size: 13px;
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-chip {
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    color: var(--text);
    background: var(--bg-dark);
}

.commands-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 26px;
    border: 1px dashed var(--border);
    border-radius: var(--border-radius);
}

.command-name {
    color: var(--primary-light);
    font-weight: 600;
}

.command-category {
    color: var(--text-muted);
    font-size: 12px;
}

/*===== FAVORIS ET INDICATEURS =====*/
.favorites-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    animation: scaleIn 0.4s ease-out;
}

.favorites-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.favorite-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
}

.favorite-item:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.favorite-item-icon {
    font-size: 28px;
}

.favorite-item-name {
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

.favorite-star {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.favorite-star:hover {
    opacity: 1;
    transform: scale(1.2);
}

.favorite-star.active {
    opacity: 1;
    animation: bounce 0.3s ease;
}

.card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    animation: slideInRight 0.4s ease-out;
}

.card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    margin-bottom: 10px;
}

.card h3 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/*===== GUILDS GRID =====*/
.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/*===== GUILD CARD =====*/
.guild-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 0;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 280px;
}

.guild-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 0;
}

.guild-card:hover::before {
    opacity: 0.1;
}

.guild-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.guild-card.selected {
    border-color: var(--primary);
    background: rgba(114, 137, 218, 0.1);
}

.guild-card.selected::after {
    content: '✓';
    position: absolute;
    top: 50px;
    right: 10px;
    background: var(--success);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.favorite-star-btn {
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.favorite-star-btn:hover {
    transform: scale(1.3) rotate(-15deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.favorite-star-btn.active {
    animation: bounce 0.3s ease;
}

.guild-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin: 0 auto 15px;
    border: 3px solid var(--border);
    object-fit: cover;
    background: var(--bg-dark) url('https://logos-world.net/wp-content/uploads/2020/12/Discord-Emblem.png') center / contain no-repeat;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.guild-card:hover .guild-icon {
    transform: scale(1.1);
    border-color: var(--primary);
}

.guild-card h3 {
    font-size: 16px;
    margin: 0 15px 10px 15px;
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.guild-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.guild-stat {
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guild-stat-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 243, 250, 0.38);
}

.guild-card:hover .guild-stat {
    color: var(--text-light);
}

/*===== SELECTED GUILD INFO =====*/
.selected-guild-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 0.4s ease-out;
}

.selected-guild-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid white;
    object-fit: cover;
    background: url('https://logos-world.net/wp-content/uploads/2020/12/Discord-Emblem.png') center / contain no-repeat;
    flex-shrink: 0;
}

.selected-guild-details {
    flex: 1;
}

.selected-guild-details h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.selected-guild-details p {
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.selected-guild-info .btn {
    flex-shrink: 0;
}

.selected-guild-info .btn-primary {
    background: white;
    color: var(--primary);
}

.selected-guild-info .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.selected-guild-info .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.selected-guild-info .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/*===== LIST CONTAINER =====*/
.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.list-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
    animation: fadeIn 0.4s ease-out;
}

.list-item:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.list-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-item-icon {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    color: #ffb08d;
}

.list-item-icon-role::before,
.stats-card-icon-roles::before {
    top: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 7px 2px 0 -1px currentColor;
}

.list-item-icon-role::after,
.stats-card-icon-roles::after {
    left: 1px;
    bottom: 1px;
    width: 12px;
    height: 6px;
    border: 1.6px solid currentColor;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
}

.list-item-icon-member::before,
.stats-card-icon-members::before,
.stats-card-icon-humans::before,
.stats-card-icon-bots::before {
    top: 1px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.list-item-icon-member::after,
.stats-card-icon-members::after,
.stats-card-icon-humans::after,
.stats-card-icon-bots::after {
    left: 2px;
    bottom: 1px;
    width: 12px;
    height: 6px;
    border: 1.8px solid currentColor;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
}

.member-badge {
    background: linear-gradient(135deg, rgba(255, 140, 92, 0.9), rgba(255, 107, 61, 0.9));
    color: #1c1f24;
}

.empty-state-note {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(31, 33, 38, 0.5);
}

.list-item p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 5px 0;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 8px;
}

/*===== CONFIG FORM =====*/
.config-container {
    max-width: 900px;
}

.guild-selector {
    margin-bottom: 30px;
}

.guild-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.config-form {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    animation: scaleIn 0.5s ease-out;
    box-shadow: var(--shadow-md);
}

.config-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.config-tab {
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
    font-weight: 600;
}

.config-tab:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.config-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
    animation: floatUp 0.6s ease-out;
}

.form-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.form-group {
    margin-bottom: 20px;
    animation: floatUp 0.7s ease-out;
}

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

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 4px;
}

.inline-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.form-control {
    width: 100%;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:hover {
    border-color: var(--border-light);
    background: var(--bg-secondary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.form-control:disabled,
.form-control:disabled:hover {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    transition: var(--transition-fast);
}

.form-checkbox:hover {
    transform: scale(1.1);
}

.form-checkbox:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/*===== BUTTONS =====*/
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    animation: floatUp 0.4s ease-out;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

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

.btn:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled,
.btn:disabled:hover {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--text);
}

#commandsRefreshBtn::after,
#commandsExportJsonBtn::after,
#commandsExportCsvBtn::after {
    content: '';
    width: 14px;
    height: 14px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

#commandsRefreshBtn::after {
    border: 1.8px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

#commandsExportJsonBtn::after,
#commandsExportCsvBtn::after {
    background:
        linear-gradient(currentColor, currentColor) center 3px / 2px 7px no-repeat,
        linear-gradient(45deg, transparent 48%, currentColor 48% 52%, transparent 52%) center 8px / 8px 8px no-repeat,
        linear-gradient(currentColor, currentColor) center bottom / 12px 2px no-repeat;
}

/*===== STATS GRID =====*/
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stats-grid .card {
    position: relative;
    overflow: visible;
}

.stats-grid .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.stats-grid .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    color: #ffb08d;
}

.stats-card-icon-text::before,
.stats-card-icon-voice::before,
.stats-card-icon-total::before {
    left: 8px;
    top: 8px;
    width: 24px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.stats-card-icon-text::after,
.stats-card-icon-total::after {
    left: 13px;
    top: 14px;
    width: 14px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.stats-card-icon-voice::after {
    left: 16px;
    top: 12px;
    width: 8px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.stats-card-icon-total::after {
    box-shadow: 0 5px 0 currentColor, 8px -5px 0 -5px currentColor;
}

.stats-card-icon-ratio::before {
    left: 8px;
    bottom: 8px;
    width: 16px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-24deg);
}

.stats-card-icon-ratio::after {
    right: 8px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.stats-grid .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid .card h3 {
    margin-top: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
    width: 10px;
}

/*===== UTILITIES =====*/
.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.badge.success {
    background: var(--success);
}

.badge.danger {
    background: var(--danger);
}

/*===== LOADING STATE =====*/
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/*===== RESPONSIVE =====*/
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-header {
        min-width: 200px;
        padding: 15px;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0 10px;
    }

    .guild-submenu {
        display: none !important;
    }

    .nav-item {
        white-space: nowrap;
        padding: 10px;
        flex-shrink: 0;
    }

    .main-content {
        padding: 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .dashboard-quick-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .quick-stat-card {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .quick-stat-icon {
        font-size: 24px;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .commands-overview-list {
        grid-template-columns: 1fr;
    }

    .commands-toolbar {
        grid-template-columns: 1fr;
    }

    .commands-layout {
        grid-template-columns: 1fr;
    }

    .guilds-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .guild-card {
        min-height: 250px;
    }

    .favorites-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .list-container {
        grid-template-columns: 1fr;
    }

    .config-form {
        padding: 20px;
    }

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

    .theme-toggle-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .sidebar {
        overflow-x: scroll;
    }

    .sidebar-header {
        min-width: 150px;
        padding: 10px;
    }

    .sidebar-header h2 {
        font-size: 14px;
    }

    .nav-item {
        padding: 8px;
        font-size: 12px;
        gap: 5px;
    }

    .nav-item .icon {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .page-header p.subtitle {
        font-size: 12px;
    }

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

    .quick-stat-card {
        padding: 12px;
    }

    .quick-stat-content h3 {
        font-size: 11px;
    }

    .quick-stat-content p {
        font-size: 16px;
    }

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

    .guild-card {
        min-height: auto;
    }

    .card {
        padding: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.user-auth-section {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    animation: slideInLeft 0.4s ease-out;
}

/*===== THEME TOGGLE =====*/
.theme-toggle-container {
    padding: 15px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.theme-toggle {
    width: 100%;
    background: var(--bg-tertiary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.2);
}

.user-info-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.user-info-display:hover {
    background: rgba(0, 0, 0, 0.3);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: var(--transition-fast);
}

.user-avatar-small:hover {
    transform: scale(1.1);
}

.logout-link {
    margin-left: auto;
    color: var(--danger);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-fast);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.logout-link:hover {
    color: var(--danger-dark);
    background: rgba(240, 71, 71, 0.1);
}

/* ===== DRAFTBOT-INSPIRED CONFIG DASHBOARD ===== */
#config {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    padding: 8px 0 24px;
    background: linear-gradient(180deg, rgba(58, 61, 69, 0.52), rgba(44, 47, 53, 0.16));
}

#config::before {
    content: '';
    position: absolute;
    inset: -10% -8% 12% -8%;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 140, 92, 0.16), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(88, 101, 242, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%);
    z-index: 0;
}

#config::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(19, 20, 24, 0.02), rgba(19, 20, 24, 0.2));
    z-index: 0;
}

.config-page-header {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(58, 61, 68, 0.98), rgba(47, 50, 56, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.config-page-header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.config-page-header .subtitle {
    max-width: 860px;
    line-height: 1.5;
}

#config .config-container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
}

.config-panel-shell {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(44, 47, 51, 0.86), rgba(30, 31, 34, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.config-panel-shell label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--text-muted);
}

#config .config-form {
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(160deg, rgba(44, 47, 51, 0.96), rgba(31, 33, 36, 0.98)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.config-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid rgba(114, 137, 218, 0.35);
    background: linear-gradient(120deg, rgba(88, 101, 242, 0.16), rgba(87, 242, 135, 0.08));
}

.status-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #f6f7fb;
}

.status-banner-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.status-pill {
    white-space: nowrap;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #dfffea;
    border: 1px solid rgba(87, 242, 135, 0.32);
    background: rgba(67, 181, 129, 0.14);
    border-radius: 999px;
    padding: 6px 10px;
}

#config .config-tabs {
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 15, 17, 0.35);
    margin-bottom: 20px;
}

#config .config-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--text-muted);
}

#config .config-tab:hover {
    color: var(--text);
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.12);
}

#config .config-tab.active {
    background: linear-gradient(150deg, #5865f2, #4752c4);
    border-color: #5865f2;
    box-shadow: 0 10px 22px rgba(88, 101, 242, 0.35);
}

#config .form-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 16, 19, 0.34);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#config .form-section h3 {
    margin: 0 0 16px 0;
    color: #e9ecff;
    font-size: 17px;
    letter-spacing: 0.02em;
}

#config .form-group {
    margin-bottom: 14px;
}

#config .form-group:last-child {
    margin-bottom: 0;
}

#config .form-control {
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 11, 14, 0.68);
    min-height: 46px;
    padding: 12px 14px;
    color: #f3f5fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#config .form-control:hover {
    border-color: rgba(255, 140, 92, 0.18);
    background: rgba(14, 15, 18, 0.94);
}

#config .form-control:focus {
    border-color: rgba(255, 140, 92, 0.48);
    background: rgba(14, 15, 18, 0.98);
    box-shadow: 0 0 0 3px rgba(255, 140, 92, 0.14), 0 12px 24px rgba(0, 0, 0, 0.16);
}

#config select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

#config textarea.form-control {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

#config .form-group label {
    margin-bottom: 8px;
    color: rgba(240, 243, 250, 0.82);
    font-size: 13px;
    letter-spacing: 0.02em;
}

#config .form-group small {
    margin-top: 8px;
    color: rgba(240, 243, 250, 0.45);
}

#config .toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(21, 22, 26, 0.54), rgba(16, 17, 20, 0.3));
}

#config .toggle-group label {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    color: #d3d7e5;
}

#config .form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 46px;
    height: 26px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: var(--transition-fast);
}

#config .form-checkbox::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}

#config .form-checkbox:hover {
    transform: none;
    border-color: rgba(255, 140, 92, 0.28);
}

#config .form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 92, 0.16);
}

#config .form-checkbox:checked {
    border-color: rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

#config .form-checkbox:checked::before {
    transform: translateX(20px);
}

#config .form-actions {
    margin-top: 18px;
    border-top: none;
    padding-top: 0;
    gap: 12px;
}

#config .form-actions .btn {
    min-width: 210px;
    border-radius: 11px;
    min-height: 46px;
}

#config .form-actions .btn-primary {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(88, 101, 242, 0.18);
}

#config .form-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #7289DA, #5865F2);
}

#config .form-actions .btn-secondary,
#config .inline-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3f5fb;
}

#config .form-actions .btn-secondary:hover:not(:disabled),
#config .inline-actions .btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 140, 92, 0.28);
    background: rgba(255, 140, 92, 0.08);
}

#config .inline-actions {
    margin-top: 10px;
}

@media (max-width: 900px) {
    #config .config-form {
        padding: 18px;
    }

    .config-status-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-pill {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .config-page-header h1 {
        font-size: 24px;
    }

    #config .config-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #config .config-tab {
        text-align: center;
    }

    #config .toggle-group {
        padding: 10px;
    }

    #config .toggle-group label {
        font-size: 12px;
    }

    #config .form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    #config .form-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ===== DRAFTBOT-INSPIRED GUILDS + COMMANDS ===== */
.main-content {
    background:
        radial-gradient(circle at top right, rgba(255, 140, 92, 0.09), transparent 28%),
        radial-gradient(circle at bottom left, rgba(114, 137, 218, 0.12), transparent 24%),
        linear-gradient(180deg, #35383f 0%, #2f3238 100%);
}

#guilds .page-header,
#commands .page-header {
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(56, 59, 66, 0.96), rgba(45, 48, 54, 0.96));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.search-bar-container,
.commands-toolbar {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(38, 40, 46, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.commands-layout {
    gap: 20px;
}

.commands-list,
.command-details {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(42, 45, 51, 0.96);
}

.command-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(52, 56, 63, 0.96), rgba(42, 45, 51, 0.96));
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: transparent;
    transition: var(--transition-fast);
}

.command-card:hover {
    border-color: rgba(255, 140, 92, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.command-card.active {
    background: linear-gradient(180deg, rgba(58, 62, 70, 0.98), rgba(44, 47, 53, 0.98));
    border-color: rgba(255, 140, 92, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.command-card.active::before,
.command-card:hover::before {
    background: linear-gradient(180deg, #ff8c5c, #ff6b3d);
}

.command-chip,
.permission-chip {
    border-color: rgba(255, 140, 92, 0.24);
    background: rgba(255, 140, 92, 0.12);
}

.command-usage-row code {
    background: rgba(24, 25, 28, 0.9);
}

.commands-empty,
.commands-empty-state {
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(31, 33, 38, 0.86);
    padding: 20px;
    color: var(--text-muted);
    text-align: center;
}

.commands-empty-state strong {
    display: block;
    color: #f3f5fb;
    margin-bottom: 8px;
    font-size: 15px;
}

.commands-empty-state p {
    margin: 0;
    line-height: 1.6;
}

.guilds-grid {
    gap: 18px;
}

.guild-card {
    align-items: flex-start;
    min-height: 0;
    padding: 22px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(51, 55, 63, 0.98), rgba(41, 44, 50, 0.98));
    text-align: left;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.guild-card::before {
    height: 4px;
    opacity: 1;
    background: linear-gradient(90deg, rgba(255, 140, 92, 0.95), rgba(255, 140, 92, 0.2));
}

.guild-card:hover,
.guild-card.selected {
    border-color: rgba(255, 140, 92, 0.45);
    background: linear-gradient(180deg, rgba(57, 61, 69, 1), rgba(44, 47, 53, 1));
}

.guild-card.selected::after {
    top: 18px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: #ff8c5c;
}

.guild-icon {
    width: 82px;
    height: 82px;
    margin: 8px auto 18px;
    border-radius: 22px;
    border: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    background-color: #111216;
}

.guild-card h3 {
    width: 100%;
    margin: 0 0 10px 0;
    font-size: 17px;
    color: #f7f8fc;
}

.guild-stats {
    width: 100%;
    margin: 14px 0 0 0;
    padding: 14px 0 0 0;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.selected-guild-info {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(57, 61, 69, 0.98), rgba(44, 47, 53, 0.98));
    position: relative;
    overflow: hidden;
}

.selected-guild-info::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ff8c5c, #ff6b3d);
}

.selected-guild-info .btn-primary {
    background: #ff8c5c;
    color: #1c1f24;
    border-color: #ff8c5c;
}

.selected-guild-info .btn-primary:hover {
    background: #ff9e75;
}

@media (max-width: 900px) {
    .commands-list,
    .command-details {
        padding: 14px;
    }
}

@media (max-width: 640px) {
    #guilds .page-header,
    #commands .page-header,
    .search-bar-container,
    .commands-toolbar {
        padding: 12px;
    }

    .guild-card {
        padding: 18px 16px 16px;
    }

    .guild-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
}

/* ===== DRAFTBOT-INSPIRED SIDEBAR + HOME ===== */
.sidebar {
    position: relative;
    background:
        linear-gradient(180deg, rgba(33, 35, 40, 0.99), rgba(26, 28, 32, 0.99)),
        linear-gradient(180deg, rgba(255, 140, 92, 0.04), transparent 24%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.24);
}

.sidebar::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff8c5c, rgba(255, 140, 92, 0.12));
    z-index: 2;
}

.sidebar-header {
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.sidebar-header > div {
    min-width: 0;
}

.bot-avatar {
    width: 56px;
    height: 56px;
    border: 0;
    background: #111216;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.sidebar-header h2 {
    font-size: 17px;
    color: #f4f6fb;
    letter-spacing: 0.02em;
}

.bot-version {
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-auth-section {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.user-auth-section .btn-primary {
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8c5c, #ff6b3d);
    color: #1c1f24;
    box-shadow: 0 14px 28px rgba(255, 107, 61, 0.18);
}

.user-auth-section .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9f77, #ff7b4f);
}

.user-info-display {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(47, 50, 56, 0.92), rgba(37, 39, 44, 0.92));
    padding: 10px 12px;
}

.user-info-display:hover {
    background: linear-gradient(180deg, rgba(53, 56, 63, 0.96), rgba(39, 42, 47, 0.96));
    border-color: rgba(255, 140, 92, 0.22);
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#userName {
    color: #f1f4fb;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-link {
    color: #ff8c5c;
}

.logout-link:hover {
    color: #ffb08d;
    background: rgba(255, 140, 92, 0.12);
}

.sidebar-nav {
    padding: 12px 10px;
    gap: 6px;
}

.sidebar-section-label {
    margin: 14px 16px 4px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 243, 250, 0.34);
}

.sidebar-section-label-submenu {
    margin: 0 14px 10px;
}

.nav-item {
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(240, 243, 250, 0.72);
    background: transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
    color: #f7f8fc;
    transform: translateX(0);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 140, 92, 0.2), rgba(255, 140, 92, 0.06));
    border-color: rgba(255, 140, 92, 0.2);
    color: #fff4ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-item.active::before {
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, #ff8c5c, #ff6b3d);
    border-radius: 999px;
}

.nav-item .icon {
    font-size: 17px;
    opacity: 0.95;
}

.icon-dashboard::before {
    top: 2px;
    left: 2px;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 0 currentColor, 8px 0 0 currentColor, 0 8px 0 currentColor, 8px 8px 0 currentColor;
}

.icon-guilds::before {
    inset: 3px 2px;
    border: 1.6px solid currentColor;
    border-radius: 4px;
}

.icon-guilds::after {
    left: 5px;
    right: 5px;
    top: 7px;
    height: 1.6px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor;
}

.icon-commands::before {
    top: 3px;
    left: 4px;
    width: 9px;
    height: 9px;
    border-top: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.icon-commands::after {
    left: 2px;
    right: 2px;
    top: 8px;
    height: 1.6px;
    background: currentColor;
    transform: rotate(-18deg);
}

.icon-stats::before {
    left: 2px;
    bottom: 3px;
    width: 12px;
    height: 8px;
    border-left: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: skewX(-24deg);
}

.icon-stats::after {
    right: 1px;
    top: 3px;
    width: 5px;
    height: 5px;
    border-top: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.icon-config::before {
    inset: 3px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
}

.icon-config::after {
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 12%, currentColor 12% 18%, transparent 18% 30%, currentColor 30% 36%, transparent 36% 48%, currentColor 48% 54%, transparent 54% 66%, currentColor 66% 72%, transparent 72% 84%, currentColor 84% 90%, transparent 90% 100%);
    -webkit-mask: radial-gradient(circle, transparent 0 5px, #000 5px);
    mask: radial-gradient(circle, transparent 0 5px, #000 5px);
    opacity: 0.9;
}

.icon-roles::before,
.icon-members::before,
.stat-icon-users::before {
    top: 3px;
    left: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 7px 2px 0 -1px currentColor;
}

.icon-roles::after,
.icon-members::after,
.stat-icon-users::after {
    left: 2px;
    bottom: 2px;
    width: 12px;
    height: 6px;
    border: 1.6px solid currentColor;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
}

.icon-members::after,
.stat-icon-users::after {
    left: 1px;
    width: 14px;
}

.guild-submenu {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.submenu-header {
    padding: 0 14px 12px 14px;
    color: #e7eaf3;
}

.submenu-header .submenu-icon,
.submenu-icon {
    border-radius: 10px;
    background: #111216;
}

.submenu-item {
    margin-left: 8px;
    padding-left: 40px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.submenu-item.active {
    background: linear-gradient(90deg, rgba(255, 140, 92, 0.16), rgba(255, 140, 92, 0.04));
    color: #fff0e9;
}

.theme-toggle-container {
    padding: 0 16px 18px;
    background: transparent;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.theme-toggle {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(49, 52, 58, 0.96), rgba(40, 42, 48, 0.96));
}

.theme-toggle:hover {
    background: linear-gradient(135deg, #ff8c5c, #ff6b3d);
    border-color: #ff8c5c;
    color: #1c1f24;
    transform: translateY(-1px);
}

#dashboard {
    position: relative;
}

#dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(255, 140, 92, 0.12), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(114, 137, 218, 0.14), transparent 20%);
}

#dashboard > * {
    position: relative;
    z-index: 1;
}

#dashboard .page-header {
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(58, 61, 68, 0.98), rgba(47, 50, 56, 0.98));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

#dashboard .page-header h1 {
    color: #f5f7fc;
}

#dashboard .subtitle {
    color: rgba(240, 243, 250, 0.62);
}

.dashboard-quick-stats {
    gap: 18px;
    margin: 22px 0 30px;
}

.quick-stat-card {
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(51, 55, 62, 0.98), rgba(41, 44, 50, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.quick-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ff8c5c, rgba(255, 140, 92, 0.2));
}

.quick-stat-card:hover {
    border-color: rgba(255, 140, 92, 0.42);
    transform: translateY(-5px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.2);
    animation: none;
}

.quick-stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 14px;
    background: rgba(255, 140, 92, 0.12);
    color: #fff3ec;
}

.stat-icon-live::before {
    inset: 14px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.stat-icon-latency::before {
    left: 11px;
    top: 22px;
    width: 26px;
    height: 2px;
    background: currentColor;
    transform: rotate(-18deg);
}

.stat-icon-latency::after {
    right: 11px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.stat-icon-uptime::before {
    inset: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.stat-icon-uptime::after {
    left: 23px;
    top: 14px;
    width: 2px;
    height: 12px;
    background: currentColor;
    box-shadow: 5px 6px 0 0 currentColor;
    transform-origin: bottom center;
    transform: rotate(12deg);
}

.stat-icon-guilds::before {
    left: 12px;
    top: 12px;
    width: 24px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.stat-icon-guilds::after {
    left: 17px;
    top: 18px;
    width: 14px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.stat-icon-commands::before {
    left: 15px;
    top: 13px;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.stat-icon-commands::after {
    left: 14px;
    top: 25px;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: rotate(-18deg);
}

.quick-stat-content h3 {
    color: rgba(240, 243, 250, 0.48);
    letter-spacing: 0.12em;
}

.quick-stat-content p {
    color: #f7f8fc;
    font-size: 24px;
}

.dashboard-actions {
    gap: 18px;
    margin-bottom: 28px;
}

.action-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(56, 60, 68, 0.98), rgba(45, 48, 55, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ff8c5c, rgba(255, 140, 92, 0.16));
}

.action-card:first-child {
    background: linear-gradient(135deg, rgba(255, 140, 92, 0.2), rgba(58, 60, 67, 0.98) 34%, rgba(45, 48, 54, 0.98));
}

.action-card h3 {
    color: #f8f9fc;
    font-size: 20px;
}

.action-card-heading h3,
.overview-heading-row h3 {
    margin: 0;
}

.section-mark-guilds::before,
.section-mark-stats::before,
.section-mark-commands::before {
    inset: 0;
    border-radius: 6px;
    background: rgba(255, 140, 92, 0.12);
    border: 1px solid rgba(255, 140, 92, 0.22);
}

.section-mark-guilds::after {
    left: 4px;
    right: 4px;
    top: 5px;
    height: 2px;
    background: #ffb08d;
    box-shadow: 0 4px 0 #ffb08d;
}

.section-mark-stats::after {
    left: 4px;
    bottom: 4px;
    width: 9px;
    height: 6px;
    border-left: 2px solid #ffb08d;
    border-bottom: 2px solid #ffb08d;
    transform: skewX(-24deg);
}

.section-mark-commands::after {
    left: 5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #ffb08d;
    border-right: 2px solid #ffb08d;
    transform: rotate(45deg);
}

.action-card p {
    color: rgba(240, 243, 250, 0.68);
}

.action-card .btn {
    width: auto;
    min-width: 180px;
    background: linear-gradient(135deg, #ff8c5c, #ff6b3d);
    color: #1c1f24;
}

.action-card .btn:hover {
    background: linear-gradient(135deg, #ff9f77, #ff7b4f);
}

.commands-overview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(52, 56, 63, 0.98), rgba(42, 45, 51, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.commands-overview::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ff8c5c, rgba(255, 140, 92, 0.16));
}

.commands-overview-header h3 {
    color: #f5f7fc;
}

.commands-overview-header p {
    color: rgba(240, 243, 250, 0.58);
}

.commands-overview-list li {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(31, 33, 38, 0.92);
    border-radius: 12px;
}

.commands-overview-list li:hover {
    border-color: rgba(255, 140, 92, 0.4);
}

.command-name {
    color: #f7f8fc;
    font-weight: 600;
}

.command-category {
    color: #ffb08d;
    font-size: 12px;
}

@media (max-width: 768px) {
    .sidebar {
        box-shadow: none;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar::before {
        position: absolute;
    }

    .sidebar-section-label {
        display: none;
    }

    .user-auth-section {
        min-width: 220px;
        border-bottom: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-footer {
        border-top: 0;
        padding-top: 0;
        background: transparent;
    }

    .dashboard-quick-stats {
        gap: 12px;
    }

    .overview-heading-row,
    .action-card-heading {
        gap: 10px;
    }

    .quick-stat-card,
    .action-card,
    .commands-overview {
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    #dashboard .page-header {
        padding: 18px;
    }

    #config {
        border-radius: 18px;
        padding-top: 0;
    }

    .config-page-header {
        padding: 18px;
    }

    .quick-stat-card {
        padding: 16px 14px;
    }

    .quick-stat-icon {
        width: 42px;
        height: 42px;
    }

    .action-card {
        padding: 22px 18px;
    }

    .action-card .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ===== DRAFTBOT V2 FINAL OVERRIDE ===== */
:root {
    --draft-bg-0: #22252b;
    --draft-bg-1: #2a2e35;
    --draft-bg-2: #30353d;
    --draft-bg-3: #383d46;
    --draft-border: rgba(255, 255, 255, 0.08);
    --draft-border-soft: rgba(255, 255, 255, 0.05);
    --draft-text-0: #f2f5fc;
    --draft-text-1: #cfd5e2;
    --draft-text-2: #98a1b3;
    --draft-accent: #ff8c5c;
    --draft-accent-2: #ff6b3d;
    --draft-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.container {
    background: linear-gradient(180deg, #1f2227, #1d2025);
}

.sidebar {
    width: 268px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 140, 92, 0.08), transparent 55%),
        linear-gradient(180deg, #23262c 0%, #1f2228 100%);
    border-right: 1px solid var(--draft-border-soft);
    box-shadow: 22px 0 46px rgba(0, 0, 0, 0.28);
}

.sidebar::before {
    background: linear-gradient(90deg, var(--draft-accent), rgba(255, 140, 92, 0.15));
}

.sidebar-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--draft-border-soft);
}

.bot-avatar {
    border-radius: 16px;
}

.sidebar-header h2 {
    color: var(--draft-text-0);
    font-size: 16px;
    font-weight: 700;
}

.bot-version {
    color: var(--draft-text-2);
    font-size: 11px;
}

.sidebar-section-label {
    color: rgba(207, 213, 226, 0.42);
    font-size: 10px;
    letter-spacing: 0.13em;
}

.user-auth-section {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--draft-border-soft);
}

.user-auth-section .btn-primary {
    border-radius: 12px;
    font-weight: 700;
}

.user-info-display {
    border: 1px solid var(--draft-border-soft);
    background: linear-gradient(180deg, #32363e, #2a2e35);
}

.sidebar-nav {
    padding: 10px;
    gap: 6px;
}

.nav-item {
    color: var(--draft-text-1);
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 12px 13px;
}

.nav-item:hover {
    color: var(--draft-text-0);
    border-color: var(--draft-border-soft);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: #fff3ec;
    border-color: rgba(255, 140, 92, 0.25);
    background: linear-gradient(90deg, rgba(255, 140, 92, 0.24), rgba(255, 140, 92, 0.06));
}

.nav-item.active::before {
    background: linear-gradient(180deg, var(--draft-accent), var(--draft-accent-2));
}

.guild-submenu {
    background: rgba(255, 255, 255, 0.018);
}

.submenu-header {
    color: var(--draft-text-0);
}

.submenu-item {
    color: var(--draft-text-1);
}

.submenu-item.active {
    color: #fff1e8;
    background: linear-gradient(90deg, rgba(255, 140, 92, 0.2), rgba(255, 140, 92, 0.04));
}

.sidebar-footer {
    border-top: 1px solid var(--draft-border-soft);
    background: rgba(255, 255, 255, 0.015);
}

.theme-toggle {
    border-color: var(--draft-border);
}

.main-content {
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 140, 92, 0.11), transparent 55%),
        radial-gradient(60% 40% at 0% 100%, rgba(92, 124, 255, 0.09), transparent 55%),
        linear-gradient(180deg, #353a43 0%, #2e333b 100%);
    padding: 28px;
}

.page-header,
#guilds .page-header,
#commands .page-header,
#dashboard .page-header,
.config-page-header {
    border-radius: 16px;
    border: 1px solid var(--draft-border);
    background: linear-gradient(180deg, #3c414a 0%, #343941 100%);
    box-shadow: var(--draft-shadow);
}

.page-header h1,
#dashboard .page-header h1,
.config-page-header h1 {
    color: var(--draft-text-0);
    font-size: 28px;
    letter-spacing: 0.01em;
}

.subtitle,
#dashboard .subtitle,
.config-page-header .subtitle {
    color: var(--draft-text-2);
}

.search-bar-container,
.commands-toolbar {
    border: 1px solid var(--draft-border);
    border-radius: 14px;
    background: rgba(43, 47, 54, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.search-bar,
.form-control {
    background: #24282e;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--draft-text-1);
}

.search-bar::placeholder {
    color: rgba(207, 213, 226, 0.5);
}

.search-bar:focus,
.form-control:focus {
    border-color: rgba(255, 140, 92, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 140, 92, 0.16);
}

.dashboard-quick-stats {
    margin: 20px 0 28px;
    gap: 16px;
}

.quick-stat-card {
    border-radius: 14px;
    border: 1px solid var(--draft-border);
    background: linear-gradient(180deg, #3a3f47, #323740);
    box-shadow: var(--draft-shadow);
}

.quick-stat-card::before {
    background: linear-gradient(180deg, var(--draft-accent), rgba(255, 140, 92, 0.15));
}

.quick-stat-card:hover {
    border-color: rgba(255, 140, 92, 0.45);
}

.quick-stat-content h3 {
    color: rgba(207, 213, 226, 0.55);
}

.quick-stat-content p {
    color: var(--draft-text-0);
}

.action-card,
.commands-overview,
.commands-list,
.command-details,
.guild-card,
.selected-guild-info,
.list-item,
.card,
#config .config-form,
.config-panel-shell,
#config .form-section {
    border: 1px solid var(--draft-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #393e47, #31363f);
    box-shadow: var(--draft-shadow);
}

.action-card::before,
.commands-overview::before,
.selected-guild-info::before,
.guild-card::before {
    background: linear-gradient(180deg, var(--draft-accent), var(--draft-accent-2));
}

.action-card h3,
.commands-overview-header h3,
.command-card h3,
.list-item h3,
#config .form-section h3 {
    color: var(--draft-text-0);
}

.action-card p,
.commands-overview-header p,
.command-card p,
.list-item p,
#config .form-group label,
#config .form-group small,
#config .toggle-group label {
    color: var(--draft-text-1);
}

.commands-overview-list li,
.command-card,
.permissions-list,
.command-usage-row code {
    background: rgba(29, 32, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

.command-card.active,
.command-card:hover,
.commands-overview-list li:hover {
    border-color: rgba(255, 140, 92, 0.45);
}

.command-chip,
.permission-chip,
.badge {
    border: 1px solid rgba(255, 140, 92, 0.24);
    background: rgba(255, 140, 92, 0.14);
    color: #ffe5d7;
}

.commands-empty,
.commands-empty-state,
.empty-state-note {
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(33, 36, 42, 0.85);
    color: var(--draft-text-2);
}

.guild-card h3,
.selected-guild-details h3 {
    color: var(--draft-text-0);
}

.guild-stat {
    color: var(--draft-text-1);
}

.guild-stat-label {
    color: rgba(207, 213, 226, 0.48);
}

.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary,
#config .form-actions .btn-primary,
.action-card .btn,
.selected-guild-info .btn-primary {
    background: linear-gradient(135deg, var(--draft-accent), var(--draft-accent-2));
    border: 1px solid rgba(255, 140, 92, 0.35);
    color: #1c1f24;
}

.btn-primary:hover:not(:disabled),
#config .form-actions .btn-primary:hover:not(:disabled),
.action-card .btn:hover,
.selected-guild-info .btn-primary:hover {
    background: linear-gradient(135deg, #ffa37f, #ff8054);
}

.btn-secondary,
#config .form-actions .btn-secondary,
#config .inline-actions .btn-secondary,
.selected-guild-info .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--draft-text-1);
}

.btn-secondary:hover:not(:disabled),
#config .form-actions .btn-secondary:hover:not(:disabled),
#config .inline-actions .btn-secondary:hover:not(:disabled),
.selected-guild-info .btn-secondary:hover {
    border-color: rgba(255, 140, 92, 0.28);
    background: rgba(255, 140, 92, 0.08);
    color: #fff0e8;
}

#config {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(56, 61, 70, 0.6), rgba(46, 50, 58, 0.24));
}

#config::before {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 140, 92, 0.17), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(102, 120, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%);
}

#config .config-tabs {
    border-color: var(--draft-border);
    background: rgba(24, 27, 32, 0.6);
}

#config .config-tab {
    border-color: transparent;
    color: var(--draft-text-1);
}

#config .config-tab:hover {
    color: var(--draft-text-0);
    border-color: rgba(255, 140, 92, 0.25);
    background: rgba(255, 140, 92, 0.12);
}

#config .config-tab.active {
    color: #fff4ec;
    border-color: rgba(255, 140, 92, 0.45);
    background: linear-gradient(135deg, rgba(255, 140, 92, 0.26), rgba(255, 107, 61, 0.2));
    box-shadow: 0 8px 20px rgba(255, 107, 61, 0.16);
}

#config .form-control,
#config select.form-control,
#config textarea.form-control {
    background-color: #22262c;
}

#config .toggle-group {
    background: linear-gradient(180deg, rgba(24, 27, 32, 0.7), rgba(19, 22, 27, 0.45));
}

#config .form-checkbox:checked {
    background: linear-gradient(135deg, var(--draft-accent), var(--draft-accent-2));
}

.toast {
    border-radius: 12px;
    background: linear-gradient(180deg, #3b4049, #31363e);
    border: 1px solid var(--draft-border);
}

.toast-message {
    color: var(--draft-text-1);
}

.toast-close {
    color: var(--draft-text-2);
}

.toast-close:hover {
    color: var(--draft-text-0);
}

.stats-grid .card::before {
    background: linear-gradient(90deg, var(--draft-accent), rgba(255, 140, 92, 0.25));
}

.stats-grid .stat-value {
    background: linear-gradient(135deg, #ffc4a8, #ff8c5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 236px;
    }

    .main-content {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--draft-border-soft);
        box-shadow: none;
    }

    .sidebar::before {
        position: absolute;
    }

    .sidebar-section-label {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

    .page-header,
    #guilds .page-header,
    #commands .page-header,
    #dashboard .page-header,
    .config-page-header {
        padding: 16px;
        border-radius: 14px;
    }

    .commands-layout,
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .quick-stat-card,
    .action-card,
    .commands-overview,
    .commands-list,
    .command-details,
    .guild-card,
    .selected-guild-info,
    .list-item,
    .card,
    #config .config-form,
    .config-panel-shell,
    #config .form-section {
        border-radius: 12px;
    }

    .action-card .btn,
    #config .form-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ===== SIMPLE DISCORD THEME OVERRIDE ===== */
:root {
    --simple-bg: #313338;
    --simple-panel: #2b2d31;
    --simple-panel-2: #383a40;
    --simple-border: #454852;
    --simple-text: #f2f3f5;
    --simple-muted: #b5bac1;
    --simple-accent: #5865f2;
}

.container,
html,
body {
    background: var(--simple-bg);
}

.main-content,
.sidebar,
#config,
#dashboard,
.page,
.sidebar-footer,
.guild-submenu,
.search-bar-container,
.commands-toolbar,
.commands-list,
.command-details,
.commands-overview,
.quick-stat-card,
.action-card,
.guild-card,
.selected-guild-info,
.list-item,
.card,
#config .config-form,
.config-panel-shell,
#config .form-section,
.toast {
    background: var(--simple-panel) !important;
    box-shadow: none !important;
}

.page-header,
#dashboard .page-header,
#guilds .page-header,
#commands .page-header,
.config-page-header {
    background: var(--simple-panel-2) !important;
    border: 1px solid var(--simple-border) !important;
    box-shadow: none !important;
}

.sidebar {
    border-right: 1px solid var(--simple-border) !important;
    width: 250px;
}

.sidebar::before,
#dashboard::before,
#config::before,
#config::after,
.action-card::before,
.commands-overview::before,
.selected-guild-info::before,
.guild-card::before,
.quick-stat-card::before,
.stats-grid .card::before {
    content: none !important;
    display: none !important;
}

.nav-item,
.submenu-item,
.sidebar-section-label,
.subtitle,
.guild-stat,
.guild-stat-label,
.bot-version,
.stat-label,
.command-detail-description,
.commands-overview-header p,
.form-group small,
#config .form-group label,
#config .toggle-group label,
.toast-message {
    color: var(--simple-muted) !important;
}

.sidebar-header h2,
.page-header h1,
#dashboard .page-header h1,
.config-page-header h1,
.action-card h3,
.commands-overview-header h3,
.command-card h3,
.list-item h3,
.selected-guild-details h3,
.quick-stat-content p,
.stat-value {
    color: var(--simple-text) !important;
}

.nav-item,
.submenu-item,
.btn,
.form-control,
.search-bar,
.command-card,
.commands-overview-list li,
.permission-chip,
.command-chip,
.badge,
.empty-state-note,
.commands-empty,
.commands-empty-state,
#config .toggle-group,
#config .config-tabs,
#config .config-tab,
#config .form-section,
#config .form-control,
#config .config-form,
.config-panel-shell,
.user-info-display,
.theme-toggle,
.toast {
    border: 1px solid var(--simple-border) !important;
    border-radius: 8px !important;
}

.search-bar,
.form-control,
#config .form-control,
#config select.form-control,
#config textarea.form-control,
.command-usage-row code,
.commands-overview-list li,
.command-card,
.permissions-list,
.theme-toggle,
.user-info-display {
    background: #1f2124 !important;
}

.nav-item:hover,
.submenu-item:hover,
.command-card:hover,
.commands-overview-list li:hover,
.list-item:hover,
.guild-card:hover,
.quick-stat-card:hover,
.btn-secondary:hover:not(:disabled) {
    border-color: #5a5f6b !important;
    background: #32353c !important;
    transform: none !important;
}

.nav-item.active,
.submenu-item.active,
#config .config-tab.active {
    background: rgba(88, 101, 242, 0.2) !important;
    border-color: rgba(88, 101, 242, 0.45) !important;
    color: var(--simple-text) !important;
}

.nav-item.active::before {
    background: var(--simple-accent) !important;
}

.btn-primary,
#config .form-actions .btn-primary,
.action-card .btn,
.selected-guild-info .btn-primary,
.user-auth-section .btn-primary {
    background: var(--simple-accent) !important;
    color: #fff !important;
    border-color: var(--simple-accent) !important;
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.26) !important;
}

.btn-primary:hover:not(:disabled),
#config .form-actions .btn-primary:hover:not(:disabled),
.action-card .btn:hover,
.selected-guild-info .btn-primary:hover,
.user-auth-section .btn-primary:hover:not(:disabled) {
    background: #4752c4 !important;
    box-shadow: 0 8px 18px rgba(88, 101, 242, 0.34) !important;
}

.btn,
.btn-secondary,
#config .form-actions .btn-secondary,
#config .inline-actions .btn-secondary,
.selected-guild-info .btn-secondary {
    box-shadow: none !important;
}

.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
#config .form-actions .btn-primary:focus,
#config .form-actions .btn-secondary:focus,
.action-card .btn:focus,
.selected-guild-info .btn-primary:focus,
.selected-guild-info .btn-secondary:focus,
.user-auth-section .btn-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.35) !important;
}

.btn-secondary,
#config .form-actions .btn-secondary,
#config .inline-actions .btn-secondary,
.selected-guild-info .btn-secondary {
    background: #2b2d31 !important;
    color: var(--simple-text) !important;
}

.quick-stat-icon {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 22px !important;
}

.icon::before,
.icon::after,
.quick-stat-icon::before,
.quick-stat-icon::after,
.section-mark,
.stats-card-icon::before,
.stats-card-icon::after,
.toast-icon::before,
.toast-icon::after,
.list-item-icon::before,
.list-item-icon::after {
    display: none !important;
    content: none !important;
}

.icon {
    width: auto !important;
    height: auto !important;
    font-size: 16px !important;
}

.section-mark {
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.command-detail-title {
    gap: 0 !important;
}

.stats-grid .stat-value {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

#config {
    padding: 0 !important;
    border-radius: 0 !important;
}

#config .form-checkbox {
    accent-color: var(--simple-accent);
}

.toast {
    min-width: 280px;
}

.toast-icon {
    width: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 260px;
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    }

    .sidebar.open {
        left: 0;
    }

    .container {
        flex-direction: column;
    }

    .main-content {
        padding: 16px;
        flex: 1;
    }

    .guilds-grid, .commands-grid, .roles-grid, .members-grid, .tickets-grid {
        grid-template-columns: 1fr !important;
    }

    .commands-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar {
        width: 100%;
    }

    .form-control {
        width: 100%;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .command-card {
        margin-bottom: 8px;
    }

    .command-details {
        margin-top: 16px;
        padding: 16px;
        background: var(--bg-tertiary);
        border-radius: var(--border-radius);
    }

    .tickets-controls {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-width: 100%;
    }

    .main-content {
        padding: 12px;
    }

    .page-header {
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .page-header .subtitle {
        font-size: 12px;
    }

    .dashboard-quick-stats {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }

    .quick-stat-card {
        padding: 12px;
    }

    .sidebar-nav {
        padding: 8px;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .guild-card {
        padding: 12px;
    }

    .guild-stats {
        flex-direction: row;
        gap: 8px;
    }

    .guild-stat {
        font-size: 11px;
    }

    .pagination-container {
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 8px;
        min-width: 28px;
        font-size: 11px;
    }

    .pagination-info {
        font-size: 11px;
    }

    .list-item {
        padding: 12px;
    }

    .command-card {
        padding: 12px;
    }

    .command-chip {
        font-size: 11px;
        padding: 3px 8px;
    }

    .btn-group {
        gap: 8px;
    }

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

    .toast {
        min-width: 240px;
        font-size: 12px;
    }

    .tickets-controls {
        gap: 8px;
    }

    .tickets-grid {
        grid-template-columns: 1fr !important;
    }

    .ticket-card {
        padding: 12px;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 16px;
}

.pagination-btn {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
    min-width: 32px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Loading States */
.loading-skeleton {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    animation: skeleton-loading 1s infinite;
}

@keyframes skeleton-loading {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-muted);
}

.content-placeholder p {
    margin: 0;
}

/* Tickets Styles */
.tickets-controls {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

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

.ticket-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 16px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.ticket-card:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ticket-card.ticket-status-closed {
    opacity: 0.7;
}

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

.ticket-id {
    font-weight: 600;
    color: var(--primary);
}

.ticket-body {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.ticket-body p {
    margin: 6px 0;
}

.ticket-subject {
    color: var(--text);
    font-style: italic;
    margin-top: 8px;
}

.ticket-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.badge-open {
    background: var(--success);
    color: white;
}

.badge-closed {
    background: var(--text-muted);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: auto;
}

.search-box {
    width: 100%;
}

.input-search {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: 13px;
}

.input-search::placeholder {
    color: var(--text-muted);
}

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

.input-select {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
}

.input-select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-select option {
    background: var(--bg-secondary);
    color: var(--text);
}