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

html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #212529;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  color: #28a745;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: #212529;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.main-nav a:hover {
  background-color: #f8f9fa;
}
.main-nav a.logout {
  color: #dc3545;
}

.main-footer {
  margin-top: auto;
  padding: 2rem 0;
  background-color: #343a40;
  color: white;
  text-align: center;
  flex-shrink: 0;
}

.btn, .user-info-content .lots-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-primary, .user-info-content .lots-link {
  background-color: #28a745;
  color: white;
  width: fit-content;
}
.btn-primary:hover, .user-info-content .lots-link:hover {
  background-color: #218838;
}

.btn-compact, .user-info-content .lots-link {
  padding: 0.1rem 1.5rem;
}

.btn-secondary {
  background-color: #17a2b8;
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: #343a40;
}

.badge-danger {
  background-color: #dc3545;
  color: white;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.form-group input[type=email],
.form-group input[type=text],
.form-group input[type=date],
.form-group input[type=time],
.form-group input[type=number],
.form-group input[type=password],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
  color: #212529;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type=email]:focus,
.form-group input[type=text]:focus,
.form-group input[type=date]:focus,
.form-group input[type=time]:focus,
.form-group input[type=number]:focus,
.form-group input[type=password]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group input[type=email]:hover,
.form-group input[type=text]:hover,
.form-group input[type=date]:hover,
.form-group input[type=time]:hover,
.form-group input[type=number]:hover,
.form-group input[type=password]:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: #adb5bd;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.checkbox-wrapper input[type=checkbox] {
  width: auto;
}

.help-text {
  text-align: center;
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}
.help-text a {
  color: #28a745;
  text-decoration: none;
}

form {
  max-width: 600px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.actions-group {
  display: flex;
  gap: 0.5rem;
}

#login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #28a745 0%, #17a2b8 100%);
}

.login-container {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}
.login-container h1 {
  color: #28a745;
  text-align: center;
  margin-bottom: 0.5rem;
}
.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #212529;
}

.logo-login {
  text-align: center;
  margin-bottom: 1.5rem;
}
.logo-login .logo-img {
  height: 60px;
  width: auto;
  margin: 0 auto;
}

.logo-welcome .logo-img {
  height: 120px;
  width: auto;
  margin: 0 auto;
}

.dashboard {
  padding: 2rem 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dashboard-card h3 {
  margin-bottom: 1rem;
  color: #28a745;
}
.dashboard-card .stat {
  font-size: 2rem;
  font-weight: bold;
  color: #212529;
}

.list-container {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.list-header h2 {
  color: #212529;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}
.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.table tr:hover {
  background-color: #f8f9fa;
}

.user-info-banner {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
  margin-top: 80px;
}

.user-info-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-info-content .user-name {
  font-weight: 600;
  font-size: 1rem;
  color: #212529;
  display: block;
}
.user-info-content .copropriete-name {
  color: #6c757d;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.user-info-content .lots-link {
  margin-left: 0.75rem;
}
.user-info-content .edit-icon-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #6c757d;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.7;
}
.user-info-content .edit-icon-link:hover {
  color: #007bff;
  opacity: 1;
  background-color: rgba(0, 123, 255, 0.1);
}
