/* ==========================================================================
       SMART4DRIP PAGE STYLES - Ana sayfayla uyumlu, mobil öncelikli tasarım
       ========================================================================== */

    /* Layout fixes */
    body {
        min-height: auto !important;
        padding-bottom: 0 !important;
    }
    main.page-content {
        flex: 0 1 auto !important;
        padding-bottom: 0 !important;
    }
    main.page-content.container {
        width: 100% !important;
        max-width: none !important;
        padding-left: clamp(1rem, 4vw, 2.5rem) !important;
        padding-right: clamp(1rem, 4vw, 2.5rem) !important;
    }
    .site-footer {
        margin-top: 0 !important;
        padding-top: 1.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* İçerik kartını ortalamak için sade düzen */
    .smart4drip-rails {
        display: flex;
        justify-content: center;
        margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.8rem, 5vw, 2.6rem);
    }
    .smart4drip-rail {
        display: none;
    }
    .smart4drip-main {
        width: min(1100px, 100%);
        min-width: 0;
    }

    /* Form input optimizations */
    .collapsible-content {
        overflow: visible !important;
    }
    .form-grid {
        overflow: visible !important;
    }
    input[type="number"] {
        overflow: visible !important;
    }
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }
    input[type="number"] {
        appearance: textfield !important;
        -moz-appearance: textfield !important;
    }

    /* TAB BUTTONS - Ana sayfadaki hero CTA ile aynı stil */
    .smart4drip-subtab {
        position: relative !important;
        overflow: hidden !important;
        min-height: 48px !important; /* Mobil touch-friendly */
        padding: clamp(0.75rem, 2vw, 1rem) clamp(1.25rem, 3vw, 1.75rem) !important;
        border: 2px solid rgba(100, 181, 246, 0.24) !important;
        border-radius: 12px !important;
        background: rgba(17, 36, 74, 0.95) !important;
        color: #e6ecff !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        font-weight: 600 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
    }

    /* Active tab - Ana sayfa CTA ile aynı gradient */
    .smart4drip-subtab.is-active {
        border: 2px solid rgba(100, 181, 246, 0.42) !important;
        background: linear-gradient(135deg, #3f6fd7 0%, #1ac79b 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 24px rgba(63, 111, 215, 0.3) !important;
    }

    /* Hover effects */
    .smart4drip-subtab:not(.is-active):hover {
        border-color: rgba(100, 181, 246, 0.42) !important;
        background: rgba(25, 50, 95, 0.92) !important;
        color: #ffffff !important;
    }

    .smart4drip-subtab.is-active:hover {
        box-shadow: 0 12px 32px rgba(63, 111, 215, 0.34) !important;
        transform: translateY(-1px) !important;
    }

    .smart4drip-subtab:focus-visible {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.32) !important;
    }

    .smart4drip-subtabs {
        position: relative !important;
        overflow: visible !important;
    }

    .smart4drip-subtablist {
        display: grid !important;
        gap: clamp(0.75rem, 2vw, 1rem) !important;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    /* Mobil için tab butonları */
    @media (max-width: 640px) {
        .smart4drip-subtab {
            font-size: 0.85rem !important;
            padding: 0.85rem 1rem !important;
            letter-spacing: 0.04em !important;
        }
    }

    /* SU ANALİZİ GRID - Mobil öncelikli */
    .field-group--water .helper {
        color: #c5d4f0 !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        line-height: 1.6 !important;
        margin-bottom: clamp(0.75rem, 2vw, 1.25rem) !important;
    }

    .water-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }

    .water-grid label {
        padding: clamp(0.65rem, 1.5vw, 0.85rem) !important;
        background: rgba(16, 27, 48, 0.5) !important;
        border-radius: 10px !important;
        min-height: 44px !important; /* Touch-friendly mobil */
    }

    .water-grid span {
        text-transform: none !important;
        font-size: clamp(0.8rem, 1.8vw, 0.9rem) !important;
        font-weight: 600 !important;
        color: #e5ecff !important;
    }

    .water-grid input {
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        padding: clamp(0.5rem, 1.5vw, 0.65rem) !important;
        color: #ffffff !important;
    }

    /* Mobil: 2 kolon yan yana (çok önemli) */
    @media (max-width: 768px) {
        .water-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 0.6rem !important;
        }
        .water-grid label {
            padding: 0.7rem 0.6rem !important;
        }
    }

    @media (max-width: 480px) {
        .water-grid {
            gap: 0.5rem !important;
        }
        .water-grid label {
            padding: 0.6rem 0.5rem !important;
        }
    }

    /* SLIDER SECTION - Gelişim dönemi seçimi */
    .field-group--slider .helper {
        color: #c5d4f0 !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        line-height: 1.6 !important;
        margin-bottom: clamp(0.75rem, 2vw, 1.25rem) !important;
    }

    .slider-progress {
        color: #ffffff !important;
        font-size: clamp(0.95rem, 2.2vw, 1.1rem) !important;
        font-weight: 700 !important;
        margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }

    .slider-info {
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        margin-top: clamp(0.75rem, 2vw, 1rem) !important;
        gap: clamp(0.75rem, 2vw, 1.25rem) !important;
    }

    .slider-info span {
        color: #e5ecff !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        font-weight: 600 !important;
    }

    .slider-summary summary {
        color: #e5ecff !important;
        font-size: clamp(0.9rem, 2vw, 1.05rem) !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        padding: clamp(0.65rem, 1.5vw, 0.85rem) 0 !important;
        margin-top: clamp(0.75rem, 2vw, 1rem) !important;
    }

    .slider-summary ul {
        background: rgba(16, 27, 48, 0.5) !important;
        border: 1px solid rgba(100, 181, 246, 0.25) !important;
        border-radius: 12px !important;
        padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem) !important;
        margin-top: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }

    .slider-summary li {
        color: #c5d4f0 !important;
        font-size: clamp(0.85rem, 2vw, 0.95rem) !important;
        line-height: 1.7 !important;
    }

    /* RATIO PANEL - Oran kontrolleri */
    .ratio-panel summary {
        color: #ffffff !important;
        font-size: clamp(0.95rem, 2.2vw, 1.1rem) !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        padding: clamp(0.75rem, 2vw, 1rem) 0 !important;
    }

    .ratio-panel .helper {
        color: #c5d4f0 !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        line-height: 1.6 !important;
        margin-bottom: clamp(0.75rem, 2vw, 1.25rem) !important;
    }

    .visual-ratio-chip-target {
        display: block !important;
        font-size: clamp(0.75rem, 1.8vw, 0.85rem) !important;
        color: #bdc8e4 !important;
        margin-top: 0.25rem !important;
    }

    .ratio-item {
        background: rgba(16, 27, 48, 0.5) !important;
        border: 1px solid rgba(100, 181, 246, 0.25) !important;
        border-radius: 12px !important;
        padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1rem, 2.5vw, 1.25rem) !important;
        display: grid !important;
        gap: clamp(0.65rem, 1.5vw, 0.85rem) !important;
        transition: border-color 0.2s ease, background 0.2s ease !important;
    }

    .ratio-item.is-active {
        border-color: rgba(100, 181, 246, 0.5) !important;
        background: rgba(20, 34, 60, 0.6) !important;
    }

    .ratio-toggle {
        display: flex !important;
        align-items: center !important;
        gap: clamp(0.65rem, 1.8vw, 0.85rem) !important;
        cursor: pointer !important;
        min-height: 32px !important; /* Touch-friendly */
    }

    .ratio-toggle input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        accent-color: #3f6fd7 !important;
        cursor: pointer !important;
    }

    .ratio-toggle span {
        color: #e5ecff !important;
        font-size: clamp(0.9rem, 2vw, 1.05rem) !important;
        font-weight: 600 !important;
    }

    .ratio-input {
        background: rgba(16, 27, 48, 0.6) !important;
        border: 1px solid rgba(100, 181, 246, 0.3) !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        font-size: clamp(0.9rem, 2vw, 1.05rem) !important;
        padding: clamp(0.65rem, 1.5vw, 0.85rem) clamp(0.8rem, 2vw, 1rem) !important;
        font-weight: 500 !important;
        min-height: 44px !important; /* Touch-friendly mobil */
    }

    .ratio-input:focus {
        border-color: rgba(100, 181, 246, 0.6) !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2) !important;
    }

    .ratio-hint {
        color: #bdc8e4 !important;
        font-size: clamp(0.8rem, 1.8vw, 0.9rem) !important;
        font-style: italic !important;
    }

    /* Smart4Drip description expandable */
    .smart4drip-description {
        position: relative;
    }
    .smart4drip-description.text-expandable .text-expandable__short {
        display: block;
    }
    .smart4drip-description.text-expandable .text-expandable__full {
        display: none;
    }
    .smart4drip-description.text-expandable.is-expanded .text-expandable__short {
        display: none;
    }
    .smart4drip-description.text-expandable.is-expanded .text-expandable__full {
        display: block;
    }
    .smart4drip-description .text-expandable__toggle {
        display: inline;
        margin-left: 0.25rem;
        color: rgba(100, 181, 246, 0.90);
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        border: none;
        background: none;
        padding: 0;
        font-size: inherit;
        font-family: inherit;
        transition: color 0.2s ease;
    }
    .smart4drip-description .text-expandable__toggle:hover,
    .smart4drip-description .text-expandable__toggle:focus-visible {
        color: rgba(144, 202, 249, 1);
        text-decoration: underline;
    }

    /* RESET BUTTON - Gizle (sadece gübre düzenleme sayfasında göster) */
    .button-warning.smart4drip-reset {
        display: none !important;
    }

    /* Loading overlay */
    .calculation-overlay {
        position: fixed;
        inset: 0;
        background: rgba(5, 11, 26, 0.95);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .calculation-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
    .calculation-content {
        text-align: center;
        color: rgba(229, 236, 255, 0.95);
    }
    .calculation-spinner {
        width: 48px;
        height: 48px;
        border: 3px solid rgba(63, 111, 215, 0.2);
        border-top-color: rgba(63, 111, 215, 0.9);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 1.5rem;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    .calculation-text {
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    /* Passcode modal */
    .passcode-modal {
        padding: clamp(1rem, 3vw, 1.75rem);
        align-items: center;
        justify-content: center;
    }
    .passcode-modal.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .passcode-modal .reset-modal__dialog {
        width: min(420px, 92vw);
        display: grid;
        gap: 1.25rem;
        padding: clamp(1.75rem, 4.2vw, 2.1rem);
        background: rgba(13, 23, 45, 0.96);
        border: 1px solid rgba(88, 138, 222, 0.35);
        box-shadow: 0 28px 68px -30px rgba(4, 11, 30, 0.7);
        text-align: left;
    }
    .passcode-modal__header {
        display: grid;
        gap: 0.6rem;
    }
    .passcode-modal__title {
        font-size: clamp(1.1rem, 2.9vw, 1.35rem);
        font-weight: 700;
        letter-spacing: 0.01em;
        color: #f4f8ff;
    }
    .passcode-modal__intro {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(218, 228, 255, 0.85);
    }
    .passcode-modal__form {
        display: grid;
        gap: 1rem;
        margin: 0;
    }
    .passcode-modal__field {
        display: grid;
        gap: 0.4rem;
    }
    .passcode-modal__label {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: rgba(224, 232, 255, 0.92);
    }
    .passcode-modal__input {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 12px;
        border: 1px solid rgba(88, 138, 222, 0.38);
        background: rgba(15, 26, 50, 0.82);
        color: #f1f5ff;
        font-size: 1rem;
        letter-spacing: 0.03em;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    .passcode-modal__input::placeholder {
        color: rgba(200, 214, 241, 0.45);
        font-weight: 400;
    }
    .passcode-modal__input:focus {
        outline: none;
        border-color: rgba(120, 168, 255, 0.8);
        background: rgba(19, 32, 60, 0.92);
        box-shadow: 0 0 0 3px rgba(88, 138, 222, 0.25);
    }
    .passcode-modal__feedback {
        font-size: 0.9rem;
        font-weight: 500;
        color: #fca5a5;
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.46);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        line-height: 1.55;
    }
    .passcode-modal__notes {
        font-size: 0.85rem;
        color: rgba(200, 214, 241, 0.7);
        line-height: 1.5;
    }
    .passcode-modal__actions {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
    }
    .passcode-modal__actions .button {
        min-width: 128px;
        padding: 0.9rem 1.65rem;
        border-radius: 999px;
        font-weight: 600;
        letter-spacing: 0.02em;
    }
    .passcode-modal__actions .button.button-secondary {
        background: rgba(25, 39, 68, 0.75);
        border: 1px solid rgba(118, 144, 196, 0.4);
        color: rgba(228, 234, 255, 0.92);
    }
    .passcode-modal__actions .button.button-secondary:hover,
    .passcode-modal__actions .button.button-secondary:focus-visible {
        background: rgba(28, 46, 78, 0.85);
        border-color: rgba(145, 170, 215, 0.55);
    }
    @media (max-width: 480px) {
        .passcode-modal .reset-modal__dialog {
            padding: 1.6rem 1.35rem;
        }
        .passcode-modal__actions {
            flex-direction: column;
            gap: 0.75rem;
        }
        .passcode-modal__actions .button {
            width: 100%;
            min-width: 0;
        }
    }

    /* GÜBRE SEÇİMİ VE TABLO - Fertilizer selection */
    .fert-toolbar--stacked {
        display: flex !important;
        flex-direction: column !important;
        gap: clamp(0.75rem, 2vw, 1rem) !important;
    }

    .fert-bulk-actions--left {
        align-self: flex-start !important;
        margin: 0 !important;
    }

    .helper--fertilizer {
        color: #c5d4f0 !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem) !important;
        background: rgba(16, 27, 48, 0.4) !important;
        border-left: 3px solid rgba(100, 181, 246, 0.5) !important;
        border-radius: 8px !important;
    }

    /* Fertilizer table responsive */
    .field-group--table .table-scroll {
        max-width: 900px !important;
        margin: 0 auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .field-group--table .fert-table {
        table-layout: auto !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
    }

    .field-group--table .fert-table th:first-child,
    .field-group--table .fert-table td:first-child {
        width: auto !important;
        max-width: 500px !important;
    }

    .field-group--table .fert-table th:last-child,
    .field-group--table .fert-table td:last-child {
        width: 180px !important;
        text-align: right !important;
    }

    /* Mobil tablo düzeni - ÇOK ÖNEMLİ */
    @media (max-width: 768px) {
        .field-group--table .table-scroll {
            max-width: 100% !important;
        }

        .field-group--table .fert-table {
            font-size: 0.875rem !important;
        }

        .field-group--table .fert-table th:first-child,
        .field-group--table .fert-table td:first-child {
            width: 55% !important;
            max-width: none !important;
            padding: clamp(0.6rem, 2vw, 0.8rem) !important;
        }

        .field-group--table .fert-table th:last-child,
        .field-group--table .fert-table td:last-child {
            width: 45% !important;
            padding: clamp(0.6rem, 2vw, 0.8rem) !important;
        }

        .field-group--table .fert-amount-input {
            width: 100% !important;
            max-width: 100px !important;
            min-width: 70px !important;
            font-size: 0.95rem !important;
            padding: 0.7rem 0.6rem !important;
            min-height: 44px !important; /* Touch-friendly */
        }

        .field-group--table .input-with-suffix {
            display: flex !important;
            align-items: center !important;
            gap: 0.4rem !important;
            justify-content: flex-end !important;
        }

        .field-group--table .input-suffix {
            font-size: 0.875rem !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
        }
    }

    /* Çok küçük ekranlar için */
    @media (max-width: 480px) {
        .field-group--table .fert-table {
            font-size: 0.8rem !important;
        }

        .field-group--table .fert-amount-input {
            max-width: 85px !important;
            min-width: 60px !important;
            font-size: 0.9rem !important;
        }
    }

    /* ==========================================================================
       FORM BAŞLIKLARI - Sadece renk ve boyut ayarı
       ========================================================================== */

    /* Form section başlıkları: "Bitki ve dönem", "Hazirlama parametreleri", vb. */
    .collapsible-trigger {
        color: #e5ecff !important;
        font-size: clamp(0.95rem, 2vw, 1.05rem) !important;
        font-weight: 600 !important;
    }

    /* Açık olduğunda biraz daha açık renk */
    .field-group.is-open .collapsible-trigger {
        color: #ffffff !important;
    }

    /* Mobil için */
    @media (max-width: 768px) {
        .collapsible-trigger {
            font-size: 0.55rem !important;
        }
    }
