/* General Styles */
:root {
    --primary-color: #6441a5;
    --secondary-color: #b9a3e3;
    --background-color: #f4f5f7;
    --dark-background: #2c2541;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 180px);
}

/* Header Styles - Modern Design */
.modern-header {
    background: linear-gradient(135deg, var(--dark-background), #4b367c);
    color: var(--light-text);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Entferne den Übergang für den Hintergrund, setze nur für padding */
    transition: padding 0.2s ease;
}

.modern-header.scrolled {
    padding: 5px 0;
    background: rgba(44, 37, 65, 0.95);
    backdrop-filter: blur(10px);
}

/* Stelle sicher, dass der Hintergrund niemals transparent wird */
.modern-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-background), #4b367c);
    z-index: -1;
}

.modern-header.scrolled:before {
    opacity: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    color: var(--light-text);
}

.logo-icon {
    font-size: 28px;
    color: var(--secondary-color);
    margin-right: 12px;
    display: inline-block;
}

.logo-text {
    background: linear-gradient(90deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
    margin: 0 5px;
}

.nav-item {
    color: var(--light-text);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-item i {
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.8;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn i {
    margin-right: 6px;
}

.btn-outline {
    border: 1.5px solid var(--secondary-color);
    color: var(--light-text);
}

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

.btn-solid {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
}

.btn-solid:hover {
    background-color: var(--secondary-color);
    color: var(--dark-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(185, 163, 227, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    color: var(--light-text);
    margin-right: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-profile i {
    font-size: 18px;
    margin-right: 8px;
    color: var(--secondary-color);
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle .fa-chevron-down {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--dark-background);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    color: var(--light-text);
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
    padding-left: 20px;
}

.admin-link {
    color: #f39c12;
}

.admin-link:hover {
    color: #f1c40f;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Media Queries for Responsive Header */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--dark-background);
        flex-direction: column;
        padding: 80px 20px 30px;
        z-index: 1000;
        transition: all 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        margin-left: 0;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .nav-links li {
        width: 100%;
        margin: 5px 0;
    }

    .nav-item {
        padding: 12px 15px;
        width: 100%;
        border-radius: 6px;
    }

    .auth-buttons {
        margin-top: 20px;
        margin-left: 0;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .auth-buttons a {
        margin: 5px 0;
        width: 100%;
        justify-content: center;
    }

    .user-profile {
        margin-right: 0;
        justify-content: flex-start;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown:hover .dropdown-menu {
        max-height: 500px;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Animation for mobile menu toggle */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Footer Styles */
footer {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 30px 20px 10px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--light-text);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    color: var(--light-text);
    margin-right: 15px;
    font-size: 22px;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #4a3d69;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(100, 65, 165, 0.3);
}

button,
.btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s;
}

button:hover,
.btn:hover {
    background-color: #533a8b;
    color: var(--light-text);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

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

.btn-success:hover {
    background-color: #27ae60;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

/* Cards and Dashboard Elements */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

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

.card-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-card p {
    color: #777;
    font-size: 16px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: #f5f5f5;
}

/* Flash Messages */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* API Key Display */
.api-key-display {
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    margin: 10px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-key-display button {
    padding: 5px 10px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.api-key-display button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Team Members */
.team-members {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.member-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.member-card .role {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    background-color: var(--info-color);
    margin-top: 5px;
}

.member-card .role.owner {
    background-color: var(--primary-color);
}

.member-card .role.admin {
    background-color: var(--warning-color);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    display: block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: #999;
    pointer-events: none;
    background-color: #f8f8f8;
}

.pagination-info {
    color: #666;
    font-size: 0.9em;
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-method i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.discord-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin-top: 5px;
}

.discord-link:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.success-message {
    background-color: var(--success-color);
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

.faq-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-header {
    text-align: center;
    margin: 40px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Special Thanks Section - Legal Notice */
.special-thanks {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    box-shadow: 0 5px 15px rgba(100, 65, 165, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    margin: 2.5rem 0;
    padding: 1rem;
}

.special-thanks:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 65, 165, 0.25);
}

.special-thanks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.thanks-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
}

.thanks-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 2rem 0;
}

.logo-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-centered {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    object-fit: contain;
    background-color: white;
    padding: 10px;
}

.logo-link:hover .logo-centered {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(100, 65, 165, 0.3);
}

.thanks-text {
    color: #444;
    line-height: 1.8;
    max-width: 90%;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
}

.thanks-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.thanks-text a:hover {
    color: var(--secondary-color);
}

.thanks-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.thanks-text a:hover::after {
    transform: scaleX(1);
}

/* Pulse Animation for the logo */
.pulse-animation {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(100, 65, 165, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .footer-section {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .member-card {
        flex: 0 0 calc(50% - 20px);
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-info {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .member-card {
        flex: 0 0 100%;
    }
}

/* Legal Notice Page Styles */
.legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    font-size: 1.6rem;
}

.legal-content h3 {
    font-size: 1.35rem;
    color: #444;
    margin: 1.5rem 0 0.75rem;
}

.legal-content h4 {
    font-size: 1.2rem;
    color: #555;
    margin: 1.25rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    color: #444;
}

.legal-content a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}