/* ===========================================
   🏀 BASKET PRO UI – MODERN, INTERAKTIF, PROFESIONAL
   =========================================== */

:root {
  --primary: #FF6B35;       /* Oranye basket nyala */
  --primary-light: #FF8C5D;
  --primary-dark: #E05A2B;
  --black: #0D0D0D;         /* Hitam lapangan */
  --dark: #1A1A1A;
  --light-bg: #FAFAFA;
  --card-bg: white;
  --text: #212121;
  --text-light: #757575;
  --border: #EEEEEE;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ——————— HEADER ——————— */
header {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.3rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
  position: relative;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

/* ——————— CONTAINER ——————— */
.container {
  max-width: 940px;
  margin: 30px auto;
  padding: 0 24px;
}

/* ——————— TABLE ——————— */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
table:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
th {
  background: var(--black);
  color: white;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.95rem;
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: rgba(255, 107, 53, 0.06);
  transform: scale(1.005);
}

/* ——————— BUTTONS ——————— */
.btn, button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn:hover::after {
  left: 100%;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(255, 107, 53, 0.45),
    0 0 0 4px rgba(255, 107, 53, 0.15);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ——————— LOGIN PAGE ——————— */
.login-body {
  background: linear-gradient(135deg, #FFF9F5, #FFFAF0);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-container {
  background: white;
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 500px;
  width: 100%;
  transition: var(--transition);
}
.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

/* ——————— FORM INPUTS ——————— */
input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 15px;
  margin: 12px 0;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
  background: white;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}
input::placeholder {
  color: #A0A0A0;
}

/* ——————— MESSAGE BOX ——————— */
.message {
  padding: 14px;
  margin: 16px 0;
  border-radius: 10px;
  font-weight: 600;
}
.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* ——————— RESPONSIVE ——————— */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  header {
    padding: 1.1rem 1rem;
    font-size: 1.4rem;
  }
  .login-container {
    padding: 35px 25px;
  }
  table {
    font-size: 14px;
  }
  th, td {
    padding: 14px 16px;
  }
  .btn {
    width: 100%;
    padding: 14px;
  }
}