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

/* Only transitions for interactive elements */
.btn, .nav-link, .input-group input, .input-group textarea, .input-group select {
    transition: all 0.2s ease;
}

/* Loading animation for satellite */
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #F1F8E9 0%, #E8F5E9 50%, #C8E6C9 100%);
    color: #1B5E20;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

.nav {
    background: rgba(232, 245, 233, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
    border-bottom: 1px solid rgba(200, 230, 201, 0.3);
    max-width: 100%;
    overflow-x: auto;
}

.nav-logo {
    color: #1B5E20;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.2em;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: #2E7D32;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #1B5E20;
    background: rgba(129, 199, 132, 0.15);
}

.soil-header {
    background: linear-gradient(135deg, #8D6E63 0%, #A1887F 50%, #6D4C41 100%);
    padding: 120px 40px 80px;
    text-align: center;
    color: #F5F5DC;
    position: relative;
    overflow: hidden;
}

.soil-header h1 {
    font-family: 'Playfair Display', serif;
}

.soil-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px;
    opacity: 0.3;
}

.soil-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(69, 90, 100, 0.3));
}

.hero {
    background: linear-gradient(135deg, #8D6E63 0%, #A1887F 100%);
    padding: 120px 40px 80px;
    text-align: center;
    color: #F5F5DC;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.step-content {
    position: relative;
    min-height: 500px;
    overflow: visible;
}

.step-panel {
    position: relative;
    width: 100%;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(200, 230, 201, 0.3);
    padding: 40px;
    margin-bottom: 20px;
}

.step-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 10;
}

.step-panel.previous {
    opacity: 0;
    transform: translateX(-20%) scale(0.95);
    pointer-events: none;
    z-index: 5;
}

.step-panel.completed {
    opacity: 0;
    transform: translateX(-40%) scale(0.9);
    pointer-events: none;
    z-index: 3;
}

.step-panel h3 {
    color: #1B5E20;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.step-panel p {
    color: #2E7D32;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.hero-icon {
    font-size: 40px;
    color: #4CAF50;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    position: relative;
    z-index: 1;
}

.hero-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 60px 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 36px;
    margin-bottom: 20px;
    color: #2E7D32;
}

.section {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: white;
    padding: 20px;
}

.section#analysis {
    background: linear-gradient(180deg, #f1f8e9 0%, #e8f5e9 50%, #f5f5f5 100%);
    padding: 20px;
}

.section#map {
    background: white;
}

.section#cabinet {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2E7D32;
    font-size: 20px;
    margin-bottom: 10px;
}

.feature p {
    color: #424242;
    font-size: 18px;
}

.panel {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.panel-header {
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 100%);
    padding: 20px 30px;
}

.panel-header h2 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
}

.panel-body {
    padding: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2E7D32;
    font-size: 16px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(129, 199, 132, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.05);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(27, 94, 32, 0.4);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.input-group textarea {
    min-height: 80px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: white;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.btn-secondary:hover {
    background: rgba(76, 175, 80, 0.1);
}

.btn-success {
    background: #43A047;
    color: white;
}

.btn-success:hover {
    background: #388E3C;
}

.map-wrapper {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#map-container {
    height: 100%;
    width: 100%;
}

#leaflet-map {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.gis-layout {
    display: flex;
    height: calc(100vh - 120px);
    min-height: 500px;
    gap: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    max-width: 200px;
    background: rgba(232, 245, 233, 0.9);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.sidebar select {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.sidebar h3 {
    color: #2E7D32;
    margin-bottom: 10px;
    font-size: 16px;
}

.map-area {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.details-panel {
    width: 300px;
    background: rgba(232, 245, 233, 0.9);
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.details-panel h3 {
    color: #2E7D32;
    margin-bottom: 15px;
    font-size: 16px;
}

#point-info {
    font-size: 14px;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    color: #424242;
    font-size: 14px;
}

/* Защита от перекрытия карты */
.leaflet-container {
    position: relative !important;
    z-index: 1 !important;
}

.leaflet-pane {
    z-index: 1 !important;
}

.leaflet-top {
    z-index: 2 !important;
}

.leaflet-control-container {
    z-index: 2 !important;
}

.user-cabinet {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}

.cabinet-header {
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 100%);
    padding: 20px 30px;
}

.cabinet-header h2 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
}

.cabinet-body {
    padding: 30px;
}

.cabinet-point {
    background: white;
    border: 2px solid #A5D6A7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.cabinet-point:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cabinet-point h4 {
    color: #2E7D32;
    margin-bottom: 10px;
    font-size: 18px;
}

.cabinet-point p {
    color: #424242;
    font-size: 16px;
    margin: 5px 0;
}

.footer {
    background: linear-gradient(135deg, #455A64 0%, #64B5F6 100%);
    padding: 40px;
    text-align: center;
    color: #F5F5DC;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #F5F5DC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.footer p {
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    #leaflet-map {
        height: calc(100vh - 200px);
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 10px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 80px 20px 60px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .main {
        padding: 60px 20px 40px;
    }
    
    .hero,
    .analysis-section {
        padding: 40px 20px;
    }
    
    #leaflet-map {
        height: calc(100vh - 250px);
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    z-index: 10;
}

.close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Loading indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    color: #2E7D32;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-subtext {
    color: #666;
    font-size: 14px;
}

/* Progress bar */
.progress-container {
    width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10000;
    max-width: 300px;
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

#auth-forms h2 {
    color: #2E7D32;
    margin-bottom: 20px;
}

#auth-forms a {
    color: #66BB6A;
    text-decoration: none;
    cursor: pointer;
}

#auth-forms a:hover {
    text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .nav {
        padding: 10px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .step-panel {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .step-panel h3 {
        font-size: 1.4em;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .loading-content {
        padding: 20px;
        margin: 20px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cabinet-point {
        padding: 10px;
    }
    
    .cabinet-point img {
        max-height: 150px;
    }
    
    /* Mobile cabinet grid */
    .cabinet-point div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    
    /* Mobile buttons */
    .cabinet-point button {
        min-width: 80px;
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2em;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .step-panel {
        padding: 15px;
    }
    
    .step-panel h3 {
        font-size: 1.2em;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .button-group {
        gap: 8px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 10px;
    }
    
    .loading-content {
        padding: 15px;
        margin: 10px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .loading-subtext {
        font-size: 12px;
    }
}

/* Container and section improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    min-height: calc(100vh - 80px);
    padding: 20px 0;
}

/* ============================
   Form Card Design
   ============================ */
.form-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 230, 201, 0.5);
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.08);
    transition: box-shadow 0.2s ease;
}

.form-card:hover {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}

.form-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.15);
}

.form-card-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-card-title {
    color: #1B5E20;
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.form-card-hint {
    color: #78909C;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.field-help {
    display: block;
    color: #90A4AE;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

.optional-badge {
    background: #E8F5E9;
    color: #66BB6A;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
}

.btn-submit {
    font-size: 17px !important;
    padding: 14px 48px !important;
    border-radius: 14px !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.btn-submit:hover {
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

/* ============================
   Cabinet AI Report Card
   ============================ */
.ai-report {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(200, 230, 201, 0.5);
    box-shadow: 0 2px 16px rgba(76, 175, 80, 0.08);
}

.ai-report-header {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-report-header h4 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
}

.ai-report-body {
    padding: 24px;
}

.ai-report-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ai-report-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ai-report-label {
    font-size: 12px;
    font-weight: 600;
    color: #78909C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ai-report-value {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.ai-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.ai-metric {
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: #f8f9fa;
}

.ai-metric-label {
    font-size: 11px;
    color: #78909C;
    margin-bottom: 4px;
}

.ai-metric-value {
    font-size: 18px;
    font-weight: 700;
}

.ai-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px;
}

.ai-tag-risk {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.ai-tag-crop {
    background: rgba(76, 175, 80, 0.12);
    color: #2E7D32;
}

.ai-tag-ref {
    background: rgba(33, 150, 243, 0.08);
    color: #1565C0;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 8px;
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
}

.fertility-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.fertility-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Dynamics badge */
.dynamics-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.dynamics-badge-up {
    background: rgba(76, 175, 80, 0.12);
    color: #2E7D32;
}

.dynamics-badge-down {
    background: rgba(244, 67, 54, 0.12);
    color: #d32f2f;
}

.dynamics-badge-stable {
    background: rgba(33, 150, 243, 0.12);
    color: #1565C0;
}

/* Points filter specific styles */
#points-filter .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#points-filter h2 {
    color: #1B5E20;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.filter-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(200, 230, 201, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
}

.filter-card h3 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
}

.parameter-filter {
    margin-bottom: 15px;
}

.parameter-filter label {
    display: block;
    color: #2E7D32;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.parameter-filter input,
.parameter-filter select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(129, 199, 132, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.05);
}

.parameter-filter input:focus,
.parameter-filter select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.filter-results {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(200, 230, 201, 0.3);
}

.filter-results h3 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

#filter-results-content {
    min-height: 200px;
}

/* Points list specific styles */
#points-list .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#points-list h2 {
    color: #1B5E20;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.sort-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.sort-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(200, 230, 201, 0.3);
    max-width: 300px;
    width: 100%;
}

.sort-card h3 {
    color: #2E7D32;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

/* Cabinet specific styles */
#cabinet .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#cabinet h2 {
    color: #1B5E20;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* Improved point cards */
.cabinet-point {
    border: 1px solid #A5D6A7 !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
    background: white !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cabinet-point:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15) !important;
}

.cabinet-point h4 {
    color: #2E7D32 !important;
    margin-bottom: 15px !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
}

.cabinet-point img {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Touch-friendly styles */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .close:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .nav-link:active {
        background: rgba(129, 199, 132, 0.2);
    }
    
    .cabinet-point:hover {
        transform: none !important;
    }
}
