@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --primary: #9d50bb;
  --secondary: #6e48aa;
  --accent: #ff8a00;
  --bg-dark: #0f0c29;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --font-main: 'Outfit', 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  background-image:
    linear-gradient(rgba(15, 12, 41, 0.8), rgba(15, 12, 41, 0.8)),
    url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 95%;
  max-width: 800px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: 40px 0;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

header {
  padding: 40px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(157, 80, 187, 0.2), rgba(110, 72, 170, 0.2));
}

h1 {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ffffff, #e0c3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 25px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 10px;
}

.tab-btn:hover {
  color: #fff;
}

.content {
  padding: 40px;
  min-height: 500px;
}

#schedule-view,
#budget-view {
  display: none;
}

#schedule-view.active,
#budget-view.active {
  display: block;
}

/* Schedule List */
.day-card {
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 25px;
  border-left: 4px solid var(--primary);
}

.day-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent);
}

.activity-item {
  display: flex;
  margin-bottom: 15px;
  position: relative;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 10px;
  bottom: -15px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.activity-item:last-child::before {
  display: none;
}

.time {
  width: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.activity-desc {
  padding-left: 20px;
  font-weight: 400;
}

/* Budget Tab */
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 600px) {
  .budget-grid {
    grid-template-columns: 1fr;
  }
}

.person-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  padding: 30px;
  border: 1px solid var(--glass-border);
}

.person-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: #fff;
}

.person-total {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 138, 0, 0.3);
}

.budget-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.item-desc {
  font-weight: 400;
}

.amount {
  font-weight: 600;
}

.food-details {
  margin-top: 10px;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.food-day {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 10px 0 5px;
  color: var(--text-muted);
}

.food-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}