* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --discord-blurple: #5865F2;
    --discord-blurple-dark: #4752C4;
    --discord-green: #57F287;
    --discord-red: #ED4245;
    --discord-yellow: #FEE75C;
    --cyber-blue: #00D9FF;
    --cyber-green: #00FF88;
    --cyber-purple: #B026FF;
    --cyber-pink: #FF00FF;
    --background: #0a0e1a;
    --surface: #0f1419;
    --surface-hover: #151b24;
    --surface-light: #1a2029;
    --text: #E4E7EB;
    --text-muted: #9CA3AF;
    --border: #1f2937;
    --border-hover: #374151;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.7);
    --shadow-neon-blue: rgba(0, 217, 255, 0.3);
    --shadow-neon-green: rgba(0, 255, 136, 0.3);
    --shadow-neon-purple: rgba(176, 38, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    --gradient-success: linear-gradient(135deg, #57F287 0%, #3BA55D 100%);
    --gradient-cyber: linear-gradient(135deg, #00D9FF 0%, #B026FF 100%);
    --gradient-cyber-green: linear-gradient(135deg, #00FF88 0%, #00D9FF 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(176, 38, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 217, 255, 0.03) 2px,
            rgba(0, 217, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.hidden {
    display: none !important;
}

/* Login Page - Style Premium */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle, rgba(176, 38, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 217, 255, 0.03) 100px,
            rgba(0, 217, 255, 0.03) 101px
        );
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-card {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 20px 60px var(--shadow-lg),
        0 0 40px var(--shadow-neon-blue),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 
        0 20px 60px var(--shadow-lg),
        0 0 60px var(--shadow-neon-blue),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
    border-color: var(--cyber-blue);
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(88, 101, 242, 0.3));
}

.login-card h1 {
    font-size: 36px;
    margin-bottom: 12px;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.login-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid var(--discord-red);
    border-radius: 8px;
    color: var(--discord-red);
    display: none;
    font-size: 14px;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons - Style Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-cyber);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 217, 255, 0.3),
        inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 217, 255, 0.5),
        0 0 20px rgba(0, 217, 255, 0.4),
        inset 0 0 15px rgba(0, 217, 255, 0.2);
    border-color: var(--cyber-blue);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-success {
    background: var(--gradient-success);
}

.btn-danger {
    background: linear-gradient(135deg, #ED4245 0%, #C03537 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Navbar - Style Premium */
.navbar {
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 1px solid var(--border);
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 217, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-brand h2 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--cyber-blue);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.avatar:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    transform: scale(1.1);
}

/* Container */
.container {
    display: flex;
    min-height: calc(100vh - 73px);
}

/* Sidebar - Style Premium */
.sidebar {
    width: 260px;
    background: rgba(15, 20, 25, 0.95);
    border-right: 1px solid var(--border);
    border-right: 2px solid rgba(0, 217, 255, 0.2);
    padding: 24px 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-cyber);
    transition: height 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.menu-item span {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyber-blue);
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.menu-item:hover::before {
    height: 60%;
}

.menu-item.active {
    background: var(--gradient-cyber);
    color: white;
    box-shadow: 
        0 4px 15px rgba(0, 217, 255, 0.4),
        0 0 10px rgba(0, 217, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--gradient-cyber);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: transparent;
    position: relative;
    z-index: 1;
}

.content-page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.3));
}

.content-page > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

/* Stats Grid - Style Premium */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-cyber);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.stat-card:hover {
    border-color: var(--cyber-blue);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(0, 217, 255, 0.3),
        0 0 20px rgba(0, 217, 255, 0.2);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-icon {
    font-size: 40px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Guild Cards - Style Premium */
.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guild-card {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.guild-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-cyber);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guild-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.guild-card:hover {
    border-color: var(--cyber-blue);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 217, 255, 0.4),
        0 0 30px rgba(0, 217, 255, 0.2),
        inset 0 0 20px rgba(0, 217, 255, 0.05);
}

.guild-card:hover::before {
    opacity: 0.1;
}

.guild-card:hover::after {
    left: 100%;
}

.guild-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.guild-card:hover .guild-card-icon {
    border-color: var(--cyber-blue);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.guild-card-icon.default {
    background: var(--gradient-cyber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.guild-card-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.guild-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.guild-card:hover .guild-card-name {
    color: var(--cyber-blue);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.guild-card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guild-card-members,
.guild-card-date {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.guild-card-date {
    color: var(--cyber-blue);
    opacity: 0.8;
}

.guild-card-arrow {
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.3));
}

.guild-card:hover .guild-card-arrow {
    color: var(--cyber-blue);
    transform: translateX(8px);
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.8));
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.guild-manage-btn {
    position: relative;
    z-index: 2;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    background: var(--gradient-cyber);
    border: 1px solid var(--cyber-blue);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.guild-manage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
    background: var(--gradient-cyber-green);
}

/* Onglets de configuration */
.config-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.config-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.config-tab:hover {
    color: var(--cyber-blue);
}

.config-tab.active {
    color: var(--cyber-blue);
    border-bottom-color: var(--cyber-blue);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.config-tab-content {
    display: none;
}

.config-tab-content.active {
    display: block;
}

/* Config Sections - Style Premium */
.guild-selector {
    margin-bottom: 32px;
}

.guild-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.select-input, .form-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.select-input:focus, .form-input:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 
        0 0 0 3px rgba(0, 217, 255, 0.2),
        0 0 10px rgba(0, 217, 255, 0.3);
}

.config-section {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.config-section:hover {
    border-color: var(--cyber-blue);
    box-shadow: 
        0 4px 20px rgba(0, 217, 255, 0.2),
        0 0 15px rgba(0, 217, 255, 0.1);
}

.config-section:hover::before {
    transform: scaleX(1);
}

.config-section h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--cyber-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--discord-blurple);
    cursor: pointer;
}

/* Messages */
.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.message.show {
    display: block;
}

.message.success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.message.error {
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid var(--discord-red);
    color: var(--discord-red);
    box-shadow: 0 0 15px rgba(237, 66, 69, 0.2);
}

/* Channel & Role Cards */
.channel-card, .role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.channel-card:hover, .role-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--cyber-blue);
    transform: translateX(4px);
    box-shadow: 
        0 4px 15px rgba(0, 217, 255, 0.3),
        0 0 10px rgba(0, 217, 255, 0.2);
}

.channel-header, .role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.channel-name, .role-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.channel-type, .role-color {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--surface-light);
    color: var(--text-muted);
    font-weight: 500;
}

.channel-info, .role-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.channel-info-item, .role-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-info-item strong, .role-info-item strong {
    color: var(--text);
    min-width: 100px;
    font-weight: 600;
}

.category-header {
    background: rgba(0, 217, 255, 0.05);
    border-left: 4px solid var(--cyber-blue);
    padding: 16px 20px;
    margin: 24px 0 16px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
}

.role-color-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.role-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.role-permission-badge {
    background: var(--gradient-cyber);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.channels-stats, .roles-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        height: auto;
        position: relative;
        top: 0;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
    }

    .menu-item {
        white-space: nowrap;
        min-width: fit-content;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .guilds-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px;
    }
}

/* Scrollbar - Style Cybersécurité */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 20, 25, 0.5);
    border-left: 1px solid rgba(0, 217, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyber-blue) 0%, var(--cyber-purple) 100%);
    border-radius: 5px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border: 2px solid var(--cyber-blue);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 217, 255, 0.3),
        inset 0 0 30px rgba(0, 217, 255, 0.05);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    color: var(--cyber-blue);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-close:hover {
    color: var(--cyber-blue);
    background: rgba(0, 217, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 4px;
}

/* Ticket Cards */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ticket-card {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    border-color: var(--cyber-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

.ticket-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.ticket-card-emoji {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.ticket-card-info {
    flex: 1;
    min-width: 0;
}

.ticket-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}

.ticket-card-description {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ticket-status.enabled {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
}

.ticket-status.disabled {
    background: rgba(237, 66, 69, 0.2);
    color: var(--discord-red);
    border: 1px solid var(--discord-red);
}

.ticket-card-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--cyber-green) 0%, var(--cyber-blue) 100%);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Effet scanline cybersécurité */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.5), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

/* Toast Notifications - Style Professionnel */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 480px;
    box-shadow: 0 8px 32px var(--shadow-lg), 0 0 20px rgba(0, 217, 255, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-color: var(--discord-green);
    box-shadow: 0 8px 32px var(--shadow-lg), 0 0 20px rgba(87, 242, 135, 0.3);
}

.toast-error {
    border-color: var(--discord-red);
    box-shadow: 0 8px 32px var(--shadow-lg), 0 0 20px rgba(237, 66, 69, 0.3);
}

.toast-warning {
    border-color: var(--discord-yellow);
    box-shadow: 0 8px 32px var(--shadow-lg), 0 0 20px rgba(254, 231, 92, 0.3);
}

.toast-info {
    border-color: var(--cyber-blue);
    box-shadow: 0 8px 32px var(--shadow-lg), 0 0 20px var(--shadow-neon-blue);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Amélioration des boutons de sauvegarde */
.btn-primary:disabled,
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-saving {
    position: relative;
    color: transparent !important;
}

.btn-saving::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--text);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Validation des champs */
.input-error {
    border-color: var(--discord-red) !important;
    box-shadow: 0 0 10px rgba(237, 66, 69, 0.3) !important;
}

.input-error:focus {
    outline-color: var(--discord-red) !important;
}

/* Amélioration des transitions */
.config-section,
.config-item,
.form-group {
    transition: all 0.2s ease;
}

.config-section:hover {
    background: var(--surface-hover);
}

/* Indicateur de modification non sauvegardée */
.unsaved-changes {
    position: relative;
}

.unsaved-changes::before {
    content: '●';
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--discord-yellow);
    font-size: 12px;
    animation: pulse 2s infinite;
}

