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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #09090a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}

body.has-unsaved-changes {
    padding-bottom: 80px;
}

/* Header */
header {
    background: #09090a;
    border-bottom: 1px solid #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    width: 64px;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.user-section {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-dots {
    font-size: 24px;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover {
    color: #ffffff;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #2a2a2a;
    border-color: #ffffff;
}

.user-profile {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.user-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #09090a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    min-width: 200px;
    padding: 15px 0;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
    transform-origin: top right;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: menuSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.user-menu-welcome {
    padding: 0 15px 15px 15px;
}

.user-menu-welcome p:first-child {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 5px;
}

.user-menu-username {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.user-menu-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 5px 0;
}

.user-menu-item {
    padding: 10px 15px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #00d4ff;
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.user-menu-item:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.5);
    padding-left: 20px;
}

.user-menu-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.user-menu-item:last-child {
    color: #ef4444;
}

.user-menu-item:last-child::before {
    display: none;
}

.user-menu-item:last-child:hover {
    color: #ef4444;
    text-shadow: none;
    padding-left: 15px;
    background: none;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 60px;
    padding: 50px 30px 40px 30px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    box-sizing: border-box;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Servers Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 0 20px;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

.server-card {
    background: #09090a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.5s ease-out forwards;
}

.server-card.no-animation {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.server-card:nth-child(1) { animation-delay: 0.05s; }
.server-card:nth-child(2) { animation-delay: 0.1s; }
.server-card:nth-child(3) { animation-delay: 0.15s; }
.server-card:nth-child(4) { animation-delay: 0.2s; }
.server-card:nth-child(5) { animation-delay: 0.25s; }
.server-card:nth-child(6) { animation-delay: 0.3s; }
.server-card:nth-child(7) { animation-delay: 0.35s; }
.server-card:nth-child(8) { animation-delay: 0.4s; }
.server-card:nth-child(9) { animation-delay: 0.45s; }
.server-card:nth-child(n+10) { animation-delay: 0.5s; }

.server-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.server-card.selected {
    border: 1px solid #ffffff;
    background: #09090a;
    outline: none;
}

.server-card.selected .server-status.premium {
    color: #ffffff;
}

.server-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
}

.server-status {
    font-size: 14px;
    font-weight: 500;
    color: #AEAEB2;
    text-align: left;
}

.server-status.premium {
    color: #ffffff;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #09090a;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-icon svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.server-card:hover .arrow-icon svg {
    color: #ffffff;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px);
    margin-top: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: #09090a;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: #09090a;
    border-right: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 50;
}

.sidebar-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.sidebar-logo-link {
    text-decoration: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: default;
}

.sidebar-guild-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-info span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

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

.nav-section {
    margin-top: 20px;
}

.nav-section-title {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 0 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    position: relative;
    border-radius: 4px;
    text-decoration: none;
}

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.nav-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item:hover .nav-icon {
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active::after {
    display: none;
}

.nav-item.active .nav-icon {
    color: #ffffff;
}

.sidebar-back-btn {
    margin: 16px 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.dashboard-view {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.features-view {
    max-width: 1280px;
    margin: 0 auto;
}

.config-view {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Stats Grid Modern */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.stat-card-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-content {
    width: 100%;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* Info Card Modern */
.info-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.info-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
}

.info-value.status-online {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.info-value.status-offline {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value.status-offline::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Guild Info Modern */
.guilds-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
}

.guild-info-modern {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guild-info-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.guild-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
}

.guild-info-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.guild-info-id {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

.guild-info-stats {
    font-size: 13px;
    color: #9ca3af;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1536px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Feature Card */
.feature-card {
    background: #09090a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: all 0.15s ease;
    opacity: 1;
    transform: none;
    animation: slideUpFadeIn 0.5s ease-out forwards;
}

.feature-card:hover {
    border-color: #2a2a2a;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 12px;
    gap: 12px;
}

.feature-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.feature-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.feature-icon-emoji {
    font-size: 16px;
}

.feature-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-badge {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: none;
}

.feature-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #E2E8F0;
    line-height: 1.2;
}

.feature-description {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.5;
    font-weight: 400;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #09090a;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #0090FF;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(0, 144, 255, 0.6), 0 0 20px rgba(0, 144, 255, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    color: #9ca3af;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
}

.section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
}

.info-box {
    background: #09090a;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
}

.info-box p {
    margin: 10px 0;
    color: #ffffff;
}

.guilds-list, .protegidos-list {
    display: grid;
    gap: 10px;
}

.guild-item, .protegido-item {
    background: #09090a;
    border: 1px solid #2a2a2a;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Protegidos Control Modern */
.protegidos-control-modern {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-modern {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.input-modern:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.input-modern::placeholder {
    color: #6b7280;
}

.button-group {
    display: flex;
    gap: 12px;
}

.btn-modern {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: text-shadow 0.2s ease;
    box-shadow: none !important;
    position: static !important;
    overflow: visible !important;
    transform: none !important;
}

.btn-modern::before {
    display: none !important;
}

.btn-add-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #10b981;
}

.btn-add-modern:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
    box-shadow: none !important;
    transform: none !important;
}

.btn-remove-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ef4444;
}

.btn-remove-modern:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
    box-shadow: none !important;
    transform: none !important;
}

/* Protegidos List Modern */
.protegidos-list-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.protegidos-list-modern::-webkit-scrollbar {
    width: 8px;
}

.protegidos-list-modern::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.protegidos-list-modern::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.protegidos-list-modern::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.protegido-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.protegido-item-modern:last-child {
    border-bottom: none;
}

.protegido-item-modern:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 4px;
}

.protegido-info {
    flex: 1;
    min-width: 0;
}

.protegido-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.protegido-guild {
    font-size: 12px;
    color: #9ca3af;
}

.protegido-id {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: 16px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

button:active {
    transform: translateY(-1px);
    transition: all 0.1s;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2a2a2a;
}

.btn-primary:hover {
    background: #2a2a2a;
}

.btn-secondary {
    background: #374151;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-add {
    background: #10b981;
    color: white;
}

.btn-add:hover {
    background: #059669;
}

.btn-remove {
    background: #ef4444;
    color: white;
}

.btn-remove:hover {
    background: #dc2626;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions button {
    min-width: 150px;
}

/* Footer */
footer {
    background: #09090a;
    border-top: 1px solid #1a1a1a;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column:first-child {
    flex: 0 0 auto;
}

.footer-column:nth-child(2),
.footer-column:nth-child(3) {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin: 0;
}

.footer-column ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.tagline {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.copyright {
    color: #ffffff;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

/* Messages */
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: none;
    min-width: 300px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.message.error {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Dashboard animations */
.dashboard {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card, .section {
    animation: slideUpFadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }

/* Page title animation */
.page-title {
    animation: slideUpFadeIn 0.6s ease-out;
}

/* Logo animation */
.logo {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover .logo-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Arrow icon animation */
.arrow-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card:hover .arrow-icon {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.1);
}

/* Configurações View Styles */
.config-header {
    margin-bottom: 40px;
}

.config-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.config-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
}

.config-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.config-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.config-item {
    margin-bottom: 24px;
}

.config-item:last-child {
    margin-bottom: 0;
}

.config-item-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 0;
}

.config-item-label.config-item-active {
    padding-left: 12px;
    border-left: 3px solid #0090FF;
}

.config-item-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.config-input:focus {
    outline: none;
    border-color: #0090FF;
    background: rgba(255, 255, 255, 0.08);
}

.config-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Channels Restriction */
.channels-restriction {
    margin-top: 16px;
}

.channels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.channels-count {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.channels-clear-btn {
    background: none;
    border: none;
    color: #0090FF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.channels-clear-btn:hover {
    color: #c2185b;
}

.channels-clear-btn::before {
    display: none;
}

.selected-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 32px;
}

.channel-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #ffffff;
}

.channel-tag-name {
    font-weight: 500;
}

.channel-tag-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    font-size: 16px;
    line-height: 1;
}

.channel-tag-remove:hover {
    color: #ffffff;
}

.channel-tag-remove::before {
    display: none;
}

.channels-dropdown-wrapper {
    position: relative;
}

.channels-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.channels-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Unsaved Changes Bar */
.unsaved-changes-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #09090a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 30px;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.unsaved-changes-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.unsaved-changes-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

.unsaved-changes-actions {
    display: flex;
    gap: 12px;
}

.btn-save {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-save:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

.btn-save:active {
    transform: translateY(0);
}

.btn-save::before {
    display: none;
}

.btn-clear {
    background: #09090a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-clear:active {
    transform: translateY(0);
}

.btn-clear::before {
    display: none;
}
