/* ====================================
   CraftValley Admin Panel - Modern Design
   ==================================== */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #101012;
    --bg-tertiary: #1a1a1d;
    --bg-card: #141416;
    --bg-hover: #1e1e21;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b5;
    --text-muted: #6b6b70;
    --border-color: #1a1a1d;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --blue: #3b82f6;
    --sidebar-width: 230px;
}

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

html {
    margin: 0;
    padding: 0;
}

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

.app-container {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ====================================
   SIDEBAR
   ==================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    margin: 0;
    padding: 0;
    border: none;
    transform: translateX(0);
    box-shadow: none;
}

.sidebar-header {
    padding: 16px 20px;
    margin: 0;
    border: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.sidebar-logo h1 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.sidebar-logo span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

.nav-section {
    padding: 20px 16px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 10px;
    margin-bottom: 4px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.sidebar-nav li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-nav li a.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.sidebar-nav li a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.sidebar-nav li a.active svg {
    opacity: 1;
}

.sidebar-user {
    padding: 12px;
    margin: 12px 10px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-info img { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    border: 2px solid var(--border-color);
}

.sidebar-user-info .name { font-weight: 600; font-size: 13px; }
.sidebar-user-info .role { font-size: 11px; color: var(--accent); }

/* Mobile Menu Toggle - Hidden on desktop, visible on mobile */
.mobile-menu-toggle {
    display: none;
    visibility: hidden;
    position: absolute;
}

/* ====================================
   MAIN CONTENT
   ==================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px 28px;
    min-height: 100vh;
    background: var(--bg-primary);
}

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

.page-header h2 { 
    font-size: 22px; 
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p { 
    color: var(--text-muted); 
    font-size: 13px;
    margin-top: 2px;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-value { 
    font-size: 28px; 
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ====================================
   CARDS
   ==================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: #3a3a3e;
}

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

.card-header h3 { 
    font-size: 14px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 20px; }
.card-body.no-padding { padding: 0; }

/* ====================================
   TABLES
   ==================================== */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

td { 
    font-size: 13px; 
    vertical-align: middle; 
}

tbody tr {
    transition: background 0.2s;
}

tbody tr:hover { 
    background: var(--bg-hover); 
}

.empty-cell { 
    text-align: center; 
    padding: 40px !important; 
    color: var(--text-muted); 
}

.player-cell { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.player-avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 6px; 
    background: var(--bg-tertiary); 
}

.player-name { 
    font-weight: 500;
    font-size: 13px;
}

.player-uuid { 
    font-size: 10px; 
    color: var(--text-muted); 
    font-family: 'SF Mono', Monaco, monospace; 
}

/* Leaderboard Rank */
.leaderboard-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.leaderboard-rank.gold { 
    background: linear-gradient(135deg, #FFD700, #FFA500); 
    color: #000; 
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.leaderboard-rank.silver { 
    background: linear-gradient(135deg, #E8E8E8, #B8B8B8); 
    color: #000; 
}

.leaderboard-rank.bronze { 
    background: linear-gradient(135deg, #CD7F32, #8B4513); 
    color: #fff; 
}

/* Rank Badge */
.rank-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ====================================
   BADGES
   ==================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover { 
    background: var(--accent-hover); 
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

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

.btn-secondary:hover { 
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-small { 
    padding: 6px 12px; 
    font-size: 12px; 
}

/* ====================================
   SEARCH
   ==================================== */
.search-form { display: flex; gap: 10px; }

.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 13px;
    transition: border-color 0.2s;
}

.search-form input:focus { 
    outline: none; 
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-form button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    cursor: pointer;
    font-size: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
}

.search-box svg { width: 18px; height: 18px; color: var(--text-muted); }

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

/* ====================================
   PAGINATION
   ==================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
}

.pagination a:hover { 
    background: var(--bg-tertiary); 
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.pagination span.active { 
    background: var(--accent); 
    border-color: var(--accent); 
    color: white; 
    font-weight: 600;
}

/* ====================================
   EMPTY STATE
   ==================================== */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h4 { font-size: 16px; margin-bottom: 6px; color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); font-size: 13px; }

/* ====================================
   LOGIN PAGE
   ==================================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary), #15151a);
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-logo { 
    width: 70px; 
    height: 70px; 
    margin: 0 auto 16px; 
    border-radius: 16px;
}

.login-box h1 { 
    font-size: 22px; 
    margin-bottom: 6px;
    color: var(--accent);
}

.login-box p { 
    color: var(--text-muted); 
    margin-bottom: 28px;
    font-size: 13px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.discord-btn:hover { 
    background: #4752C4; 
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn svg { width: 20px; height: 20px; }

/* ====================================
   DASHBOARD
   ==================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.stat-info { flex: 1; }

/* ====================================
   RESPONSIVE
   ==================================== */
/* ====================================
   PROFILE TABS
   ==================================== */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.profile-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

/* ====================================
   PROFILE HEADER
   ==================================== */
.player-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.player-body {
    width: 100px;
}

.player-profile-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.player-profile-info p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ====================================
   INFO ROWS
   ==================================== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-value {
    font-weight: 500;
    font-size: 13px;
}

.info-value.small {
    font-size: 11px;
    font-family: monospace;
}

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

@media (max-width: 1024px) {
    .hide-tablet { display: none !important; }
    :root { --sidebar-width: 200px; }
}

/* Hide on desktop (show on mobile only) */
.hide-desktop { display: none !important; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .hide-desktop { display: inline !important; }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 10000;
        width: 48px;
        height: 48px;
        background: var(--accent);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        color: white;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px var(--accent-glow);
    }

    .mobile-menu-toggle svg { width: 26px; height: 26px; }

    .sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 260px;
        box-shadow: none !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 5px 0 40px rgba(0,0,0,0.6) !important;
    }

    .main-content {
        margin-left: 0;
        padding: 70px 16px 20px;
    }

    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header h2 { font-size: 18px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }
    .stat-label { font-size: 11px; }

    .card { border-radius: 10px; }
    .card-header, .card-body { padding: 14px; }

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

    /* Profile mobile */
    .profile-tabs { gap: 6px; }
    .tab-btn { padding: 8px 12px; font-size: 12px; flex: 1; min-width: calc(50% - 6px); justify-content: center; }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-stat-card { padding: 10px; }
    .profile-stat-icon { width: 32px; height: 32px; font-size: 14px; }
    .profile-stat-value { font-size: 16px; }
    .player-profile-header { flex-direction: column; text-align: center; padding: 16px; }
    .player-body { width: 80px; }
    .profile-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .leaderboard-rank { width: 26px; height: 26px; font-size: 11px; }
}

/* ====================================
   EMBED NACHRICHTEN EDITOR
   ==================================== */
.embed-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1200px) {
    .embed-container {
        grid-template-columns: 1fr;
    }
}

.embed-editor .form-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.embed-editor .form-section:last-of-type {
    border-bottom: none;
}

.embed-editor .form-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

@media (max-width: 600px) {
    .embed-editor .form-row {
        grid-template-columns: 1fr;
    }
}

.embed-editor .form-group {
    margin-bottom: 15px;
}

.embed-editor .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.embed-editor .form-group input[type="text"],
.embed-editor .form-group input[type="url"],
.embed-editor .form-group textarea,
.embed-editor .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.embed-editor .form-group input:focus,
.embed-editor .form-group textarea:focus,
.embed-editor .form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.embed-editor .form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.embed-editor .form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.85em;
}

.embed-editor .field-row,
.embed-editor .button-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.embed-editor .field-row input,
.embed-editor .button-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.embed-editor .field-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: var(--text-secondary);
}

.embed-editor .form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Discord Preview */
.embed-preview-card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.discord-preview {
    background: #313338;
    border-radius: 8px;
    padding: 16px;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-message {
    display: flex;
    gap: 16px;
}

.discord-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.discord-content {
    flex: 1;
    min-width: 0;
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.discord-username {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.discord-badge {
    background: #5865f2;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.discord-timestamp {
    color: #949ba4;
    font-size: 0.75rem;
}

.discord-embed {
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
    max-width: 520px;
    display: grid;
    grid-template-columns: auto 1fr auto;
}

.discord-embed .color-bar {
    width: 4px;
    background: #5865f2;
}

.discord-embed .embed-content {
    padding: 12px 16px;
    background: #2b2d31;
}

.discord-embed .embed-thumbnail {
    width: 80px;
    height: 80px;
    margin: 12px;
    border-radius: 4px;
    object-fit: cover;
}

.discord-embed .embed-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.discord-embed .embed-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.discord-embed .embed-author span {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.discord-embed .embed-title {
    color: #00aff4;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.discord-embed .embed-description {
    color: #dbdee1;
    font-size: 0.875rem;
    line-height: 1.375rem;
    white-space: pre-wrap;
}

.discord-embed .embed-description strong {
    font-weight: 700;
}

.discord-embed .embed-description em {
    font-style: italic;
}

.discord-embed .embed-description code {
    background: #1e1f22;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: 0.85em;
}

.discord-embed .embed-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.discord-embed .embed-field {
    min-width: 0;
}

.discord-embed .embed-field.full-width {
    grid-column: 1 / -1;
}

.discord-embed .embed-field-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.discord-embed .embed-field-value {
    color: #dbdee1;
    font-size: 0.875rem;
}

.discord-embed .embed-image {
    grid-column: 1 / -1;
    margin-top: 16px;
}

.discord-embed .embed-image img {
    max-width: 100%;
    border-radius: 4px;
}

.discord-embed .embed-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #949ba4;
    font-size: 0.75rem;
}

.discord-embed .embed-footer img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.discord-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.discord-buttons .discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 16px;
    height: 32px;
    background: #4e5058;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.discord-buttons .discord-btn:hover {
    background: #6d6f78;
}

.discord-buttons .discord-btn .btn-icon {
    font-size: 1rem;
}

.discord-buttons .discord-btn .external-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

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

.modal-content {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

/* Table Actions */
.data-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}

.mt-4 {
    margin-top: 24px;
}

/* Alert styles */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}

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

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--orange);
    color: var(--orange);
}

/* Empty state */
.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

