:root {
    --primary-color: #8a4fff;
    --primary-light: #b18aff;
    --primary-dark: #5f27cd;
    --secondary-color: #ff9ff3;
    --accent-color: #7effdb;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f9f3ff;
    --card-bg: #fff;
    --sidebar-bg: #fff;
    --border-color: #f0e6ff;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --online-color: #2ecc71;
    --offline-color: #95a5a6;
    --idle-color: #f39c12;
    --dnd-color: #e74c3c;
    --focus-ring: 0 0 0 3px rgba(138, 79, 255, 0.3);
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --primary-color: #9c6aff;
    --primary-light: #7c4dff;
    --primary-dark: #6a1b9a;
    --secondary-color: #ff79b0;
    --accent-color: #7effdb;
    --text-color: #f5f5f5;
    --text-light: #d5d5d5;
    --text-lighter: #b5b5b5;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --sidebar-bg: #0f3460;
    --border-color: #2d3748;
    --focus-ring: 0 0 0 3px rgba(156, 106, 255, 0.5);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.6;
}

/* Acessibilidade - Foco */
[tabindex="0"]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    transition: box-shadow 0.2s ease;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.loading-spinner {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner img {
    width: 100px;
    height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.loading-spinner p {
    font-size: 1.2rem;
    max-width: 200px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.navbar-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    position: relative;
}

.navbar-links li a:hover {
    background-color: rgba(138, 79, 255, 0.1);
    color: var(--primary-color);
}

.navbar-links li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background-color: rgba(138, 79, 255, 0.1);
    color: var(--primary-color);
    border: none;
}

.theme-toggle:hover {
    background-color: rgba(138, 79, 255, 0.2);
    transform: rotate(15deg);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.dropdown-toggle:hover {
    background-color: rgba(138, 79, 255, 0.1);
}

#nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: none;
    margin-top: 0.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.user-dropdown.active .dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: rgba(138, 79, 255, 0.1);
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.hamburger:hover {
    background-color: rgba(138, 79, 255, 0.1);
}

.hamburger.active {
    transform: rotate(90deg);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.dashboard-sidebar {
    width: 300px;
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    position: fixed;
    height: calc(100vh - 70px);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transform: translateX(0);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.avatar-container {
    position: relative;
    width: fit-content;
    margin: 0 auto 1rem;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 3px solid var(--secondary-color);
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid var(--sidebar-bg);
    transition: all var(--transition-speed) ease;
}

.username-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.user-info h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.user-badges-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.discord-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.badge-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.badge-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.discord-badge:hover .badge-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

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

.user-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.status-dot.online {
    background-color: var(--online-color);
    box-shadow: 0 0 5px var(--online-color);
}

.status-dot.offline {
    background-color: var(--offline-color);
}

.status-dot.idle {
    background-color: var(--idle-color);
    box-shadow: 0 0 5px var(--idle-color);
}

.status-dot.dnd {
    background-color: var(--dnd-color);
    box-shadow: 0 0 5px var(--dnd-color);
}

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

.user-plan {
    margin-top: 0.5rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

}

.plan-badge.free {
    background-color: rgba(224, 224, 224, 0.3);
    color: var(--text-color);
}

.plan-badge.premium {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

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

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: color var(--transition-speed) ease;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    overflow-y: auto;
    max-height: 40vh;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

.menu-divider {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.5rem;
    padding-left: 1rem;
}

.sidebar-menu li {
    margin-bottom: 0.3rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
}

.sidebar-menu a:hover {
    background-color: rgba(138, 79, 255, 0.1);
    color: var(--primary-color);
}

.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(138, 79, 255, 0.2);
}

.sidebar-menu a.active i {
    color: white;
}

.sidebar-menu a.active:hover {
    background-color: var(--primary-dark);
}

.sidebar-menu i {
    width: 24px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
}

.menu-badge {
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
    animation: pulse 1.5s infinite;
}

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

.dashboard-content {
    flex: 1;
    padding: 2rem;
    margin-left: 300px;
    transition: all var(--transition-speed) ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.sidebar-toggle:hover {
    background-color: rgba(138, 79, 255, 0.1);
}

.sidebar-toggle.active {
    transform: rotate(180deg);
}

.content-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
    margin: 0;
}

.content-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.breadcrumb i {
    font-size: 0.7rem;
}

.breadcrumb .active {
    color: var(--primary-color);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.notification-bell:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(138, 79, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.dashboard-card:hover .card-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.dashboard-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-speed) ease;
}

.dashboard-card:hover .stat-number {
    color: var(--primary-dark);
}

.dashboard-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-progress {
    height: 6px;
    background-color: rgba(138, 79, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 1s ease;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.trend.up {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.trend.down {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.uptime-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.dashboard-section {
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.dashboard-section:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-filter {
    display: flex;
    gap: 0.5rem;
}

.time-filter button {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.time-filter button:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.time-filter button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-all a {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition-speed) ease;
}

.view-all a:hover {
    color: var(--primary-dark);
}

.view-all i {
    font-size: 0.7rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.server-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 79, 255, 0.1), transparent);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.server-card:hover::after {
    opacity: 1;
}

.server-card.placeholder {
    grid-column: 1 / -1;
    background-color: rgba(138, 79, 255, 0.05);
    border: 2px dashed var(--primary-light);
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(138, 79, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.server-card:hover .server-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.server-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.server-card:hover h3 {
    color: var(--primary-dark);
}

.server-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.server-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: rgba(138, 79, 255, 0.05);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.server-stats p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.server-stats i {
    color: var(--primary-color);
    width: 16px;
}

.server-stats strong {
    color: var(--primary-color);
    font-weight: 600;
}


.module-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.toggle-item:hover {
    background-color: rgba(138, 79, 255, 0.05);
    border-color: var(--primary-light);
}

.toggle-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.toggle-item span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
    color: var(--text-color);
}

.toggle-item span strong {
    font-weight: 600;
    color: var(--text-color);
}

.toggle-item span small {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.server-stats-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(138, 79, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.server-stats-preview h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

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

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label i {
    color: var(--primary-color);
    width: 16px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.server-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
    max-width: 80px;
    max-height: 80px;
    min-width: 80px;
    min-height: 80px;
}

.server-card:hover .server-icon img {
    transform: scale(1.05);
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chart-container {
    height: 300px;
    width: 100%;
    position: relative;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.notification-item.unread {
    background-color: rgba(138, 79, 255, 0.05);
    border-left: 4px solid var(--primary-color);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(138, 79, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
}

.notification-item:hover .notification-icon {
    background-color: var(--primary-color);
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.notification-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.notification-time {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--online-color);
    box-shadow: 0 0 5px var(--online-color);
}

.version-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.compact-btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.compact-btn:hover {
    background-color: rgba(138, 79, 255, 0.1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
    visibility: hidden;
}

.modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
    visibility: visible !important;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    transition: all var(--transition-speed) ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--card-bg);
    z-index: 1;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.close-modal:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label i {
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 79, 255, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: var(--focus-ring);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    font-size: 0.9rem;
}

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

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 79, 255, 0.2);
}

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

.secondary-btn:hover {
    background-color: rgba(138, 79, 255, 0.1);
    transform: translateY(-2px);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.footer {
    background-color: var(--card-bg);
    padding: 3rem 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.footer-brand span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-icons a.discord {
    background-color: #5865F2;
}

.social-icons a.twitter {
    background-color: #1DA1F2;
}

.social-icons a.github {
    background-color: #333;
}

.social-icons a.youtube {
    background-color: #FF0000;
}

.footer-bottom {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.footer-lang select {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.footer-lang select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    max-width: calc(100% - 40px);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Sidebar - Mobile */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.75rem 1rem;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-speed) ease;
        pointer-events: none;
        border-bottom: 1px solid var(--border-color);
        gap: 0.5rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .navbar-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-links li a {
        padding: 0.75rem 1rem;
    }
    
    .navbar-links li a.active::after {
        display: none;
    }
    
    .navbar-actions {
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .theme-toggle {
        width: 100%;
        border-radius: 8px;
        height: auto;
        padding: 0.75rem;
    }
    
    .user-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        transform: none;
    }
    
    .hamburger {
        display: flex;
    }

    .dashboard-sidebar {
        width: 280px;
        transform: translateX(-100%);
        height: 100vh;
        top: 0;
        z-index: 1001;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5);
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .close-sidebar {
        display: block;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .servers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .status-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content {
        max-width: 90%;
    }
}

#sidebarToggle {
    transition: transform 0.3s ease;
}

#sidebarToggle.active {
    transform: rotate(90deg);
}

@media (max-width: 576px) {
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .section-actions .search-box {
        order: -1;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .notification {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Animações Adicionais */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Acessibilidade para modo de alto contraste */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000;
        --text-light: #333;
        --border-color: #000;
    }
    
    [data-theme="dark"] {
        --text-color: #fff;
        --text-light: #ccc;
        --border-color: #fff;
    }
    
    .btn, .dashboard-card, .server-card, .notification-item {
        border: 2px solid var(--text-color);
    }

/* Garantir que o conteúdo principal não fique atrás da navbar */
.dashboard-container {
    padding-top: 70px; /* Altura da navbar */
}

/* Ajustar z-index da sidebar */
.dashboard-sidebar {
    z-index: 1000;
}

/* Ajustar overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

/* Ajustar hamburger para mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

}

/* Auto-generated by assistant: desktop sidebar hide behavior */

/* Sidebar - Desktop: permita fechar empurrando o conteúdo */
@media (min-width: 769px) {
    .dashboard-sidebar {
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
    .dashboard-sidebar:not(.active) {
        transform: translateX(-320px);
        /* mantém sombra e espaço de forma mais natural */
    }
}

.dashboard-content.sidebar-closed {
    margin-left: 0;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.dashboard-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* Override for server config page */
.dashboard-container:has(.server-config-page) {
    flex-direction: column;
    padding: 2rem;
}

.dashboard-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: -280px; /* Inicia fechado */
    transition: left 0.3s ease;
}

.dashboard-sidebar.active {
    left: 0;
}

.dashboard-content {
    width: 100%;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.dashboard-content.sidebar-active {
    margin-left: 280px;
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        left: -280px;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-content {
        width: 100%;
        margin-left: 0;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-body {
    padding: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
/* Server config page styles */
.server-config-page {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.config-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.back-btn:hover {
    color: var(--primary-dark);
}

.config-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.server-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.server-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-info {
    flex: 1;
}

.config-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.config-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.user-info-small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info-small span:first-child {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.user-discriminator {
    font-size: 0.85rem;
    color: var(--text-light);
}

.config-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.config-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-section .form-group {
    margin-bottom: 1.5rem;
}

.config-section .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.config-section .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color var(--transition-speed);
}

.config-section .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.config-section .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

.config-section .form-group code {
    background: var(--bg-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-switch > span:first-of-type {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 26px;
    transition: background var(--transition-speed);
    flex-shrink: 0;
}

.toggle-switch > span:first-of-type:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-speed);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input[type="checkbox"]:checked + span:first-of-type {
    background: var(--primary-color);
}

.toggle-switch input[type="checkbox"]:checked + span:first-of-type:before {
    transform: translateX(24px);
}

.toggle-switch > span:last-of-type {
    flex: 1;
    color: var(--text-color);
    font-weight: 500;
}

.config-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.server-stats.bot-not-present {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(243, 156, 18, 0.1));
    border: 2px solid rgba(231, 76, 60, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.server-stats.bot-not-present p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.server-stats.bot-not-present p:first-child {
    font-weight: 600;
    color: var(--danger-color);
}

/* Refresh button for channels */
.btn-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

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

.config-section .form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.config-section .form-group label > .btn-icon {
    margin-left: auto;
}

/* Discord Message Preview */
.discord-message-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .discord-message-preview {
    background: #2f3136;
}

.discord-message {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.discord-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.discord-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.discord-author-name {
    font-weight: 600;
    color: #fff;
}

[data-theme="light"] .discord-author-name {
    color: #5865f2;
}

.discord-bot-tag {
    background: #5865f2;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 0.25rem;
}

.discord-timestamp {
    color: #72767d;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.discord-message-text {
    color: #dcddde;
    font-size: 0.95rem;
    line-height: 1.375;
    word-wrap: break-word;
}

[data-theme="light"] .discord-message-text {
    color: #2c2f33;
}

.discord-message-text .discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0 0.2rem;
    border-radius: 3px;
    font-weight: 500;
}

[data-theme="light"] .discord-message-text .discord-mention {
    background: rgba(88, 101, 242, 0.15);
}

/* Discord Embed Styles */
.discord-embed {
    margin-top: 0.5rem;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    background: #2f3136;
    border-left: 4px solid #5865f2;
}

/* Embed dentro do preview */
.message-preview-section .discord-embed {
    background: #2f3136;
    margin-top: 0.5rem;
}

/* Preview dentro do modal */
.modal-preview-container {
    background: #36393f !important;
}

.modal-preview-container .discord-message {
    color: #dcddde !important;
}

.modal-preview-container .discord-message-content {
    color: #dcddde !important;
}

.modal-preview-container .discord-message-content > div {
    color: #dcddde !important;
}

.modal-preview-container .discord-message-username {
    color: #5865f2 !important;
}

.modal-preview-container .discord-message-timestamp {
    color: #72767d !important;
}

.modal-preview-container .discord-embed {
    background: #2f3136 !important;
    border-left: 4px solid #5865f2;
}

.modal-preview-container .discord-embed-title {
    color: #fff !important;
}

.modal-preview-container .discord-embed-description {
    color: #dcddde !important;
}

.modal-preview-container .discord-embed-author {
    color: #fff !important;
}

[data-theme="light"] .discord-embed {
    background: #f2f3f5;
}

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

.discord-embed-content {
    flex: 1;
    padding: 0.75rem 1rem 1rem 0.75rem;
    min-width: 0;
}

.discord-embed-header {
    margin-bottom: 0.5rem;
}

.discord-embed-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #fff;
}

[data-theme="light"] .discord-embed-author {
    color: #060607;
}

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

.discord-embed-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .discord-embed-title {
    color: #060607;
}

.discord-embed-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #dcddde;
    word-wrap: break-word;
}

[data-theme="light"] .discord-embed-description {
    color: #2c2f33;
}

.discord-embed-description .discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0 0.2rem;
    border-radius: 3px;
    font-weight: 500;
}

[data-theme="light"] .discord-embed-description .discord-mention {
    background: rgba(88, 101, 242, 0.15);
}

.discord-embed-thumbnail {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.discord-embed-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-embed-image {
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
}

.discord-embed-image img {
    width: 100%;
    height: auto;
    display: block;
}

.discord-embed-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(79, 84, 92, 0.48);
    font-size: 0.75rem;
    color: #72767d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="light"] .discord-embed-footer {
    border-top-color: rgba(79, 84, 92, 0.2);
    color: #747f8d;
}

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

.discord-embed-fields {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discord-embed-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.discord-embed-field-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

[data-theme="light"] .discord-embed-field-name {
    color: #060607;
}

.discord-embed-field-value {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #dcddde;
    word-wrap: break-word;
    white-space: pre-wrap;
}

[data-theme="light"] .discord-embed-field-value {
    color: #2c2f33;
}

.discord-embed-field-value .discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0 0.2rem;
    border-radius: 3px;
    font-weight: 500;
}

[data-theme="light"] .discord-embed-field-value .discord-mention {
    background: rgba(88, 101, 242, 0.15);
}

/* Inline fields (side by side) */
.discord-embed-field.inline {
    flex: 1;
    min-width: 0;
}

.discord-embed-fields.inline {
    flex-direction: row;
    gap: 1rem;
}

.notification-mode {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Message Preview Container */
.message-preview-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.preview-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.preview-header .btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

/* New Preview Structure (Loritta-style) - Discord Window */
.message-preview-section {
    width: 100%;
    margin-top: 1rem;
    background: #36393f !important;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-height: 80px;
    display: block !important;
}

/* Discord window background */
.message-preview-container {
    background: var(--card-bg);
}

.message-preview-container .message-preview-section {
    background: #36393f;
}

.message-preview-wrapper {
    width: 100%;
}

.message-preview {
    width: 100%;
}

.discord-style {
    width: 100%;
    background: transparent;
    border-radius: 4px;
    padding: 0.5rem;
    position: relative;
    z-index: 1;
}

.discord-message {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.375rem;
    word-wrap: break-word;
    background: transparent;
    color: #dcddde;
}

/* Force colors in preview section */
.message-preview-section .discord-message {
    color: #dcddde !important;
}

.message-preview-section .discord-message-content {
    color: #dcddde !important;
}

.message-preview-section .discord-message-content > div {
    color: #dcddde !important;
}

.discord-message-sidebar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

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

.discord-message-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.discord-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.375rem;
}

.discord-message-username {
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.discord-message-username:hover {
    text-decoration: underline;
}

/* Ensure text is visible in Discord preview */
.message-preview-section .discord-message-content {
    color: #dcddde;
}

.message-preview-section .discord-message-content > div {
    color: #dcddde;
}

.discord-message-bot-tag {
    background: #5865f2;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-left: 0.25rem;
}

.discord-message-timestamp {
    color: #72767d;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    cursor: default;
}

.discord-message-accessories {
    margin-top: 0.25rem;
}

.discord-mention {
    background: rgba(88, 101, 242, 0.3);
    color: #5865f2;
    padding: 0 0.2rem;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
}

.discord-mention:hover {
    background: rgba(88, 101, 242, 0.4);
}

[data-theme="light"] .discord-message-username {
    color: #060607;
}

[data-theme="light"] .discord-message-timestamp {
    color: #747f8d;
}

[data-theme="light"] .discord-mention {
    background: rgba(88, 101, 242, 0.15);
}

/* Placeholders Tutorial */
.placeholders-tutorial {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.placeholder-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    align-items: center;
}

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

.placeholder-name code {
    background: rgba(138, 79, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.placeholder-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Color Presets */
.color-preset {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(138, 79, 255, 0.3);
}

.color-preset.active {
    box-shadow: 0 0 0 3px var(--primary-color);
    transform: scale(1.1);
}

/* Embed Fields */
.embed-field-item {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.embed-field-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.embed-field-item-header h6 {
    margin: 0;
    color: var(--text-color);
}

.remove-field-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-field-btn:hover {
    background: #c0392b;
}

/* Modal Footer */
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: 0 0 12px 12px;
}

/* Responsive Modal */
@media (max-width: 968px) {
    .modal-content[style*="max-width: 900px"] {
        max-width: 95% !important;
    }
    
    .modal-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
