/* Base Reset / Common Styles */
* {
  font-family: var(--font-family);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: var(--font-family);
  background-color: var(--secondary-color, #2c3e50);
  color: var(--text-color, #333);
}

/* Layout */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-color, #fafafa);
}

/* Navigation Area */
.nav {
  background-color: var(--secondary-color, #2c3e50);
  color: var(--nav-text-color, #ffffff);
}

.nav a {
  display: block;
  padding: 1rem;
  color: var(--nav-text-color, #ffffff);
  text-decoration: none;
  border-bottom: 1px solid var(--nav-border-color, #34495e);
}

.nav-icon {
  margin-right: 0.5rem;
  font-size: 1.05rem;
}

.nav-label {
  display: inline;
}

.nav a:hover {
  background-color: var(--nav-hover-bg, #34495e);
}

.nav a.active {
  background-color: var(--primary-color, #3498db);
  color: #ffffff;
}

/* Content Area */
.content {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--content-bg, #ffffff);
}

/* Responsive Layouts */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    margin-top: 15px;
    font-weight: 600;
    font-size: 14px;
}

.auth-form input {
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: #3498db;
}

.auth-button {
    margin-top: 25px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-button:hover {
    background-color: #2c80b4;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.flash-container {
    margin-bottom: 15px;
}

.flash-message {
    padding: 10px;
    border-radius: 6px;
    background-color: #ffe9e9;
    color: #b30000;
    font-size: 14px;
}


@media (min-width: 768px) {
  .layout {
    background: linear-gradient(
      to right,
      var(--secondary-color, #2c3e50) 0 220px,
      var(--background-color, #fafafa) 220px 100%
    );
  }

  .layout {
    flex-direction: row;
  }

  .nav {
    width: 220px;
    min-height: 100vh;
  }

  .content {
    flex: 1;
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .layout {
    background: linear-gradient(
      to top,
      var(--secondary-color, #2c3e50) 0 calc(64px + env(safe-area-inset-bottom)),
      var(--background-color, #fafafa) calc(64px + env(safe-area-inset-bottom)) 100%
    );
  }

  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    min-height: 64px;
    border-top: 1px solid var(--nav-border-color, #34495e);
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: none;
    border-bottom: none;
    padding: 0.9rem 0.5rem;
  }

  .nav a:last-child {
    border-right: none;
  }

  .nav-icon {
    margin-right: 0;
    font-size: 1.35rem;
    line-height: 1;
  }

  .nav-label {
    display: none;
  }

  .content {
    padding-bottom: 88px;
  }
}

/* Card Components */
.card {
  border: 1px solid var(--card-border, #ddd);
  background-color: var(--card-bg, #ffffff);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem auto;
  max-width: 600px;
  border-width: 1px;
  border-style: solid;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.card-body {
  padding: 1.25rem;
}

.card-text {
  margin-bottom: 0.5rem;
}

.text-muted {
  color: var(--text-muted, #6b7280);
}


.card-img-bottom {
  width: 100%;
  min-height: 250px;
}

.modebar {
    display: none !important;
}

.mapboxgl-ctrl-attrib {
    display: none !important;
}
