/* Reset und Grundeinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF0099;
    --secondary-color: #00D4FF;
    --accent-color: #9D00FF;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #FF0099 0%, #9D00FF 50%, #00D4FF 100%);
    --minecraft-brown: #8B4513;
    --minecraft-green: #00AA00;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
}

body.dark-mode {
    --dark-color: #f5f5f5;
    --light-color: #1a1a1a;
    --text-color: #e0e0e0;
    --border-color: #333333;
    --shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(255, 0, 153, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 30px rgba(255, 0, 153, 0.6);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Navigation */
.navbar {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.login-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    border: none !important;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 10rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-services {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease;
}

.service-badge {
    display: inline-block;
    background: rgba(255, 0, 153, 0.2);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.service-badge:hover {
    background: rgba(255, 0, 153, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 153, 0.4);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 0, 153, 0.6);
    min-width: 150px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #FF0099 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 153, 0.8);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 153, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 153, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.server-ip-box {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.server-ip {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 0, 153, 0.5);
    backdrop-filter: blur(10px);
}

.ip-label {
    font-size: 1.1rem;
    opacity: 1;
    font-weight: 600;
    color: white;
}

.ip-address {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    background: rgba(255, 0, 153, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

/* Content Section */
.content-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    transition: background 0.3s ease;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.7;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.card {
    background: var(--bg-primary);
    border-radius: 17px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(255, 0, 153, 0.3);
    border-color: var(--primary-color);
}



.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 14px 14px 0 0;
    margin: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
    border-radius: 14px 14px 0 0;
}

.card:hover .card-image img {
    transform: none;
}

.card-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 180px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 85%, var(--bg-primary) 100%);
    z-index: 1;
}

body.dark-mode .card-image::after {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 85%, var(--bg-primary) 100%);
}

.icon {
    font-size: 4rem;
    position: relative;
    margin: -3.5rem 0 1rem;
    text-align: center;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.card h3 {
    color: var(--dark-color);
    margin: 1.5rem 2rem 1rem;
    font-size: 1.6rem;
    text-align: center;
}

.card p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0 2rem 1.5rem;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0 2rem 2rem;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--primary-color);
    font-weight: 500;
}

/* Bot Features Styling */
.bot-features {
    padding: 0 1.5rem 1.5rem;
    text-align: left;
}

.feature-section {
    margin-bottom: 1rem;
}

.feature-section strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1rem;
}

.feature-list.compact {
    padding: 0 0 0 1rem;
}

.feature-list.compact li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    color: var(--text-color);
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.features-content h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 0, 153, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
}

/* Login Section */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}

.login-container {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 550px;
    transition: background-color 0.3s ease;
}

.login-container h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.login-container h3 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Service Selection */
.service-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-btn:hover::before {
    opacity: 0.1;
}

.service-btn:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 0, 153, 0.3);
}

.service-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 153, 0.15), rgba(0, 212, 255, 0.15));
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(255, 0, 153, 0.4);
    transform: translateY(-10px) scale(1.05);
}

.service-btn.active::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    z-index: 2;
}

.service-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.service-btn:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-btn.active .service-icon {
    transform: scale(1.3);
}

.service-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.service-btn:hover .service-name,
.service-btn.active .service-name {
    color: var(--primary-color);
}

.service-btn .status-badge {
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.service-form {
    display: none;
}

.service-form.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Discord Info Box */
.discord-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.info-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-box h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.info-box p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865f2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.discord-btn svg {
    width: 24px;
    height: 24px;
}

/* Team Section */
.team-hero {
    background: var(--gradient);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.team-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-hero p {
    font-size: 1.2rem;
}

.team-section {
    padding: 5rem 2rem;
    background-color: var(--bg-secondary);
}

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

.team-member {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.member-image {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-image > div:first-child {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.member-badge.owner {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.member-badge.admin {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.member-badge.mod {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
}

.member-badge.builder {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.member-badge.dev {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.member-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.member-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.member-stats span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--text-color);
}

/* Join Team Section */
.join-team {
    background: var(--gradient);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.join-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.join-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Legal Section */
.legal-section {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.legal-container h1 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-container h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-container h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-container h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-container p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-container ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.legal-container li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-services {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        min-width: 200px;
        padding: 1rem 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
    }

    .server-ip {
        padding: 1rem 1.5rem;
    }

    .ip-address {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .card {
        margin: 0;
    }

    .card h3 {
        font-size: 1.3rem;
        margin: 1rem 1rem 0.5rem;
    }

    .card p {
        margin: 0 1rem 1rem;
        font-size: 0.95rem;
    }

    .feature-list {
        padding: 0 1rem 1.5rem;
    }

    .icon {
        font-size: 3rem;
        margin: -3rem 0 0.5rem;
    }

    .team-section {
        padding: 3rem 1rem;
    }

    .team-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .login-section {
        padding: 3rem 1rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .service-selection {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .service-btn {
        width: 100%;
    }

    .discord-info {
        margin: 0 -1.5rem -2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .legal-container {
        padding: 2rem;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-container h2 {
        font-size: 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1rem;
    }

    .dashboard-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        width: 100%;
        gap: 0.75rem;
    }

    .stat-card {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
    }

    .servers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .server-card {
        padding: 1.5rem;
    }

    .admin-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
    }

    .server-settings-layout {
        flex-direction: column;
    }

    .server-settings-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
        gap: 0.5rem;
    }

    .sidebar-nav-item {
        flex-shrink: 0;
    }

    .sidebar-nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .server-settings-content {
        padding: 1.5rem 1rem;
    }

    .settings-section {
        padding: 0;
    }

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

    .roles-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .roles-box {
        margin-bottom: 1rem;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .service-selection {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(255, 0, 153, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.user-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.user-id {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.dashboard-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.2rem 1.8rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

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

.stat-number.status-online {
    color: #10b981;
}

.stat-number.status-offline {
    color: #ef4444;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.servers-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

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

.section-title h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.refresh-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.4);
}

.refresh-btn.spinning span {
    animation: spin 1s linear infinite;
}

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

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

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

.server-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 153, 0.2);
}

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

.server-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

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

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.server-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.server-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-body {
    margin-bottom: 1rem;
}

.server-name {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.info-icon {
    font-size: 1.2rem;
}

.server-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.server-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.server-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.4);
}

.loading-state, .empty-state, .error-state {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

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

.empty-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3, .error-state h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p, .error-state p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.invite-btn-alt, .retry-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.invite-btn-alt:hover, .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.4);
}

.invite-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.invite-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 0, 153, 0.05), rgba(0, 212, 255, 0.05));
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
}

.invite-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.invite-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.invite-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.invite-btn {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.4);
}

/* Admin Panel Styles */
.admin-header {
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header-info p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.admin-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section-header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header-admin h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
}

.add-user-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.add-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.4);
}

.users-table-container {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: var(--bg-secondary);
}

.users-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.users-table tbody tr:hover {
    background: var(--bg-secondary);
}

.users-table code {
    background: var(--bg-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-admin {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.role-moderator {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
}

.role-member {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.role-vip {
    background: linear-gradient(135deg, #eab308, #fde047);
    color: #1a1a1a;
    border: 2px solid #facc15;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.loading-row td,
.empty-text,
.error-text,
.info-text {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
}

.error-text {
    color: #ef4444;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease;
}

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

.modal-header h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    transform: rotate(90deg);
}

.modal-form {
    padding: 2rem;
}

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

.modal-form select {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.setting-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.setting-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.setting-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.maintenance-card {
    background: linear-gradient(135deg, rgba(255, 0, 153, 0.1), rgba(157, 0, 255, 0.1));
    border-color: var(--primary-color);
}

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

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient);
}

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

.toggle-label {
    font-weight: 600;
    color: var(--text-color);
}

.maintenance-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.maintenance-status.active {
    background: rgba(255, 0, 153, 0.2);
    color: var(--primary-color);
}

.maintenance-status.inactive {
    background: rgba(0, 212, 255, 0.2);
    color: var(--secondary-color);
}

.maintenance-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 2px solid #ffa500;
    border-radius: 10px;
    color: #ffa500;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.maintenance-btn:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 140, 0, 0.3));
    border-color: #ff8c00;
    color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-badge.online {
    background: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
    border: 2px solid #00ff7f;
}

.status-badge.maintenance {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 2px solid #ffa500;
}

.status-badge.offline {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 2px solid #ff0000;
}

.status-badge.loading {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid var(--dark-color);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.stat-card-admin {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card-admin:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-card-admin h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.stat-big {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.text-success {
    color: #10b981 !important;
}

.text-error {
    color: #ef4444 !important;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .section-header-admin {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .add-user-btn {
        width: 100%;
        justify-content: center;
    }

    .users-table {
        font-size: 0.9rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.7rem 0.5rem;
    }

    .modal-content {
        width: 95%;
    }
}

/* Roles Management */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.role-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    text-align: center;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.role-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.role-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.role-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.role-permissions {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

.permission-item {
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.role-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.1rem;
}

.role-stats strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* User Management Enhancements */
.user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-view {
    color: #3b82f6;
}

.btn-view:hover {
    background: rgba(59, 130, 246, 0.1);
}
