html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background-image: none;
  background-color: #FFFFFF;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url('../images/background/2.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  /* opacity: 0.15; */

  pointer-events: none;
  z-index: -1;
}

.responsive-card {
  display:flex;
  gap:18px;
  background: #212529;
  backdrop-filter:blur(10px);
  border-radius: 18px;
  padding: 18px;
  color: #FFFFFF;
}

.card-image img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

@media(max-width:768px) {
  .responsive-card {
    flex-direction:column;
    text-align:center;
  }

  .card-image img {
    width:100%;
    height:200px;
  }
}

table {
  table-layout: auto;
  width: auto;
}

td, th {
  white-space: nowrap;
}

.table {
  width: auto;
}

/* PAGE LOADER */

#page-loader {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999999;
  opacity:1;
  visibility:visible;
  transition:opacity .35s ease, visibility .35s ease;
}

#page-loader.hide {
  opacity:0;
  visibility:hidden;
}

.loader-spinner {
  width:45px;
  height:45px;
  border:4px solid rgba(255,255,255,.2);
  border-top:4px solid #fff;
  border-radius:50%;
  animation:loader-spin .8s linear infinite;
}

@keyframes loader-spin {
  0%{
    transform:rotate(0deg);
  }
  100%{
    transform:rotate(360deg);
  }
}

.fab-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #212529;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0,0,0,.35);
  transition: .3s;
}

.fab-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: .25s;
}

.fab-tools.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

#backToTopBtn {
  display: none;
}

.custom-nav {
  border-bottom: 5px solid #FFDD15;
}

.navbar-nav .nav-item {
  /* border: 2px solid #FFFFFF; */
  border-radius: 25px;
  margin: 5px;
  padding: 0.2rem;

  transition: border-color .25s ease, transform .2s ease;
}

#update_button_container{
	display:none;
	animation:fadeIn .3s ease;
}

@keyframes fadeIn{
	from{opacity:0;transform:translateY(8px)}
	to{opacity:1;transform:translateY(0)}
}

.navbar-dark .navbar-nav .nav-link {
  color: #FFFFFF;
  text-transform: uppercase;
  font-weight: bold;
}

.navbar-nav .nav-item:hover {
  border-color: #FFDD15;
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #FFDD15;
}

/* dashboard cards */

/* .dashboard-card {
  display: block;
  background-color: #212529;
  border-radius: 25px;
  border-left: 5px solid #0F5AE0;
  border-bottom: 5px solid #FFDD15;

  padding: 25px 15px;

  text-decoration: none;
  text-transform: uppercase;
  color: #FFFFFF;

  transition: transform .25s ease,
              box-shadow .25s ease,
              border-color .25s ease;

  box-shadow: 0 4px 14px rgba(0,0,0,0.08);

  position: relative;
  overflow: hidden;

  text-shadow: 2px 2px 8px #000000;

  opacity: 0;
  transform: translateY(25px);
  animation: dashboardCardLoad .6s ease forwards;
} */

.dashboard-card {
  display: block;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 25px;

  border: 1px solid rgba(255,255,255,0.18);

  border-left: 5px solid #0F5AE0;
  border-bottom: 5px solid #FFDD15;

  padding: 25px 15px;

  text-decoration: none;
  text-transform: uppercase;
  color: #FFFFFF;

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;

  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);

  position: relative;
  overflow: hidden;

  text-shadow: 2px 2px 8px #000000;

  opacity: 0;
  transform: translateY(25px);
  animation: dashboardCardLoad .6s ease forwards;
}

.dashboard-card::before{
  content:"";
  position:absolute;
  inset:0;

  background: linear-gradient(120deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.02) 60%);

  opacity:.25;
  pointer-events:none;
}

.dashboard-card:hover{
  transform: translateY(-6px);

  background: rgba(255,255,255,0.14);

  box-shadow:
    0 14px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.dashboard-card:nth-child(1) { animation-delay: .05s; }
.dashboard-card:nth-child(2) { animation-delay: .1s; }
.dashboard-card:nth-child(3) { animation-delay: .15s; }
.dashboard-card:nth-child(4) { animation-delay: .2s; }
.dashboard-card:nth-child(5) { animation-delay: .25s; }
.dashboard-card:nth-child(6) { animation-delay: .3s; }
.dashboard-card:nth-child(7) { animation-delay: .35s; }
.dashboard-card:nth-child(8) { animation-delay: .4s; }

@keyframes dashboardCardLoad {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.dashboard-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-card:hover {
  transform: translateY(-6px) scale(1.02);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.35),
    0 0 20px rgba(255,221,21,0.25);

  border-left-color: #FFDD15;
  border-bottom-color: #FFDD15;
}

.active {
  color: #FFDD15 !important;
}

.dashboard-icon {
  max-width: 150px;
  margin-bottom: 12px;

  transform-origin: center;
  transition: transform .25s ease;
}

.dashboard-card:hover .dashboard-icon {
  transform: scale(1.3);
}

.dashboard-card h4 {
  font-weight: 600;
  margin: 0;
}

.dashboard-container h2 {
  margin-bottom: 0;
  color: #000000;
  text-transform: uppercase;
  font-weight: bold;

  border-bottom: 1px solid #E5E5E5;
  padding: 0.5rem;

  letter-spacing: 1px;
}

/* navbar logo */

.navbar {
  position: relative;
}

.nav-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 200px;
}

.nav-logo-center img {
  max-height: 50px;
}

/* smoother navbar collapse */

.navbar-collapse {
  transition: height .35s ease;
}

.navbar-collapse.collapsing {
  height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-10px);

  transition:
    height .35s ease,
    opacity .25s ease,
    transform .25s ease;
}

.navbar-collapse.show {
  opacity: 1;
  transform: translateY(0);

  animation: navFadeSlide .35s ease;
}

@keyframes navFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.judge-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;     /* portrait ratio — ideal for people */
  object-fit: cover;       /* crops nicely */
}

.judge-card {
  height: 100%;
}

/* Card hover lift */
.judge-card {
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.judge-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.25),
    0 0 15px rgba(255,221,21,0.25); /* soft yellow glow */
}

/* Image zoom effect */
.judge-card-img {
  transition: transform .4s ease;
}

.judge-card:hover  {
  transform: scale(1.08);
}

.judge-card .card-text {
  transition: color .3s ease;
}

.judge-card:hover .card-text {
  color: #FFDD15;
}

.judge-card .card-text {
  transition: color .3s ease;
}

.judge-card:hover .card-text {
  color: #0F5AE0;
  font-weight: bold;
}

.schedule-card {
  background: #212529;
  border-radius: 25px;
  border-left: 5px solid #0F5AE0;
  border-bottom: 5px solid #FFDD15;

  padding: 30px 25px;
  max-width: 1100px;
  margin: 0 auto;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.schedule-title {
  color: #FFFFFF;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.schedule-back{
  margin-bottom: 15px;
}

.schedule-back a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  transition:all .25s ease;
}

.schedule-back a:hover {
  transform: translateX(-3px);
}

/* select */
.schedule-select{
  max-width: 300px;
  margin: 0 auto 25px auto;
}

.schedule-card hr {
  border-bottom: 1px solid #CCCCCC;
}

.db_table_container {
  padding: 0.75rem;
  background: #212529;
  border-radius: 25px;
  overflow-x: scroll;
}

table {
  width: 100%;
  background-color: #FFFFFF;
  color: #000000;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

thead {
  background-color: #212529;
  color: #FFDD15;
  text-transform: uppercase;
  border: none;
}

table tr:nth-child(even) {
  background: none;
}

th {
  border: none;
  padding: 0.75rem;
}

td {
  border: none;
  padding: 0.75rem;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 25px;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 25px;
}

tbody tr:hover {
  background-color: #FFDD15;
  cursor: crosshair;
}

#competition_schedule_database h3 {
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #000000;
}

#dancer_schedule_database h3 {
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #000000;
}

#competition_results_database h3 {
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #000000;
}

#dancer_results_database h3 {
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #000000;
}

.dashboard-container h2 {
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #000000;
}

.form_container {
  background-color: #212529;
  border-radius: 25px;
  border-left: 5px solid #0F5AE0;
  border-bottom: 5px solid #FFDD15;
  padding: 25px 15px;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-control {
  padding: 0.75rem;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
  margin: 0;
}

.dancer-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.dancer-actions .btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-facebook {
  background-color: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.btn-facebook:hover {
  background-color: #166fe5;
  border-color: #166fe5;
  color: #ffffff;
}

.btn-instagram {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #ffffff;
  border: none;
}

.btn-instagram:hover {
  opacity: 0.9;
  color: #ffffff;
}

.btn-email {
  background-color: #6c757d;
  color: #ffffff;
  border-color: #6c757d;
}

.btn-email:hover {
  background-color: #5a6268;
  border-color: #5a6268;
  color: #ffffff;
}

.btn-website {
  background-color: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
}

.btn-website:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  color: #ffffff;
}

.dashboard-locked-banner {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  color: red;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  z-index:5;
  border-radius: 25px;
}

.disabled-card{
  pointer-events:none;
  opacity:0.6;
}

.heading_row {
  background-color: #212529;
  color: #FFDD15;
  text-transform: uppercase;
  border: none;
  font-weight: bold;
  padding: 0.75rem;
}

.live_schedule_row {
  padding: 0.75rem;
}

.center {
  text-align: center;
}

.section_is_custom {
  background-color: #0D6EFD;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
text-shadow: 1px 1px 1px #000000;
}

.hoverable_class:hover {
  background-color: #FFDD15;
  color: #000000;
  cursor: pointer;
}

.row_active {
  background-color: #90EE90;
  font-weight: 600;
}

.row_done {
  color: rgba(0,0,0,0.5);
}

.btn {
  padding: 0.75rem;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.fa-file-arrow-down {
  color: #0F5132;
}

.fa-file-arrow-down:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.main-table {
  background-color: #FFFFFF;
}

.scrollable {
  overflow: scroll;
}

::-webkit-scrollbar {
	display: none;
}

.input-group-text {
  border-left: 0;
}

.input-group .form-control:focus {
  box-shadow: none;
}

.btn:hover {
  transform: scale(1.1);
}

.btn {
  text-shadow: 1px 1px 2px #000000;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

.btn-light {
  text-shadow: none;
}

.eventful-logo {
  height: 45px;
  width: auto;
  display: inline-block;
}

.floating-btn {
  position: fixed;
  right: 20px;
  z-index: 9999;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

#backToTopBtn {
  bottom: 80px;
  display:none;
}

#printPageBtn {
  bottom:20px;
  cursor:grab;
}

#printPageBtn:active {
  cursor:grabbing;
}



/* mobile layout */

@media (max-width: 991px) {

  h3 {
    font-size: 11pt;
  }

  th {
    font-size: 10pt;
  }

  td {
    font-size: 10pt;
  }

  p {
    font-size: 10pt;
  }

  small {
    font-size: 10pt;
  }

  .heading_row {
    font-size: 10pt;
  }

  .scrollable {
    font-size: 10pt;
  }

  .btn {
    font-size: 10pt;
    padding: 0.55rem;
  }

  .form-select, .form-input, .form-control {
    font-size: 10pt;
    padding: 0.55rem;
  }

  a {
    font-size: 10pt;
  }

  label {
    font-size: 10pt;
  }

  .alert {
    font-size: 10pt;
  }

  h5 {
    font-size: 10pt;
  }

  .form-check-label {
    font-size: 9pt;
  }

  h2 {
    font-size: 12pt;
  }

  h4 {
    font-size: 12pt;
  }

  .modal-title {
    font-size: 12pt;
  }

  .navbar > .container-fluid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-logo-center {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .navbar-toggler {
    margin-bottom: 10px;
  }

  .navbar-collapse {
    width: 100%;
    margin-top: 10px;
  }

  .navbar-nav {
    width: 100%;
    gap: 10px;
  }

  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;

    opacity: 0;
    transform: translateY(-6px);
  }

  .navbar-collapse.show .nav-item {
    animation: navItemFade .35s forwards;
  }

  .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: .05s; }
  .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: .1s; }
  .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: .15s; }
  .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: .2s; }

}

@keyframes navItemFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#dancer_gallery .col-6 {
  perspective: 1200px;
}

#dancer_gallery .card {
  border: none;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
}

#dancer_gallery .card img {
  transform: translateZ(40px);
  transition: transform 0.15s ease;
}

#dancer_gallery .card:hover {
  box-shadow: 0 30px 50px rgba(0,0,0,0.45);
  cursor: pointer;
}

.media-card {
  position:relative;
  height:100%;

  background:rgba(33,37,41,0.85);
  backdrop-filter:blur(10px);

  border-radius:20px;

  border-left:5px solid #0F5AE0;
  border-bottom:5px solid #FFDD15;

  overflow:hidden;

  transition:transform .25s ease,
             box-shadow .25s ease,
             border-color .25s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* hover lift (matches judge + dashboard cards) */
.media-card:hover{
  transform:translateY(-8px) scale(1.02);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    0 0 20px rgba(255,221,21,0.25);

  border-left-color:#FFDD15;
  border-bottom-color:#FFDD15;
}

.media-card-header {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.7)), url('../images/background/2.jpg');
  background-size:cover;
  background-position:center;
}

.media-icon {
  z-index: 2;
	font-size: 60pt;
}

.media-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.media-card-body {
  padding: 18px;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.02) 60%);
  opacity: .25;
  pointer-events:none;
}
