/* ========== PAGRINDINIAI STILIAI ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: #1a1a1a;
  color: #f0f0f0;
  min-height: 100vh;
  padding-top: 55px;
  padding-bottom: 55px;
  display: block;
  overflow-x: hidden;
}

/* ========== TOPBAR ========== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #222;
  z-index: 1000;
}

.topbar-content {
  text-align: center;
  width: 100%;
}

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.6);
  border-top: 1px solid #222;
  z-index: 1000;
}

.nav-item {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
}

/* ========== PAGRINDINIS TURINYS ========== */
.main-content {
  padding: 20px 15px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow-x: auto;
}

.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* ========== COUNTDOWN & LAIKAS ========== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-weight: bold;
  text-align: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.time-box {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 70px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ========== FORMOS ========== */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #4c6ef5;
}

/* ========== BENDRI MYGTUKAI ========== */
.btn, button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #fff;
  background: linear-gradient(135deg, #4c6ef5, #228be6);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.btn:hover, button:hover {
  background: linear-gradient(135deg, #5c7cff, #339af0);
  transform: scale(1.05);
}

.btn:disabled, button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== PROGRESO JUOSTA ========== */
.progress-wrapper {
  width: 100%;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4c6ef5, #228be6);
  width: 0%;
  transition: width 0.6s ease;
}

/* ========== LENTELĖS ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 10px;
}

th, td {
  padding: 8px;
  border: 1px solid #333;
  text-align: left;
}

th {
  background: #222;
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  h2 {
    font-size: 1.2rem;
  }

  .box {
    padding: 15px;
  }

  .nav-item {
    font-size: 14px;
    padding: 8px 10px;
  }

  .time-box {
    min-width: 60px;
    font-size: 1rem;
  }
}