:root {
    --primary-color: #FFD400;
    --primary-dark: #E6C000;
    --bg-dark: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #404040;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bg-dark);
}

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

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

.username {
    color: var(--bg-dark);
    font-weight: 600;
}

.logout-btn {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

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

.login-card {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.login-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.discord-login-btn {
    background-color: #5865F2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.discord-login-btn:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(88, 101, 242, 0.3);
}

.discord-icon {
    width: 24px;
    height: 24px;
}

/* Dashboard Styles */
.dashboard-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

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

.server-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 212, 0, 0.2);
    border-color: var(--primary-color);
}

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

.server-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

.server-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.server-info {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.premium-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.premium-status.premium-free {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.premium-status.premium-active {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 1px solid var(--primary-dark);
    box-shadow: 0 2px 8px rgba(255, 212, 0, 0.3);
}

.premium-status.premium-expiring {
    background-color: #ff6b35;
    color: white;
    border: 1px solid #e55a2b;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

.premium-icon {
    font-size: 1.1rem;
}

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

.manage-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.manage-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    background-color: #dc3545;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: center;
}

/* No Servers Message */
.no-servers {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-servers h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-servers p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.requirements-box {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
}

.requirements-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.requirements-box ul {
    list-style: none;
    padding: 0;
}

.requirements-box li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 212, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.requirements-box li strong {
    color: var(--primary-color);
}

.help-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.invite-bot-btn,
.refresh-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.invite-bot-btn {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
}

.invite-bot-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 212, 0, 0.3);
}

.refresh-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.refresh-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-info {
        order: -1;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .username {
        display: none;
    }
}
