/* Modern CSS with iOS 26 Liquid Glass Design */

:root {
    --primary-color: #c52033;
    --accent-color: #c52033;
    --secondary-color: #ff6b7a;
    --background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    height: 16px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* Contadiner */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 #c52033;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-card {
    max-width: 600px;
    margin: 0 auto;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

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

.card-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.card-icon img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.glass-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.glass-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.server-address {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.glass-logo {
  position: relative;
  width: 150px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 0 rgba(255,255,255,0.5) inset;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  transition: box-shadow 0.3s, filter 0.3s;
}

/* Reflexion als Pseudo-Element */
.glass-logo::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0.7;
  transition: background 0.3s;
}

/* Status Indicator */
.status-indicator {
    text-align: center;
    padding: 0.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.status-online {
    color: #34C759;
    font-weight: 600;
}

.status-offline {
    color: #FF3B30;
    font-weight: 600;
}

/* Glass Button */
.glass-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(197, 32, 51, 0.3);
}

.glass-button:hover {
    background: #d93a4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 32, 51, 0.5);
    color: #ffffff;
}

/* Statistics Page */
.stats-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tab-button.active {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.stat-box h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-box div {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Top Users List */
.top-users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

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

.user-rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
}

.user-info {
    flex: 1;
    margin: 0 1rem;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.user-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.glass-input::placeholder {
    color: var(--text-secondary);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h4 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Error Page */
.error-card {
    text-align: center;
    max-width: 500px;
    margin: 4rem auto;
}

.error-card h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Search and Filter Controls */
.search-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    white-space: nowrap;
}

/* Sortable Table */
.sortable-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sortable-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.sortable-table th {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    position: relative;
}

.sortable-table th:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sortable-table th.sortable::after {
    content: ' ⇅';
    opacity: 0.3;
    margin-left: 0.5rem;
}

.sortable-table th.sorted-asc::after {
    content: ' ↑';
    opacity: 1;
    color: var(--accent-color);
}

.sortable-table th.sorted-desc::after {
    content: ' ↓';
    opacity: 1;
    color: var(--accent-color);
}

.sortable-table td {
    border: 1px solid var(--glass-border);
    border-top: none;
    padding: 1rem;
}

.sortable-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.sortable-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-button:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.pagination-button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Online Badge */
.online-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34C759;
    margin-right: 0.5rem;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
}

.offline-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    margin-right: 0.5rem;
}
