/**
 * Design 2.0 Common Styles
 * Theme: Modern, Professional, Friendly, State-of-the-art
 */

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

:root {
  /* Color Palette */
  --primary-color: #06C755;
  --primary-hover: #05a848;
  --primary-gradient: linear-gradient(135deg, #06C755 0%, #04b34d 100%);

  --secondary-color: #6C757D;
  --success-color: #28A745;
  --warning-color: #FFC107;
  --danger-color: #DC3545;
  --info-color: #17A2B8;

  --dark-text: #2D3436;
  --light-text: #636E72;
  --bg-color: #F4F6F9;
  --white: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-neu: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

/* 全体のレイアウト */
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ... (omitting intermediate rules for brevity in thought process, but tool needs exact target) ... */
/* I will target the specific blocks to replace */

/* Auth Pages (Login) specific */
.auth-bg {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  /* Hide overflow from blurred pseudo-element */
}

/* Background Image with Blur & Overlay */
.auth-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../media/login_bg.png') no-repeat center center;
  background-size: cover;
  filter: blur(15px);
  /* Strong blur to hide low res and create mood */
  transform: scale(1.1);
  /* Remove white edges from blur */
  z-index: 0;
}

.auth-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(6, 199, 85, 0.1) 100%);
  z-index: 1;
}

.auth-card-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  z-index: 2;
  /* Ensure card is above background */
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .glass-card {
    border-radius: var(--radius-md);
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* Glassmorphism Utilities */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
  background: url('../media/page_header_bg.png') no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--light-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(6, 199, 85, 0.08);
  /* faint green bg */
}

/* Buttons */
.btn {
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  box-shadow: 0 4px 6px rgba(6, 199, 85, 0.3);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background: linear-gradient(135deg, #05a848 0%, #03913e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(6, 199, 85, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--dark-text);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

/* Forms */
.form-control {
  border-radius: var(--radius-sm);
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: #FAFAFA;
}

.form-control:focus {
  background-color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.1);
}

.form-floating>label {
  padding: 0.75rem 1rem;
}

/* Auth Pages (Login) specific */
.auth-bg {
  background: url('../media/login_bg.png') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Add padding for mobile */
}

.auth-card-container {
  width: 100%;
  max-width: 400px;
  /* Remove padding here as it's handled by parent or card itself */
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .auth-bg {
    background-position: center top;
  }

  .glass-card {
    border-radius: var(--radius-md);
    /* Slightly smaller radius on mobile */
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* Statistic Cards */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--light-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
  color: var(--light-text);
  padding: 3rem 0;
  font-size: 0.9rem;
}