/* 
    Light theme CSS for Soccer Player Voting Website
*/

:root {
  --bg-gradient: radial-gradient(circle at top left, #a5e7ff 0%, #c7e3ff 45%, #e0f4ff 100%);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(148, 163, 184, 0.35);
  --text-main: #111827;
  --text-muted: #4b5563;
  --input-border: rgba(148, 163, 184, 0.6);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 1600px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-inline: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.brand-icon img{
		width: 140px;
		height: 110%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-text span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.tab {
  padding: 7px 18px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(219, 237, 255, 0.95);
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}

.tab:hover {
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.08);
}

.tab.active {
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.tab.active .tab-dot {
  background: var(--accent);
}

.content-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(232, 244, 255, 0.96);
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px 30px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.card-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.card-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.section-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.full {
  grid-column: 1 / -1;
}

label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: block;
}

.required {
  color: #fb7185;
  margin-left: 2px;
}

/* FORM INPUTS - All forms (user, team, division, player, etc.) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="number"],
textarea,
select,
.vote-window-form input,
.vote-window-form select,
.user-form input,
.user-form select,
.team-form input,
.team-form select,
.division-form input,
.division-form select,
.player-form input,
.player-form select {
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid var(--input-border) !important;
  background: #f1f7ff !important;
  color: var(--text-main) !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

input[type="file"] {
  padding: 10px 14px !important;
  font-size: 13px !important;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* FOCUS STATES */
input:focus,
textarea:focus,
select:focus,
.vote-window-form input:focus,
.vote-window-form select:focus,
.user-form input:focus,
.user-form select:focus,
.team-form input:focus,
.team-form select:focus,
.division-form input:focus,
.division-form select:focus,
.player-form input:focus,
.player-form select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
  background: #f8fbff !important;
}

/* BUTTONS */
.btn-primary,
button[type="submit"],
input[type="submit"] {
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f97316, #facc15) !important;
  color: #111827 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: auto !important;
  margin-left: auto !important;
  float: right !important;
}

.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
}

/* FORM CONTAINERS */
.login-form,
.nomination-form,
.vote-window-form,
.user-form,
.team-form,
.division-form,
.player-form {
  max-width: 420px !important;
  margin: 0 auto 24px auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

/* ACTION CONTAINERS */
.actions,
.login-form .actions,
.nomination-form .actions,
.vote-window-form .actions,
.user-form .actions,
.team-form .actions,
.division-form .actions,
.player-form .actions,
form .grid-2 .actions {
  display: block !important;
  text-align: right !important;
  margin-top: 24px !important;
  width: 100% !important;
  padding: 0 !important;
}

.login-row,
.logout-row {
  margin-top: 10px;
  text-align: left;
}

.hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.highlight {
  color: #fbbf24;
}

.list {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dce6f2;
}

.list-header {
  display: flex;
  font-weight: 600;
  color: #445;
  gap: 20px;
  padding-bottom: 8px;
}

.list-col {
  flex: 1;
}

/* DIVISION TABLE */
.division-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

/* TEAM TABLE */
.team-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

/* PLAYER TABLE */
.player-table {
  width: 100%;
  
  border-collapse: collapse;
  margin-top: 16px;
}

.division-table-header,
.division-table-row {
  display: grid;
  grid-template-columns: 2fr;
  gap: 20px;
  padding: 12px 16px;
  align-items: center;
}

.team-table-header,
.team-table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 0.75fr;
  gap: 20px;
  padding: 12px 16px;
  align-items: center;
}

.player-table-header,
.player-table-row {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr 2fr 2fr 2fr 2fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  align-items: center;
}

/* ENHANCED TABLE STYLING */
.division-table,
.team-table,
.player-table {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.division-table-header,
.team-table-header,
.player-table-header {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #cbd5e1;
  font-size: 13px;
}

.division-table-row,
.team-table-row,
.player-table-row {
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.18s ease;
  font-size: 14px;
  border-bottom: 1px solid #e5edf5;
}

.division-table-row:last-child,
.team-table-row:last-child,
.player-table-row:last-child {
  border-bottom: none;
}

.division-table-row:nth-child(even),
.team-table-row:nth-child(even),
.player-table-row:nth-child(even) {
  background: rgba(241, 249, 255, 0.9);
}

/* HOVER INTERACTION */
.division-table-row:hover,
.team-table-row:hover,
.player-table-row:hover {
  background: rgba(219, 234, 254, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TABLE LINKS */
.division-table-row a,
.team-table-row a,
.player-table-row a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.division-table-row a:hover,
.team-table-row a:hover,
.player-table-row a:hover {
  color: #f97316;
  text-decoration: underline;
}

/* STRONGER HEADERS */
.division-table-header,
.team-table-header,
.player-table-header {
  color: #0f172a;
  font-weight: 700;
}

/* SEARCH FEATURES */
.table-toolbar {
  display: flex; 
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 12px;
}

.search-label input[type="text"] {
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 13px;
  min-width: 500px;
  outline: none;
}

.signin-form {
  max-width: 420px !important;
  margin: 0 auto 24px auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: min(400px, 100%) !important;
}

.login-page {
	background-color: #878787;
	min-height: 100vh;
	background-image: url("bg-soccer.gif");
	background-size: cover;
	background-position: right;
	overflow: hidden;
	
	background-blend-mode: multiply;
}

.login-wrapper{
	box-sizing: border-box;
	text-align: center;
	background-color: #e6f3ff;
	height: 100vh;
	width: max(40%, 600px);
	padding: 10px;
	border-radius: 0 30px 30px 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 15%;
	
}

.login-header{
		font-size: 3rem;
		font-weight:800;
		text-transform: uppercase;
}

.vote-cards-wrap {
  display: flex;
  justify-content: center;
}

.vote-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.vote-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  flex: 0 0 260px; 
  min-height: 200px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transition: all 0.18s ease !important;
}

.vote-card:hover {
  background: rgba(219, 234, 254, 0.9) !important;  
  transform: translateY(-1px) !important;        
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; 
}

.vote-card-class-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #fef3c7;
  border: 1px solid #facc15;
  color: #92400e;
  margin-bottom: 4px;
}

.vote-card-name {
  font-weight: 600;
  font-size: 16px;
}

.vote-card-number,
.vote-card-team,
.vote-card-division {
  font-size: 13px;
  color: var(--text-muted);
}

.vote-btn {
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.18s ease;
}

.vote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.vote-btn.voted {
  background: #22c55e;
  color: #022c22;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.45);
  cursor: default;
}

.vote-btn.voted:hover {
  transform: none;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.45);
}

.vote-btn:disabled {
  opacity: 0.85;
  cursor: default;
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shell {
    padding: 24px 16px 32px;
  }

  .card {
    padding: 20px 20px 24px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .player-table-header,
  .player-table-row {
    grid-template-columns: 1fr 0.5fr 1fr 0.5fr 1fr;
    gap: 8px;
    font-size: 12px;
  }
   
  .login-wrapper{
	box-sizing: border-box;
	text-align: center;
	background-color:  #e6f3ff;
	height: 100vh;
	width: max(100%, 600px);
	padding: 10px;
	border-radius: 0 30px 30px 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 10%;
	
  }
}

@media (max-width: 1200px) {
  .vote-cards {
    grid-template-columns: repeat(4, auto);
  }
  .login-wrapper{
	box-sizing: border-box;
	text-align: center;
	background-color:  #e6f3ff;
	height: 100vh;
	width: max(40%, 600px);
	padding: 10px;
	border-radius: 0 30px 30px 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 10%;
	
  }
  
}

@media (max-width: 992px) {
  .vote-cards {
    grid-template-columns: repeat(3, auto);
  }
  .login-wrapper{
	box-sizing: border-box;
	text-align: center;
	background-color:  #e6f3ff;
	height: 100vh;
	width: max(40%, 600px);
	padding: 10px;
	border-radius: 0 30px 30px 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 10%;
	
  }
}

@media (max-width: 768px) {
	
  .login-wrapper{
	box-sizing: border-box;
	text-align: center;
	background-color:  #e6f3ff;
	height: 100vh;
	width: max(100%, 600px);
	padding: 10px;
	border-radius: 0 30px 30px 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 10%;
	
	}

  .vote-cards {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 480px) {
  .login-wrapper{
	box-sizing: border-box;
	text-align: center;
	background-color:  #e6f3ff;
	height: 100vh;
	width: max(100%, 600px);
	padding: 10px;
	border-radius: 0 30px 30px 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 10%;
	
  }	
  .vote-cards {
    grid-template-columns: repeat(1, auto);
  }
}



