* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: linear-gradient(135deg, #FDF6F9 0%, #F5F0FF 50%, #F0F7FF 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #4A4A4A;
  padding: 20px;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
}
header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 180, 210, 0.3);
  box-shadow: 0 8px 32px rgba(180, 160, 200, 0.15);
}
header h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #B8A9C9 0%, #E8B4CB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -1px;
}
header p {
  color: #7A7A8C;
  font-size: 1.15rem;
  font-weight: 500;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(200, 180, 210, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(180, 160, 200, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #B8A9C9 0%, #E8B4CB 100%);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184, 169, 201, 0.25);
  border-color: rgba(200, 180, 210, 0.5);
}
.stat-card h3 {
  color: #7A7A8C;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.stat-card .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #5A5A6A;
}
.stat-card .value.green {
  color: #6DBF8B;
}
.stat-card .value.orange {
  color: #E8A87C;
}
.stat-card .value.red {
  color: #E88B8B;
}
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(200, 180, 210, 0.3);
}
.tab {
  background: none;
  border: none;
  color: #7A7A8C;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.tab:hover {
  background: rgba(200, 180, 210, 0.2);
  color: #5A5A6A;
}
.tab.active {
  background: linear-gradient(135deg, #B8A9C9 0%, #E8B4CB 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 169, 201, 0.4);
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(200, 180, 210, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(180, 160, 200, 0.12);
}
.card h2 {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #5A5A6A;
}
.cost-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 180, 210, 0.3);
}
.cost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cost-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.cost-stats {
  display: flex;
  gap: 20px;
  color: #7A7A8C;
  font-size: 0.9rem;
}
.cost-stats span strong {
  color: #5A5A6A;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(200, 180, 210, 0.2);
}
th {
  color: #7A7A8C;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  font-size: 1rem;
}
tbody tr {
  transition: all 0.2s ease;
}
tbody tr:hover {
  background: rgba(200, 180, 210, 0.1);
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.badge.paid {
  background: rgba(109, 191, 139, 0.2);
  color: #5AAF7A;
  border: 1px solid rgba(109, 191, 139, 0.3);
}
.badge.partial {
  background: rgba(232, 168, 124, 0.2);
  color: #D4956C;
  border: 1px solid rgba(232, 168, 124, 0.3);
}
.badge.unpaid {
  background: rgba(232, 139, 139, 0.2);
  color: #D47A7A;
  border: 1px solid rgba(232, 139, 139, 0.3);
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(200, 180, 210, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #98D8AA, #7DD3B3);
  border-radius: 4px;
  transition: width 0.3s;
}
.add-payment-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.add-payment-form input,
.add-payment-form select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 180, 210, 0.4);
  color: #4A4A4A;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.add-payment-form input:focus,
.add-payment-form select:focus {
  outline: none;
  border-color: #B8A9C9;
  box-shadow: 0 0 0 3px rgba(184, 169, 201, 0.2);
}
.add-payment-form input::placeholder,
.add-payment-form select::placeholder {
  color: #9A9AAC;
}
.add-payment-form input[type="number"] {
  width: 120px;
}
.add-payment-form input[type="text"] {
  flex: 1;
  min-width: 180px;
}
.add-cost-form input,
.add-cost-form select {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(200, 180, 210, 0.4);
  color: #4A4A4A;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
}
.add-cost-form input:focus,
.add-cost-form select:focus {
  outline: none;
  border-color: #B8A9C9;
  box-shadow: 0 0 0 3px rgba(184, 169, 201, 0.2);
}
.editable {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.editable:hover {
  border-color: rgba(232, 168, 124, 0.5);
  background: rgba(232, 168, 124, 0.1);
}
.editable input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(232, 168, 124, 0.5);
  color: #4A4A4A;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 4px;
  width: 100px;
  font-family: 'SF Mono', monospace;
}
.btn {
  background: linear-gradient(135deg, #B8A9C9 0%, #E8B4CB 100%);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(184, 169, 201, 0.4);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 169, 201, 0.5);
}
.btn:active {
  transform: translateY(0);
}
.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}
.delete-btn {
  background: none;
  border: none;
  color: #E88B8B;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 1rem;
}
.delete-btn:hover {
  opacity: 1;
}
.payment-list {
  margin-top: 12px;
}
.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(200, 180, 210, 0.1);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.payment-item .delete-btn {
  font-size: 1rem;
}
.person-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(200, 180, 210, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
}
.person-item .delete-btn {
  font-size: 1.1rem;
}
.amount {
  font-family: 'SF Mono', monospace;
}
.amount::before {
  content: '£';
}
.person-payment-card summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #FDF6F9 0%, #F5F0FF 50%, #F0F7FF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-castle {
  animation: float 3s ease-in-out infinite;
}
.castle-icon {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 30px rgba(184, 169, 201, 0.4));
}
.loading-text {
  margin-top: 24px;
  font-size: 1.1rem;
  color: #5A5A6A;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.skeleton-text {
  display: inline-block;
  width: 80px;
  height: 1.8rem;
  background: linear-gradient(90deg, rgba(200, 180, 210, 0.2) 25%, rgba(200, 180, 210, 0.4) 50%, rgba(200, 180, 210, 0.2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  vertical-align: middle;
}
.skeleton-text-small {
  display: inline-block;
  width: 120px;
  height: 1rem;
  background: linear-gradient(90deg, rgba(200, 180, 210, 0.2) 25%, rgba(200, 180, 210, 0.4) 50%, rgba(200, 180, 210, 0.2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  vertical-align: middle;
}
.skeleton-card {
  background: linear-gradient(90deg, rgba(200, 180, 210, 0.1) 25%, rgba(200, 180, 210, 0.2) 50%, rgba(200, 180, 210, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  height: 120px;
  margin-bottom: 12px;
}
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #7A7A8C;
}
.loading-overlay .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(200, 180, 210, 0.2);
  border-top-color: #B8A9C9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  header {
    padding: 20px 15px 20px 15px;
  }
  header h1 {
    font-size: 1.5rem;
    margin-top: 30px;
  }
  header p {
    font-size: 0.9rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card h3 {
    font-size: 0.75rem;
  }
  .stat-card .value {
    font-size: 1.5rem;
  }
  .tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tab {
    padding: 10px 16px;
    font-size: 0.9rem;
    flex: 1 1 auto;
    text-align: center;
  }
  .cost-card {
    padding: 16px;
  }
  .cost-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cost-amounts {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .form-row {
    flex-direction: column;
  }
  .form-row .form-group {
    width: 100%;
  }
  .btn {
    padding: 12px 20px;
  }
  table {
    font-size: 0.85rem;
  }
  th,
  td {
    padding: 8px 6px;
  }
  .person-item {
    padding: 10px 12px;
  }
  .add-cost-form {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .add-cost-form > div {
    min-width: 0;
  }
  .add-cost-form input,
  .add-cost-form select {
    font-size: 16px !important;
    padding: 12px !important;
  }
  .add-cost-form button {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .add-payment-form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .add-payment-form input,
  .add-payment-form select {
    font-size: 16px !important;
    padding: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .add-payment-form button {
    width: 100% !important;
    padding: 14px !important;
  }
  .cost-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .cost-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .cost-card-header > div:last-child {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .person-cost-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 1.3rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card .value {
    font-size: 1.8rem;
  }
  .tabs {
    padding: 6px;
  }
  .tab {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .add-cost-form {
    grid-template-columns: 1fr !important;
  }
  .person-payment-card summary {
    padding: 16px !important;
  }
  .person-payment-card summary h3 {
    font-size: 1rem !important;
  }
}
/*# sourceMappingURL=main.css.map */
/*# sourceMappingURL=styles.css.map */
