/* CSS Variables */
:root {
    --bg-primary: #0a1726;
    --bg-secondary: #919191;
    --bg-tertiary: #2a3f5f;
    --accent-glow: #5ce1e6;
    --accent-hover: #4dd1d6;
    --accent-danger: #cc0000;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: #3a4f6f;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.4);
    --card-bg: rgba(255, 255, 255, 0.08);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a2838 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.login-header .logo i {
    color: var(--accent-glow);
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.1);
}

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

.login-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-glow);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 225, 230, 0.3);
}

/* Discord OAuth Login Button */
.discord-login-section {
    text-align: center;
    margin-bottom: 30px;
}

.discord-login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #6366F1, #5865F2);
}

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

.discord-login-btn i {
    font-size: 24px;
}

.login-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.login-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-info p:last-child {
    margin-bottom: 0;
}

.login-info i {
    color: var(--accent-glow);
    width: 16px;
    text-align: center;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
}

.login-footer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: var(--transition);
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Main App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo i {
    color: var(--accent-glow);
    font-size: 28px;
}

.navigation {
    flex: 1;
    margin-bottom: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(92, 225, 230, 0.2);
    box-shadow: 0 0 20px rgba(92, 225, 230, 0.3);
    border-left: 3px solid var(--accent-glow);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.user-profile {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
}

.username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: var(--accent-danger);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

/* Discord-style Sidebar */
.sidebar.discord-style {
    width: 100%;
    max-width: 85px;
    padding: 8px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.discord-style .user-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    width: 100%;
}

.sidebar.discord-style .user-avatar-container .user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar.discord-style .user-avatar-container .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(92, 225, 230, 0.3);
}

.sidebar.discord-style .profile-hidden {
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar.discord-style .profile-hidden:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 4px 12px rgba(92, 225, 230, 0.3);
    transform: scale(1.05);
}

.sidebar.discord-style .profile-hidden::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.8;
    transition: var(--transition);
}

.sidebar.discord-style .profile-hidden:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.sidebar.discord-style .servers-section {
    margin-bottom: auto;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sidebar.discord-style .servers-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: none;
    overflow-y: visible;
    padding: 0;
    width: 100%;
}

.sidebar.discord-style .user-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.sidebar.discord-style .user-avatar-container .user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar.discord-style .user-avatar-container .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(92, 225, 230, 0.3);
}

.sidebar.discord-style .server-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.sidebar.discord-style .server-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent-glow);
    box-shadow: 0 4px 12px rgba(92, 225, 230, 0.3);
}

.sidebar.discord-style .server-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar.discord-style .user-profile {
    margin-top: auto;
    padding: 0;
}

.sidebar.discord-style .username {
    display: none;
}

/* Adjust main content for Discord-style sidebar */
.sidebar.discord-style ~ .main-content {
    margin-left: 85px;
}

/* Responsive for Discord-style */
@media (max-width: 768px) {
    .sidebar.discord-style {
        width: 100%;
        max-width: 70px;
        padding: 6px 2px;
    }
    
    .sidebar.discord-style .user-avatar-container .user-avatar {
        width: 54px;
        height: 54px;
    }
    
    .sidebar.discord-style .server-avatar {
        width: 54px;
        height: 54px;
        border-radius: 50%;
    }
    
    .sidebar.discord-style ~ .main-content {
        margin-left: 70px;
    }
}

/* Server Avatars Section */
.servers-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.servers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 0;
}

.servers-container::-webkit-scrollbar {
    width: 6px;
}

.servers-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.servers-container::-webkit-scrollbar-thumb {
    background: var(--accent-glow);
    border-radius: 3px;
}

.no-servers-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 24px;
}

/* Navigation Categories */
.nav-category {
    margin-bottom: 24px;
}

.category-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 0 16px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-stats .stat-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dashboard-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(92, 225, 230, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.dashboard-stats .stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(92, 225, 230, 0.15);
    border-color: var(--accent-glow);
}

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

.dashboard-stats .stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(92, 225, 230, 0.25), rgba(92, 225, 230, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-glow);
    box-shadow: 0 8px 16px rgba(92, 225, 230, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.dashboard-stats .stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(92, 225, 230, 0.3);
}

.dashboard-stats .stat-content {
    position: relative;
    z-index: 2;
}

.dashboard-stats .stat-content h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.dashboard-stats .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 200px;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.nav-link:hover {
    color: var(--accent-glow);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.flag-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 6px;
}

.flag-btn:hover {
    color: var(--accent-glow);
    background: rgba(92, 225, 230, 0.1);
}

/* Update user avatar size for dashboard */
.dashboard-layout .user-avatar {
    width: 40px;
    height: 40px;
}

/* Responsive adjustments for dashboard */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .top-nav {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dashboard-stats .stat-card {
        padding: 20px;
    }
    
    .dashboard-stats .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .dashboard-stats .stat-number {
        font-size: 24px;
    }
    
    .servers-container {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(92, 225, 230, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-glow);
}

.stat-content h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

/* Enhanced Changelog Section */
.changelog-container {
    margin-bottom: 30px;
}

.changelog-card {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.05));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(92, 225, 230, 0.05);
}

.card-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2::before {
    content: '\f0ae';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
    font-size: 20px;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card-header i {
    font-size: 24px;
    color: var(--accent-glow);
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.changelog-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 24px;
}

.changelog-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.changelog-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-glow), #4dd4d8);
    border-radius: 2px 0 0 2px;
}

.changelog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 225, 230, 0.15);
    border-color: var(--accent-glow);
}

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

.changelog-date {
    color: var(--accent-glow);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
    font-size: 14px;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.changelog-item .changelog-content h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.changelog-item .changelog-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 15px;
}

.changelog-version {
    display: inline-block;
    background: linear-gradient(135deg, rgba(92, 225, 230, 0.3), rgba(92, 225, 230, 0.1));
    color: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(92, 225, 230, 0.3);
    margin-left: 12px;
    backdrop-filter: blur(10px);
}

.date {
    color: var(--text-muted);
    font-size: 14px;
}

/* Action Bar */
.action-bar {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    box-shadow: var(--shadow);
    margin-top: auto;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.action-link:hover {
    color: var(--accent-glow);
    transform: translateY(-2px);
}

.action-link i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .action-bar {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .action-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Scrollbar Styling */
.changelog-content::-webkit-scrollbar {
    width: 8px;
}

.changelog-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb {
    background: var(--accent-glow);
    border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
    background: #4dd4d8;
}

/* Page Content Styles */
.page-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.1);
}

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

.btn {
    padding: 12px 24px;
    background: var(--accent-glow);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 225, 230, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.btn-danger:hover {
    background: #ff0000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* Server List Styles */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.server-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(92, 225, 230, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.server-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(92, 225, 230, 0.2);
    border-color: var(--accent-glow);
}

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

.server-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.server-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-glow), #4dd4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bg-primary);
    font-weight: bold;
    position: relative;
    box-shadow: 0 8px 16px rgba(92, 225, 230, 0.3);
    transition: var(--transition);
}

.server-card:hover .server-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(92, 225, 230, 0.4);
}

.server-icon img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.server-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.server-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.server-members {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.server-members i {
    font-size: 14px;
    color: var(--accent-glow);
}

.server-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.server-actions .btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.server-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(92, 225, 230, 0.3);
}

.server-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, rgba(92, 225, 230, 0.3), rgba(92, 225, 230, 0.1));
    color: var(--accent-glow);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(92, 225, 230, 0.3);
    backdrop-filter: blur(10px);
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}


@keyframes onlinePulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.1);
    }
}


.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner i {
    font-size: 28px;
    color: var(--accent-glow);
    animation: spin 1s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--accent-danger);
}

.error-state i {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.error-state h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.error-state p {
    font-size: 14px;
    line-height: 1.6;
}
