/* Base Styles */
:root {
    --primary-color: #C54E57;
    --primary-dark: #8B0000;
    --secondary-color: #00ff95;
    --bg-dark: #0a0a0a;
    --bg-medium: #121212;
    --bg-light: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, var(--bg-dark), #000000);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
  }
  
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* Header & Navigation */
  header {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--primary-color);
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(197, 78, 87, 0.5);
  }
  
  .logo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  nav {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
  }
  
  .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-link:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px rgba(197, 78, 87, 0.3);
  }
  
  .nav-link.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .nav-link.highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
  }
  
  .nav-link.logout {
    color: var(--secondary-color);
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 10;
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
  /* Main Content */
  main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Flash Messages */
  .flash-messages {
    margin-bottom: 2rem;
  }
  
  .flash-message {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.8));
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
  }
  
  @keyframes slideIn {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .flash-message i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
  }
  
  .flash-message span {
    flex: 1;
  }
  
  .close-flash {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
  }
  
  .close-flash:hover {
    color: var(--text-light);
  }
  
  /* Footer */
  footer {
    background: linear-gradient(to top, #000000, rgba(10, 10, 10, 0.9));
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--primary-color);
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
  }
  
  .footer-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s;
  }
  
  .social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
  
  .copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Auth Forms */
  .auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
  }
  
  .login-form-wrapper {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7), rgba(0, 0, 0, 0.9));
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
  }
  
  .form-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .form-header h2 {
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .subtitle {
    color: var(--text-muted);
    font-size: 14px;
  }
  
  .form-group {
    margin-bottom: 25px;
  }
  
  .form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .input-with-icon {
    position: relative;
  }
  
  .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
  }
  
  .input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s;
  }
  
  .input-with-icon input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  
  .input-with-icon input:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 78, 87, 0.5);
  }
  
  .login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .signup-link {
    text-align: center;
    margin-top: 30px;
  }
  
  .signup-link p {
    color: var(--text-muted);
    font-size: 14px;
  }
  
  .signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  .signup-link a:hover {
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(197, 78, 87, 0.5);
  }
  
  /* Game Styles */
  .game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .game-board {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(197, 78, 87, 0.3);
  }
  
  .game-info {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7), rgba(0, 0, 0, 0.9));
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
  }
  
  /* Admin Dashboard */
  .admin-container {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7), rgba(0, 0, 0, 0.9));
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  .admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .admin-section {
    margin-bottom: 2rem;
  }
  
  .admin-section h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  
  .data-table th {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
  }
  
  .data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  /* Tournament Styles */
  .tournament-container {
    padding: 1rem;
  }
  
  .tournament-section {
    margin-bottom: 2rem;
  }
  
  .tournament-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7), rgba(0, 0, 0, 0.9));
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  .tournament-card h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  .tournament-dates {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .btn-secondary {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.8));
    color: var(--text-light);
  }
  
  .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.8), rgba(40, 40, 40, 0.8));
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .header-container {
      padding: 1rem;
    }
    
    .mobile-menu-btn {
      display: block;
    }
    
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      width: 70%;
      max-width: 300px;
      background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
      flex-direction: column;
      padding: 5rem 2rem 2rem;
      transition: right 0.3s ease;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
      opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }
    
    main {
      padding: 1.5rem 1rem;
    }
  }
  