* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9fafb;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Shared Buttons */

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 8px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;
}

.primary-btn {
    border: none;

    background: #111827;
    color: white;
}

.primary-btn:hover {
    background: #1f2937;
}

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

.secondary-btn {
    border: 1px solid #d1d5db;

    background: white;
    color: #374151;
}

.secondary-btn:hover {
    background: #f3f4f6;
}


/* Shared Header */

.group-header {
    min-height: 72px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 32px;

    border-bottom: 1px solid #e5e7eb;

    background: white;
}

.back-link {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #111827;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
}

.user-profile-link:hover {
    opacity: 0.8;
}

.user-profile-link .user-photo {
    cursor: pointer;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.landing-footer .brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.landing-footer .brand span {
    color: #6366f1;
}

.landing-footer p {
    margin: 6px 0;
    color: #6b7280;
    font-size: 14px;
}

.landing-footer .copyright {
    margin-top: 14px;
    font-size: 13px;
    color: #9ca3af;
}

.progress-bar-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgba(0, 0, 0);
    opacity: 0.8;
    position: fixed;
    z-index: 9999;
}

.progress-container {
  position: relative;
  width: 300px;
  height: 25px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  width: 70%;
  height: 100%;
  background: rgb(66, 103, 239);
  transition: width 0.3s;
}

#progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

#expense-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 100;
}

.expense-loading-content {
  width: 80%;
  max-width: 350px;
  text-align: center;
}

.expense-loading-bar-container {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

#expense-loading-bar {
  width: 0%;
  height: 100%;
  background: #4caf50;
  transition: width 0.3s ease;
}

#expense-loading-text {
  font-size: 14px;
  font-weight: 600;
}

#expense-modal {
  position: relative;
}