/* PWA Base Styles */
.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.app-header {
  background-color: #2e7d32;
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content h1 {
  margin: 0;
  font-size: 1.5rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Navigation Styles */
.main-navigation {
  background-color: #388e3c;
  padding: 0.5rem 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-navigation li {
  margin-right: 2rem;
}

.main-navigation a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.main-navigation a:hover,
.main-navigation a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.login-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-form h3 {
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: normal;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #1b5e20;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2e7d32;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dashboard */
.dashboard {
  text-align: center;
  padding: 2rem;
}

.dashboard h2 {
  color: #2e7d32;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-content h1 {
    font-size: 1.2rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .main-navigation li {
    margin-right: 0;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .login-form {
    margin: 1rem;
  }
}

/* PWA specific styles */
@media (display-mode: standalone) {
  .app-header {
    padding-top: env(safe-area-inset-top);
  }
}

/* Authentication Styles */

/* Enhanced Login Form */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.login-header h3 {
  color: #388e3c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: normal;
}

.login-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.login-footer p {
  color: #888;
  font-size: 0.8rem;
  margin: 0;
}

/* Form Validation Styles */
.form-group input.error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.field-error {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border-left: 4px solid #d32f2f;
  position: relative;
}

.error-message button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #c62828;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced Header with User Menu */
.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.header-right {
  position: relative;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-menu-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-name {
  font-weight: 500;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.8;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  margin-top: 0.5rem;
}

.user-menu-dropdown .user-info {
  padding: 1rem;
  color: #333;
}

.user-menu-dropdown .user-info p {
  margin: 0.25rem 0;
}

.user-menu-dropdown hr {
  margin: 0;
  border: none;
  border-top: 1px solid #eee;
}

.logout-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s;
}

.logout-button:hover {
  background-color: #ffebee;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

/* Enhanced Navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-item {
  margin-right: 1rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-icon {
  font-size: 1.1rem;
}

.nav-label {
  font-size: 0.9rem;
}

/* User Management Styles */
.user-management {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.page-header h2 {
  color: #2e7d32;
  margin: 0;
}

/* Button Styles */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #2e7d32;
  color: white;
}

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

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

.btn-secondary:hover {
  background-color: #424242;
}

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

.btn-danger:hover {
  background-color: #b71c1c;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

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

/* User Form */
.user-form-container {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.user-form h3 {
  color: #2e7d32;
  margin-bottom: 1.5rem;
}

.user-form .form-group {
  margin-bottom: 1.5rem;
}

.user-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: white;
}

.user-form select:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

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

/* Users Table */
.users-table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.users-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.users-table tr:hover {
  background-color: #f9f9f9;
}

/* Role and Status Badges */
.role-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.role-administrador {
  background-color: #e3f2fd;
  color: #1565c0;
}

.role-regente {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.role-técnico-de-campo {
  background-color: #fff3e0;
  color: #f57c00;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.active {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.status-badge.inactive {
  background-color: #ffebee;
  color: #d32f2f;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Access Denied */
.access-denied {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #fff3e0;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
}

.access-denied-content h2 {
  color: #e65100;
  margin-bottom: 1rem;
}

.access-denied-content p {
  color: #bf360c;
  margin-bottom: 0.5rem;
}

.back-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #f57c00;
}

/* No Users Message */
.no-users {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Dashboard Welcome */
.user-welcome {
  background-color: #e8f5e8;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid #2e7d32;
}

.user-welcome p {
  margin: 0.5rem 0;
  color: #1b5e20;
}

/* Responsive Design for Auth Components */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-left {
    align-items: center;
    text-align: center;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-item {
    margin-right: 0;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .users-table-container {
    overflow-x: auto;
  }
  
  .users-table {
    min-width: 600px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .user-menu-dropdown {
    right: auto;
    left: 0;
  }
}

@media (max-width: 480px) {
  .login-form {
    padding: 1.5rem;
  }
  
  .user-form-container {
    padding: 1rem;
  }
  
  .main-content {
    padding: 1rem;
  }
}
/* Pr
oject Management Styles */

/* Project Form Styles */
.project-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h2 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.form-description {
  color: #666;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-label.required::after {
  content: " *";
  color: #d32f2f;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.form-input.error,
.form-select.error {
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.error-message {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.submit-message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.submit-message.success {
  background-color: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.submit-message.error {
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #f44336;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Project List Styles */
.project-list {
  max-width: 1200px;
  margin: 0 auto;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.header-title h2 {
  color: #2e7d32;
  margin: 0 0 0.5rem 0;
}

.header-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Filters Section */
.filters-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.filter-input,
.filter-select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #2e7d32;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-count {
  color: #666;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
}

/* Loading and Error States */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2e7d32;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.error-message-container {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.no-data {
  text-align: center;
  padding: 3rem;
  color: #666;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Projects Table */
.table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.table-responsive {
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th,
.projects-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.projects-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
}

.project-row {
  cursor: pointer;
  transition: background-color 0.3s;
}

.project-row:hover {
  background-color: #f9f9f9;
}

.project-name strong {
  color: #2e7d32;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.department {
  font-weight: 500;
  color: #333;
}

.municipality,
.village {
  font-size: 0.9rem;
  color: #666;
}

.date {
  font-size: 0.9rem;
  color: #666;
}

.actions {
  text-align: center;
}

/* Mobile Cards (hidden on desktop) */
.mobile-cards {
  display: none;
}

.project-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.project-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.card-title {
  color: #2e7d32;
  margin: 0;
  font-size: 1.1rem;
}

.card-content {
  padding: 1rem;
}

.card-field {
  display: flex;
  margin-bottom: 0.5rem;
}

.field-label {
  font-weight: 500;
  color: #333;
  min-width: 80px;
  margin-right: 0.5rem;
}

.field-value {
  color: #666;
  flex: 1;
}

/* Project Details Styles */
.project-details {
  max-width: 1000px;
  margin: 0 auto;
}

.details-header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-title h1 {
  color: #2e7d32;
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.project-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

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

.details-grid {
  display: grid;
  gap: 2rem;
}

.details-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.details-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.details-section.full-width {
  grid-column: 1 / -1;
}

.section-title {
  color: #2e7d32;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  border-bottom: 2px solid #e8f5e8;
  padding-bottom: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.info-value {
  color: #666;
  font-size: 1rem;
}

/* Documents Section */
.documents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.document-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: #fafafa;
}

.document-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.document-title {
  color: #333;
  margin: 0;
  font-size: 1.1rem;
}

.document-status {
  font-size: 0.9rem;
  font-weight: 500;
}

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

.document-controls {
  display: flex;
  gap: 0.5rem;
}

/* Statistics Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.stat-label {
  font-weight: 500;
  color: #333;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2e7d32;
}

/* Document Upload Styles */
.document-upload {
  max-width: 500px;
  margin: 0 auto;
}

.upload-header {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-header h3 {
  color: #2e7d32;
  margin: 0 0 0.5rem 0;
}

.upload-description {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.file-drop-zone {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  background-color: #fafafa;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: #2e7d32;
  background-color: #f1f8e9;
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.drop-zone-icon {
  font-size: 3rem;
  color: #2e7d32;
}

.drop-zone-text {
  color: #333;
  font-size: 1.1rem;
  margin: 0;
}

.click-text {
  color: #2e7d32;
  font-weight: 500;
}

.drop-zone-requirements {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.selected-file {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: white;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-icon {
  font-size: 2rem;
  color: #2e7d32;
}

.file-details {
  flex: 1;
}

.file-name {
  color: #333;
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.file-size,
.file-type {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.remove-file-btn:hover {
  background-color: #ffebee;
}

.upload-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #2e7d32;
  transition: width 0.3s;
}

.progress-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
}

.upload-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.upload-requirements {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.upload-requirements h4 {
  color: #333;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.upload-requirements ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.upload-requirements li {
  margin-bottom: 0.25rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

/* Responsive Design for Project Management */
@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .list-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .table-container {
    display: none;
  }
  
  .mobile-cards {
    display: block;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .header-actions {
    justify-content: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .upload-actions {
    flex-direction: column;
  }
  
  .document-actions {
    flex-direction: column;
  }
  
  .document-controls {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .project-form,
  .details-header,
  .details-content {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .file-drop-zone {
    padding: 2rem 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* 
Rodales Management Styles */
.rodales-manager {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-link {
  background: none;
  border: none;
  color: #2e7d32;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.breadcrumb-link:hover {
  color: #1b5e20;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #666;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* Rodal List Styles */
.rodal-list {
  width: 100%;
}

.list-header {
  margin-bottom: 1.5rem;
}

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

.header-title h2 {
  margin: 0 0 0.25rem 0;
  color: #2e7d32;
}

.project-name {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.list-summary {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.summary-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e7d32;
}

.rodales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rodal-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}

.rodal-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.rodal-name {
  margin: 0;
  color: #2e7d32;
  font-size: 1.1rem;
}

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

.card-content {
  margin-bottom: 1rem;
}

.rodal-info {
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.info-label {
  font-size: 0.9rem;
  color: #666;
}

.info-value {
  font-weight: 500;
}

.info-value.area {
  color: #2e7d32;
  font-weight: 600;
}

.rodal-stats {
  display: flex;
  gap: 1rem;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  min-width: 60px;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e7d32;
}

.stat-badge .stat-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

/* Rodal Form Styles */
.rodal-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h3 {
  margin: 0 0 0.5rem 0;
  color: #2e7d32;
}

.form-description {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-label.required::after {
  content: " *";
  color: #d32f2f;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.form-input.error {
  border-color: #d32f2f;
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #666;
}

.error-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #d32f2f;
}

.warning-message {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.warning-message h4 {
  margin: 0 0 0.5rem 0;
  color: #856404;
}

.warning-message ul {
  margin: 0;
  padding-left: 1.5rem;
}

.warning-message li {
  color: #856404;
  margin-bottom: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.form-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #2e7d32;
}

.form-info h4 {
  margin: 0 0 1rem 0;
  color: #2e7d32;
}

.form-info ul {
  margin: 0;
  padding-left: 1.5rem;
}

.form-info li {
  margin-bottom: 0.5rem;
  color: #555;
}

/* Rodal Details Styles */
.rodal-details {
  width: 100%;
}

.details-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.rodal-subtitle {
  margin: 0.5rem 0 0 0;
  color: #666;
  font-size: 1rem;
  font-weight: normal;
}

.details-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: #2e7d32;
  background-color: #f5f5f5;
}

.tab-button.active {
  color: #2e7d32;
  border-bottom-color: #2e7d32;
  font-weight: 500;
}

.tab-content {
  min-height: 400px;
}

.overview-tab {
  width: 100%;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.details-section.full-width {
  grid-column: 1 / -1;
}

.section-title {
  margin: 0 0 1rem 0;
  color: #2e7d32;
  font-size: 1.1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sync-status {
  display: grid;
  gap: 0.75rem;
}

.sync-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.sync-label {
  font-size: 0.9rem;
  color: #666;
}

.sync-value {
  font-weight: 500;
}

.sync-value.success {
  color: #2e7d32;
}

.sync-value.warning {
  color: #f57c00;
}

/* Calculations Tab Styles */
.calculations-tab {
  width: 100%;
}

.calculations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.calc-section.full-width {
  grid-column: 1 / -1;
}

.calc-items {
  display: grid;
  gap: 1rem;
}

.calc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.calc-item.highlight {
  background-color: #e8f5e8;
  border: 1px solid #c8e6c9;
}

.calc-item label {
  font-weight: 500;
  color: #333;
}

.calc-item span {
  font-weight: 600;
  color: #2e7d32;
}

.species-table {
  overflow-x: auto;
}

.species-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.species-table th,
.species-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.species-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.species-info strong {
  display: block;
  color: #2e7d32;
}

.species-info small {
  color: #666;
  font-style: italic;
}

.no-calculations {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Field Data Tab Styles */
.fielddata-tab {
  width: 100%;
}

.fielddata-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fielddata-summary {
  color: #666;
  font-size: 0.9rem;
}

.fielddata-table {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fielddata-table table {
  width: 100%;
  border-collapse: collapse;
}

.fielddata-table th,
.fielddata-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.fielddata-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
}

.species-cell strong {
  display: block;
  color: #2e7d32;
}

.species-cell small {
  color: #666;
  font-style: italic;
}

.condition-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.condition-badge.sano {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.condition-badge.bifurcado {
  background-color: #fff3cd;
  color: #856404;
}

.condition-badge.plagado {
  background-color: #f8d7da;
  color: #721c24;
}

.condition-badge.muerto-en-pie {
  background-color: #d1ecf1;
  color: #0c5460;
}

.sync-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sync-badge.sincronizado {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.sync-badge.pendiente {
  background-color: #fff3cd;
  color: #856404;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  font-size: 0.9rem;
  color: #666;
}

.no-fielddata {
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty-state h3 {
  margin: 1rem 0;
  color: #333;
}

.empty-state p {
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Info Panel */
.info-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
}

.info-panel h4 {
  margin: 0 0 1rem 0;
  color: #2e7d32;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.5rem;
}

.info-panel li {
  margin-bottom: 0.5rem;
  color: #555;
}

.info-panel strong {
  color: #2e7d32;
}

/* Access Control */
.access-info {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #e3f2fd;
  border-radius: 4px;
  border-left: 4px solid #2196f3;
}

.access-info p {
  margin: 0;
  color: #1565c0;
  font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-overlay p {
  margin-top: 1rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rodales-manager {
    padding: 0.5rem;
  }
  
  .rodales-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .summary-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .calculations-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .details-tabs {
    flex-wrap: wrap;
  }
  
  .tab-button {
    flex: 1;
    min-width: 120px;
  }
  
  .fielddata-table {
    font-size: 0.9rem;
  }
  
  .fielddata-table th,
  .fielddata-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .rodal-form {
    padding: 1rem;
  }
  
  .card-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .card-actions {
    align-self: stretch;
    justify-content: space-between;
  }
  
  .breadcrumb {
    flex-wrap: wrap;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}
/
* Tree Form Styles */
.tree-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
}

.form-header h3 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

/* GPS Status Styles */
.gps-status {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.gps-loading {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.gps-success small {
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}

.gps-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.retry-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.retry-btn:hover {
  background: #c82333;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Fields */
.tree-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tree-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-form .form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.tree-form .form-group input,
.tree-form .form-group select {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.tree-form .form-group input:focus,
.tree-form .form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.tree-form .form-group input.error,
.tree-form .form-group select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.tree-form .form-group input::placeholder {
  color: #6c757d;
  opacity: 0.8;
}

/* Form Actions */
.tree-form .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.tree-form .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.tree-form .btn-primary {
  background-color: #007bff;
  color: white;
}

.tree-form .btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.tree-form .btn-secondary {
  background-color: #6c757d;
  color: white;
}

.tree-form .btn-secondary:hover:not(:disabled) {
  background-color: #545b62;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.tree-form .btn-warning {
  background-color: #ffc107;
  color: #212529;
}

.tree-form .btn-warning:hover:not(:disabled) {
  background-color: #e0a800;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Modal Styles for Tree Form */
.tree-form .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.tree-form .modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.tree-form .modal-header {
  padding: 20px 20px 0 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tree-form .modal-header h4 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-form .modal-body {
  padding: 20px;
}

.tree-form .modal-body p {
  margin: 0;
  color: #495057;
  line-height: 1.5;
}

.tree-form .modal-actions {
  padding: 0 20px 20px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.tree-form .atypical-alert {
  border-left: 4px solid #ffc107;
}

/* Validation Feedback */
.tree-form .validation-feedback {
  font-size: 0.875rem;
  margin-top: 4px;
}

.tree-form .validation-feedback.error {
  color: #dc3545;
}

.tree-form .validation-feedback.warning {
  color: #856404;
}

.tree-form .validation-feedback.success {
  color: #28a745;
}

/* GPS Icons */
.gps-icon {
  font-size: 1.2rem;
}

.error-icon {
  font-size: 1.1rem;
}

/* Responsive Design for Tree Form */
@media (max-width: 768px) {
  .tree-form {
    margin: 10px;
    padding: 16px;
  }
  
  .tree-form .form-actions {
    flex-direction: column;
  }
  
  .tree-form .btn {
    width: 100%;
  }
  
  .tree-form .modal {
    margin: 10px;
  }
  
  .tree-form .modal-actions {
    flex-direction: column;
  }
}
/* Fiel
d App Styles - Mobile Optimized */
.field-app {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.field-header {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.field-header .header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.field-header .header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.field-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.connection-status {
  display: flex;
  align-items: center;
}

.status-indicator {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.status-indicator.online {
  background-color: rgba(76, 175, 80, 0.2);
}

.status-indicator.offline {
  background-color: rgba(244, 67, 54, 0.2);
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.link {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-item.link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item.active {
  color: white;
  font-weight: 500;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Main Content */
.field-content {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Selection Steps */
.selection-step {
  width: 100%;
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header h2 {
  color: #2e7d32;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.step-header p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.project-context {
  color: #666;
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
}

.project-context strong {
  color: #2e7d32;
}

/* Project and Rodal Cards */
.projects-grid,
.rodales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-card.mobile-optimized,
.rodal-card.mobile-optimized {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-card.mobile-optimized:hover,
.rodal-card.mobile-optimized:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: #2e7d32;
}

.project-card.mobile-optimized:active,
.rodal-card.mobile-optimized:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-card .card-header,
.rodal-card .card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card .card-header h3,
.rodal-card .card-header h3 {
  margin: 0;
  color: #2e7d32;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-date {
  font-size: 0.8rem;
  color: #666;
  background-color: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.rodal-area {
  font-size: 0.9rem;
  color: #2e7d32;
  font-weight: 600;
  background-color: #e8f5e8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.project-card .card-content,
.rodal-card .card-content {
  padding: 1rem 1.5rem;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-row .label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  min-width: 70px;
  flex-shrink: 0;
}

.info-row .value {
  font-size: 0.9rem;
  color: #333;
  flex: 1;
  line-height: 1.4;
}

.rodal-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.rodal-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  min-width: 70px;
}

.rodal-stats .stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.rodal-stats .stat-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

.project-card .card-footer,
.rodal-card .card-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.select-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.select-btn:hover {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.select-btn:active {
  transform: translateY(0);
}

/* Data Entry Step */
.data-entry-step {
  width: 100%;
}

.context-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
}

.context-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.context-item .label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.context-item .value {
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
}

/* Records Summary */
.records-summary {
  margin: 2rem 0;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #2e7d32;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-card .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Form Container */
.form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 2rem 0;
  overflow: hidden;
}

/* Recent Records */
.recent-records {
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.recent-records h3 {
  margin: 0;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  color: #2e7d32;
  font-size: 1.1rem;
  border-bottom: 1px solid #f0f0f0;
}

.records-list {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

.record-item:hover {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

.record-item:last-child {
  margin-bottom: 0;
}

.record-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.record-info .parcela {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
}

.record-info .especie {
  font-size: 0.8rem;
  color: #666;
}

.record-data {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.record-data .dap,
.record-data .altura {
  font-size: 0.8rem;
  color: #333;
  background-color: #e8f5e8;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.record-status {
  display: flex;
  align-items: center;
}

.record-status .status {
  font-size: 1.2rem;
}

.record-status .status.pendiente {
  color: #ff9800;
}

.record-status .status.sincronizado {
  color: #4caf50;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.empty-state p {
  color: #666;
  margin: 0 0 2rem 0;
  line-height: 1.5;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Access Denied */
.access-denied {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 2rem auto;
  max-width: 500px;
}

.access-denied-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.access-denied h2 {
  color: #d32f2f;
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.access-denied p {
  color: #666;
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* Error Messages */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #d32f2f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Success Notifications */
.field-notification {
  position: fixed;
  top: 100px;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  font-weight: 500;
  animation: slideInRight 0.3s ease-out;
}

.field-notification.success {
  background-color: #e8f5e8;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .field-header {
    padding: 0.75rem;
  }
  
  .field-header h1 {
    font-size: 1.2rem;
  }
  
  .field-content {
    padding: 0.75rem;
  }
  
  .projects-grid,
  .rodales-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .context-info {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .summary-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .stat-card .stat-number {
    font-size: 2rem;
  }
  
  .record-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .record-data {
    justify-content: center;
  }
  
  .breadcrumb {
    flex-wrap: wrap;
  }
  
  .field-notification {
    right: 0.5rem;
    left: 0.5rem;
    top: 80px;
  }
}

@media (max-width: 480px) {
  .field-header {
    padding: 0.5rem;
  }
  
  .field-content {
    padding: 0.5rem;
  }
  
  .project-card .card-header,
  .rodal-card .card-header,
  .project-card .card-content,
  .rodal-card .card-content,
  .project-card .card-footer,
  .rodal-card .card-footer {
    padding: 1rem;
  }
  
  .step-header h2 {
    font-size: 1.3rem;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-icon {
    font-size: 3rem;
  }
  
  .access-denied {
    padding: 2rem 1rem;
  }
  
  .access-denied-icon {
    font-size: 3rem;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
  }
}

/* PWA Specific Styles */
@media (display-mode: standalone) {
  .field-header {
    padding-top: calc(env(safe-area-inset-top) + 1rem);
  }
  
  .field-app {
    min-height: 100vh;
    min-height: calc(100vh - env(safe-area-inset-bottom));
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .project-card.mobile-optimized,
  .rodal-card.mobile-optimized,
  .stat-card,
  .form-container,
  .recent-records,
  .empty-state {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }
  
  .project-card.mobile-optimized:hover,
  .rodal-card.mobile-optimized:hover,
  .stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .field-app {
    background-color: #121212;
  }
  
  .project-card.mobile-optimized,
  .rodal-card.mobile-optimized,
  .stat-card,
  .form-container,
  .recent-records,
  .empty-state {
    background-color: #1e1e1e;
    color: #ffffff;
  }
  
  .step-header h2 {
    color: #4caf50;
  }
  
  .context-info {
    background-color: #2e2e2e;
  }
}
/* =======
============= SYNC BUTTON STYLES ==================== */

.sync-button-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sync-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sync-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sync-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Button sizes */
.sync-button.small {
  padding: 6px 12px;
  font-size: 12px;
}

.sync-button.medium {
  padding: 8px 16px;
  font-size: 14px;
}

.sync-button.large {
  padding: 12px 20px;
  font-size: 16px;
}

/* Button states */
.sync-button.synced {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.sync-button.pending {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #d97706;
  animation: pulse-pending 2s infinite;
}

.sync-button.syncing {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.sync-button.error {
  border-color: #ef4444;
  background: #fef2f2;
  color: #dc2626;
}

/* Sync icon */
.sync-icon {
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

.sync-button.syncing .sync-icon {
  animation: spin 1s linear infinite;
}

/* Sync spinner */
.sync-spinner {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.sync-spinner .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Progress bar */
.sync-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
  transition: width 0.3s ease;
  animation: progress-shimmer 1.5s infinite;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.progress-count {
  font-weight: 500;
  color: #374151;
}

/* Status information */
.sync-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-label {
  font-weight: 500;
}

.status-value {
  color: #374151;
}

.status-value.online {
  color: #15803d;
}

.status-value.offline {
  color: #dc2626;
}

.pending-count {
  color: #d97706;
  font-weight: 500;
}

/* Error display */
.sync-error {
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.error-icon {
  font-size: 16px;
}

.error-text {
  flex: 1;
  font-size: 14px;
}

.error-actions {
  display: flex;
  gap: 8px;
}

.retry-button, .dismiss-button {
  padding: 4px 8px;
  border: 1px solid #dc2626;
  border-radius: 4px;
  background: white;
  color: #dc2626;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-button:hover, .dismiss-button:hover {
  background: #dc2626;
  color: white;
}

.retry-info {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

/* Details section */
.sync-details {
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

.details-toggle {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.details-toggle:hover {
  color: #374151;
}

.details-content {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.detail-label {
  color: #6b7280;
}

.detail-value {
  color: #374151;
  font-weight: 500;
}

/* Field app specific styles */
.field-sync-btn {
  min-width: 120px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-container {
  display: flex;
  align-items: center;
}

/* Animations */
@keyframes pulse-pending {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes progress-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 400px 0; }
}

.progress-fill {
  background: linear-gradient(
    90deg,
    #3b82f6 0%,
    #60a5fa 50%,
    #3b82f6 100%
  );
  background-size: 200px 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sync-button {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .sync-button.small {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  
  .sync-status {
    display: none; /* Hide detailed status on mobile */
  }
}/* 
Floating Sync Button */
.floating-sync {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: white;
  padding: 8px;
}

.floating-sync-btn {
  border-radius: 8px;
  box-shadow: none;
  min-width: 140px;
}

.floating-sync-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Field App Header Adjustments */
.field-header .header-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-header .header-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.field-header .header-title h1 {
  margin: 0;
  color: #2e7d32;
}

.field-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.connection-status {
  display: flex;
  align-items: center;
}

.status-indicator {
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.status-indicator.online {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.status-indicator.offline {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Breadcrumb styles */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: #666;
}

.breadcrumb-item.link {
  background: none;
  border: none;
  color: #2e7d32;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}

.breadcrumb-item.link:hover {
  color: #1b5e20;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #999;
}

/* Mobile responsive adjustments for field app */
@media (max-width: 768px) {
  .field-header .header-title {
    flex-direction: column;
    align-items: stretch;
  }
  
  .field-header .header-actions {
    justify-content: space-between;
  }
  
  .floating-sync {
    bottom: 15px;
    right: 15px;
  }
  
  .floating-sync-btn {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .field-header .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .sync-container {
    justify-content: center;
  }
  
  .floating-sync {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .floating-sync-btn {
    width: 100%;
    min-width: auto;
  }
}/* ===
================= DASHBOARD STYLES ==================== */

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8f5e8;
}

.welcome-section h1 {
  margin: 0 0 0.5rem 0;
  color: #2e7d32;
  font-size: 2.5rem;
}

.welcome-message {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #333;
}

.system-title {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.sync-section {
  display: flex;
  align-items: center;
}

.dashboard-sync-btn {
  min-width: 160px;
}

/* User Info Card */
.user-info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2e7d32;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.user-data h3 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1.3rem;
}

.user-role {
  margin: 0 0 0.25rem 0;
  color: #2e7d32;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-email {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.connection-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.status-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.last-sync {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.sync-label {
  font-size: 0.8rem;
  color: #666;
}

.sync-time {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card.pending {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.stat-card.synced {
  border-left: 4px solid #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 0.25rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 2rem;
}

.quick-actions h3 {
  margin: 0 0 1.5rem 0;
  color: #2e7d32;
  font-size: 1.3rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.action-content h4 {
  margin: 0 0 0.5rem 0;
  color: #2e7d32;
  font-size: 1.1rem;
}

.action-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* System Status */
.system-status {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.system-status h3 {
  margin: 0 0 1.5rem 0;
  color: #2e7d32;
  font-size: 1.3rem;
}

.status-grid {
  display: grid;
  gap: 1rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.status-label {
  font-weight: 500;
  color: #333;
}

.status-value {
  font-weight: 500;
}

.status-value.success {
  color: #22c55e;
}

.status-value.warning {
  color: #f59e0b;
}

/* Responsive Design for Dashboard */
@media (max-width: 1024px) {
  .dashboard {
    padding: 1.5rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .sync-section {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard {
    padding: 1rem;
  }
  
  .welcome-section h1 {
    font-size: 2rem;
  }
  
  .user-info-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .user-details {
    flex-direction: column;
    text-align: center;
  }
  
  .connection-info {
    align-items: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .status-grid {
    gap: 0.5rem;
  }
  
  .status-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dashboard {
    padding: 0.5rem;
  }
  
  .welcome-section h1 {
    font-size: 1.5rem;
  }
  
  .stat-card,
  .action-card {
    padding: 1rem;
  }
  
  .user-info-card {
    padding: 1rem;
  }
  
  .system-status {
    padding: 1rem;
  }
}