/* Recipe Suggester - Tool-Specific Styles Only */
/* Shared styles are in /shared/styles/result-display.css */

/* Form styling */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 15px;
    position: relative;
}

/* Tooltip styling */
.tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: rgba(40, 40, 40, 0.98);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #ff6b35;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ff6b35 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Textarea styling */
textarea {
    width: 100%;
    border: 2px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

textarea:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: #222;
}

textarea::placeholder {
    color: #888;
    font-style: italic;
}

/* Helper text */
.helper-text {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Form row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Select dropdown styling */
select {
    width: 100%;
    border: 2px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background-color: #222;
}

select option {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 10px;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff8855);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: block;
    width: 100%;
    margin-top: 30px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8855, #ffa575);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Loading indicator */
.loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
    background: rgba(255, 107, 53, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading p {
    color: #ff8855;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Error message styling - kept for consistency but could use utils.showError() */
#errorDiv {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
    border-radius: 8px;
    color: #ff6666;
    font-weight: 500;
}

/* Result container wrapper */
#resultDiv {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 107, 53, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tooltip .tooltiptext {
        width: 200px;
        margin-left: -100px;
        font-size: 12px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }

    #resultDiv {
        padding: 20px;
    }
}

/* Print styles */
@media print {

    .tooltip .tooltiptext,
    .helper-text,
    form,
    .btn-primary,
    .loading,
    #errorDiv {
        display: none !important;
    }

    #resultDiv {
        margin-top: 0;
        padding: 0;
        background: none;
        border: none;
    }
}