/* SHAKA System - Styles */

:root {
  --gold: #FFD700;
  --dark: #0a0a0a;
  --gold-glow: 0 0 20px rgba(255, 215, 0, 0.6);
}

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

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

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

/* Logo */
.logo-main {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--gold-glow);
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2rem;
  color: rgba(255, 215, 0, 0.8);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

/* Cards */
.card {
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid var(--gold);
  border-radius: 25px;
  padding: 35px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
}

.card-title {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

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

.form-label {
  display: block;
  color: rgba(255, 215, 0, 0.9);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
  width: 100%;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-gold {
  background: var(--gold);
  color: #000;
}

.btn-gold:hover {
  background: #D4AF37;
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-gold:active {
  transform: translateY(0);
}

/* Messages */
.message {
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.message-success {
  background: rgba(0, 255, 0, 0.15);
  border: 2px solid rgba(0, 255, 0, 0.5);
  color: #00ff00;
  display: block;
}

.message-error {
  background: rgba(255, 0, 0, 0.15);
  border: 2px solid rgba(255, 0, 0, 0.5);
  color: #ff6b6b;
  display: block;
}

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

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

thead {
  background: rgba(255, 215, 0, 0.1);
}

th {
  padding: 15px;
  text-align: left;
  color: var(--gold);
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

td {
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

/* Status Badges */
.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.badge-success {
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  border: 1px solid rgba(0, 255, 0, 0.4);
}

.badge-danger {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 0, 0, 0.4);
}

.badge-warning {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.4);
}

/* Action Buttons */
.btn-action {
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 5px;
}

.btn-warning {
  background: #ffa500;
  color: #000;
}

.btn-warning:hover {
  background: #ff8c00;
}

.btn-success {
  background: #00ff00;
  color: #000;
}

.btn-success:hover {
  background: #00cc00;
}

.btn-danger {
  background: #ff6b6b;
  color: #fff;
}

.btn-danger:hover {
  background: #ff4444;
}

/* Logout Button */
.logout-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 25px;
  background: rgba(255, 0, 0, 0.8);
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
}

.logout-btn:hover {
  background: #ff6b6b;
  transform: translateY(-2px);
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Calculator Result */
.result-main {
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
}

.rodada-valor {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--gold-glow);
  letter-spacing: 3px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  border: 2px solid var(--gold);
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .logo-main {
    font-size: 3rem;
  }
  
  .card {
    padding: 25px;
  }
  
  .rodada-valor {
    font-size: 2.5rem;
  }
}

/* Invite Code Display */
.invite-code {
  background: rgba(255, 215, 0, 0.1);
  border: 3px solid var(--gold);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 5px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.invite-code:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.02);
}
