/* ======================
   style.css – Dark Theme Design
   ====================== */

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0d1117;
  color: #e6edf3;
  margin: 0;
  padding: 0;
}

/* ======================
   NAVIGATION
   ====================== */
header, nav {
  background-color: #161b22;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #30363d;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #58a6ff;
  object-fit: cover;
}

nav a {
  color: #58a6ff;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #8cc0ff;
  text-decoration: underline;
}

/* ======================
   GLOBAL ELEMENTS
   ====================== */
.container {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  background-color: #161b22;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(36, 33, 33, 0.3);
}

h1, h2, h3 {
  color: #58a6ff;
}

button {
  background-color: #238636;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background-color: #2ea043;
}

input, textarea, select {
  width: 100%;
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  padding: 8px;
  margin: 6px 0;
  border-radius: 5px;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

th, td {
  border-bottom: 1px solid #30363d;
  padding: 8px;
}

.delete-btn {
  color: #f85149;
  font-weight: bold;
  text-decoration: none;
}

.delete-btn:hover {
  text-decoration: underline;
}

.edit-btn {
  color: #d29922;
  font-weight: bold;
}

/* ======================
   USER DASHBOARD
   ====================== */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(56,139,253,0.3);
}

.card h3 {
  color: #58a6ff;
  margin-bottom: 10px;
}

.news-item {
  border-bottom: 1px solid #30363d;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.status {
  font-weight: bold;
  margin-top: 8px;
}

.status.active { color: #58a6ff; }
.status.expired { color: #f85149; }

.small {
  color: #8b949e;
  font-size: 14px;
}

.header-name {
  color: #58a6ff;
  font-weight: 600;
}

/* ============================
   ADMIN DASHBOARD (2-COLUMN)
   ============================ */
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  align-items: start;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
}

.admin-form button {
  background-color: #238636;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

.admin-form button:hover {
  background-color: #2ea043;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0d1117;
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #30363d;
  text-align: left;
}

.admin-table th {
  background-color: #161b22;
  color: #58a6ff;
  font-weight: 600;
}

.admin-table tr:hover {
  background-color: #1e232b;
}

/* ============================
   USER SETTINGS PAGE
   ============================ */
.user-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-form label {
  color: #8b949e;
  font-size: 15px;
  margin-top: 6px;
}

.user-form input {
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 5px;
}

.user-form button {
  background-color: #238636;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.user-form button:hover {
  background-color: #2ea043;
}

.user-form hr {
  border: 0;
  border-top: 1px solid #30363d;
  margin: 10px 0;
}

/* ============================
   INDEX PAGE – SLIDESHOW + CONTENT
   ============================ */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 700px;
  overflow: hidden;
  border-bottom: 1px solid #30363d;
}

.slideshow-container img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

.slide { display: none; }

.fade {
  animation: fade 1.5s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.active, .dot:hover { background-color: #58a6ff; }

/* Layout under slideshow */
.main-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.news-section, .tournament-section {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
}

.news-section { flex: 2; }
.tournament-section { flex: 1; }

.news-section h3, .tournament-section h3 {
  color: #58a6ff;
  margin-bottom: 15px;
}

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

.score-table th, .score-table td {
  border-bottom: 1px solid #30363d;
  padding: 8px;
  text-align: left;
}

.score-table th {
  color: #58a6ff;
  font-weight: 600;
}

/* ============================
   FOOTER
   ============================ */
footer {
  text-align: center;
  color: #8b949e;
  padding: 15px;
  border-top: 1px solid #30363d;
}

footer a {
  color: #58a6ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.points-form input[type="text"],
.points-form input[type="number"] {
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}

.points-form input:focus {
  outline: none;
  border-color: #58a6ff;
  background-color: #0f141b;
}

.points-form button {
  margin-top: 12px;
  width: 100%;
}
.button-link {
  display: inline-block;
  background-color: #238636;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
}

.button-link:hover {
  background-color: #2ea043;
}
/* ============================
   LOGIN PAGE STYLING
   ============================ */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #0d1117;
}

.login-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 40px 30px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  animation: fadeIn 0.6s ease-in-out;
}

.login-card h2 {
  color: #58a6ff;
  margin-bottom: 25px;
  font-weight: 600;
}

.login-form input {
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  width: 100%;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #58a6ff;
  background-color: #0f141b;
}

.login-form button {
  background-color: #238636;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  width: 100%;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.login-form button:hover {
  background-color: #2ea043;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(56, 139, 253, 0.3);
}

.login-footer {
  color: #8b949e;
  margin-top: 20px;
  font-size: 14px;
}

.login-footer a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================
   NEWS PAGE STYLING
   ============================ */

.news-page {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.news-page h2 {
  color: #58a6ff;
  text-align: center;
  margin-bottom: 30px;
}

.news-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(56,139,253,0.3);
}

.news-card h3 {
  color: #58a6ff;
  margin-bottom: 8px;
}

.news-card p {
  color: #e6edf3;
  line-height: 1.6;
  margin-top: 10px;
}

.news-date {
  color: #8b949e;
  font-size: 14px;
}

.no-news {
  text-align: center;
  color: #8b949e;
  font-style: italic;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #111;
    border: 1px solid #333;
}

th {
    background: #222;
    color: #fff;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
}

td {
    padding: 10px;
    border-bottom: 1px solid #222;
    color: #ddd;
}

select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 4px;
}

button {
    background: #007bff;
    border: none;
    padding: 7px 13px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #0056b3;
}
.points-input {
    width: 80px;
    padding: 5px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
}