/* AgSoil IQ Custom Styles */

:root {
  /* Updated colors to match the mockup */
  --teal-primary: #17c7ba;  /* Brighter teal from mockup */
  --teal-dark: #0fa69b;
  --teal-light: #7FD9D2;
  --brown-primary: #8B684A;
  --brown-dark: #6D4E33;
  --brown-light: #B09A86;
  --agrisoft-green: #A2D45E;
  --agrisoft-blue: #2B5471;
  --green-primary: #0e8a62; /* Dark green for buttons */
  --green-dark: #0a6e4e;    /* Darker green for button hover */
  --text-color: #333;
  --light-gray: #f1f1f1;
  --white: #FFFFFF;
}

/* Brand logo styling */
.brand-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.agrisoft-logo {
  height: 60px;
  max-width: 100%;
}

/* Rest of existing styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #f8f9fa;
}

/* Navbar styling - white background with teal text */
.navbar {
  background-color: var(--white);
  padding: 0.8rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-link {
  color: var(--teal-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-link.active {
  font-weight: 700;
  color: var(--teal-dark) !important;
}

.navbar-toggler {
  border-color: var(--teal-primary);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(23, 199, 186, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.card {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Card header styling to match the previous page header */
.card .card-header {
  background-color: #00c3b5 !important;
  border-bottom: none;
  padding: 1.5rem;
}

.card-header h1 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.card-header .lead {
  font-size: 1rem;
  opacity: 0.9;
}

.form-control, .form-select, .input-group-text {
  border-radius: 5px;
  padding: 10px 15px;
  border-color: #ddd;
}

.form-control:focus, .form-select:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 0.25rem rgba(23, 199, 186, 0.25);
}

/* Custom button class */
.agsoil-btn {
  background-color: #0e8a62 !important;
  border-color: #0e8a62 !important;
  color: white !important;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.agsoil-btn:hover {
  background-color: #0a6e4e !important;
  border-color: #0a6e4e !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Page header - use a stronger background color */
.page-header {
  background-color: #00c3b5;
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1.1rem;
  opacity: 0.9;
}

footer {
  background-color: var(--agrisoft-blue) !important;
  color: white !important;
}

.brand-highlight {
  color: var(--teal-primary);
  font-weight: 600;
}

/* Parameter Breakdown Table Styling */
.table th:first-child {
  text-align: left;
}

.table th:nth-child(2),
.table th:nth-child(3),
.table th:nth-child(4),
.table td:nth-child(2),
.table td:nth-child(3),
.table td:nth-child(4) {
  text-align: center;
}

/* Gauge Chart Styling */
.gauge-container {
    position: relative;
    margin: 0 auto;
    max-width: 300px;
    padding-top: 20px;
}

.gauge-arc {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(to right, 
        #e03946 0%, 
        #e03946 20%, 
        #f05e23 20%, 
        #f05e23 40%, 
        #f9bc00 40%, 
        #f9bc00 60%,
        #b7d34c 60%,
        #b7d34c 80%,
        #38b44a 80%,
        #38b44a 100%
    );
    border-radius: 100px 100px 0 0;
}

.gauge-needle {
    position: absolute;
    width: 100px;
    height: 2px;
    background-color: #333;
    top: 100px;
    left: 50%;
    transform-origin: left center;
    transform: rotate(0deg);
    z-index: 2;
}

.gauge-needle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    left: -3px;
    top: -2px;
}

.score-display {
    text-align: center;
    margin-top: 35px;
}

.score-percentage {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1;
}

.score-text {
    margin-top: 5px;
    font-size: 16px;
}

/* Legend styling */
.gauge-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 10px;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 2px;
}

.legend-label {
    font-size: 13px;
    font-weight: 500;
}

/* Add these styles to ensure consistent spacing */
.form-label {
    margin-bottom: 0.25rem;
}

.form-text {
    margin-top: 0.25rem;
}

.row + .row {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Ensure consistent spacing for the standalone Mo field */
.micronutrient-row:last-child {
    margin-bottom: 0;
}

/* Add proper spacing between major form sections */
.form-section {
    margin-bottom: 1.5rem;
}

/* Consistent button margin */
.d-grid {
    margin-top: 1rem;
}

/* Disclaimer modal styling */
.modal-header {
    background-color: var(--green-primary);
    color: white;
    border-bottom: none;
}

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}