@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'Geist';
  src: url('https://corsproxy.io/?url=https://cdn.alimad.co/f/geist.woff2');
  font-weight: normal, bold;
}

:root {
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #7C3AED;
  --secondary: #06B6D4;
  --secondary-light: #22D3EE;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
}

* {
  font-family: "Inter", "Geist", sans-serif;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 10% 20%, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 90%);
  background-attachment: fixed;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  font-size: 17px;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15), transparent 30%);
  animation: nebulaMove 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes nebulaMove {
  0% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(5deg) scale(1.1);
  }
}

strong {
  font-weight: 700;
}

a {
  color: var(--secondary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-light);
}

h1 {
  color: var(--text-primary);
  margin-top: 60px;
  margin-bottom: 30px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #A78BFA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  animation: fadeInDown 0.8s ease-out;
  position: relative;
  z-index: 1;
}

#time {
  font-size: clamp(18px, 3vw, 28px);
  color: var(--text-secondary);
  font-weight: 600;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

#log,
#logg {
  font-size: 10px;
  color: var(--text-muted);
  text-align: left;
  opacity: 0.7;
}

.input-container,
.schedule-card {
  margin: 30px auto;
  padding: 50px 40px;
  max-width: 650px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-container:hover,
.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

input {
  padding: 14px 18px;
  font-size: 16px;
  margin: 10px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-weight: 500;
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
}

button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

button:active {
  transform: translateY(0);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  min-width: 140px;
  justify-content: center;
}

.download-btn {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.cleanup-btn {
  background: linear-gradient(135deg, var(--warning), var(--danger));
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  position: relative;
  z-index: 1;
}

@media (orientation: landscape) {
  table {
    font-size: 16px;
  }
}

@media (orientation: portrait) {
  table {
    font-size: clamp(10px, 3.0vw, 15px);
  }
}

th,
td {
  padding: 16px 12px;
  text-align: left;
  color: var(--text-primary);
  border: none;
}

th {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

tr.new-row {
  opacity: 0;
  transition: opacity 0.5s ease;
}

tr.new-row.visible {
  opacity: 1;
}

tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

tr:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  transform: scale(1.01);
}

.footer {
  text-align: center;
  font-size: 14px;
  bottom: 0;
  margin: 40px 0 20px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--primary-light);
  font-weight: 700;
}

.container {
  position: relative;
  padding-left: 35px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.container:hover {
  color: var(--text-primary);
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container:hover input~.checkmark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
}

.container input:checked~.checkmark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  transform: scale(1.1);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked~.checkmark:after {
  display: block;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.radio-group {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
  animation: fadeIn 0.8s ease-out;
  flex-wrap: wrap;
}

.radio-container {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 17px;
  user-select: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.radio-container:hover {
  color: var(--text-primary);
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-mark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-container:hover input~.radio-mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
  transform: scale(1.1);
}

.radio-container input:checked~.radio-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.radio-mark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked~.radio-mark:after {
  display: block;
  left: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

details {
  margin: 20px auto;
  max-width: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  padding: 8px;
}

summary:hover {
  color: var(--primary-light);
}

details[open] summary {
  margin-bottom: 12px;
  color: var(--primary-light);
}

#rest {
  position: relative;
  z-index: 1;
}

#more {
  margin: 20px 0;
}

#popup-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#popup-overlay>div {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#popup-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

#popup-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

#popup-input {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 8px;
  width: 90%;
  margin-bottom: 20px;
}

#popup-input:focus {
  border-color: var(--primary);
  outline: none;
}

#cleanerr {
  color: var(--danger);
  font-weight: 600;
  margin: 10px 0;
}