/**
 * Frontend Styles for Cloud NACE Sorgulama plugin.
 */

#cloud-nace-sorgulama-form {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    max-width: 600px; /* Form container width - Adjust as needed */
    font-family: sans-serif; /* Example font for form elements */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

#cloud-nace-sorgulama-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #eee; /* Optional separator */
    padding-bottom: 10px;
}

/* Style for the input text field */
#cloud-nace-sorgulama-form input[type="text"] {
    padding: 8px;
    margin-right: 5px;
    border: 1px solid #ccc;
    width: 200px; /* Input field width - Adjust as needed */
    box-sizing: border-box;
    vertical-align: top; /* Align input and button tops */
    border-radius: 10px; /* Border radius for input */
    line-height: 1.5; /* Ensure consistent height with button */
    height: 37px; /* Match button height if padding/border differ */
}

/* Style for the search button */
#nace-sorgula-button {
    padding: 8px 15px;
    /* Arka plan rengi (varsa CSS değişkeni, yoksa fallback renk) */
    background-color: var(--fs-color-primary, #0073aa);
    /* Yazı rengi (varsa CSS değişkeni, yoksa fallback renk) */
    color: var(--fs-color-secondary, #ffffff);
    /* Border rengi (varsa CSS değişkeni, yoksa fallback renk) */
    border: 1px solid var(--fs-color-primary, #0073aa);
    border-radius: 10px; /* Border radius isteği */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Hover geçiş efekti */
    vertical-align: top; /* Align input and button tops */
    line-height: 1.5; /* Ensure consistent height with input */
    height: 37px; /* Match input height */
}

/* Hover style for the search button */
#nace-sorgula-button:hover {
    /* Hover arka plan rengi (varsa CSS değişkeni, yoksa fallback renk) */
    background-color: var(--fs-color-secondary, #ffffff);
    /* Hover yazı rengi (varsa CSS değişkeni, yoksa fallback renk) */
    color: var(--fs-color-primary, #0073aa);
    /* Hover border rengi (varsa CSS değişkeni, yoksa fallback renk) */
    border-color: var(--fs-color-primary, #0073aa);
}

/* Style for the button when it's disabled (e.g., during AJAX request) */
#nace-sorgula-button:disabled {
    background-color: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Style for the button with loading class (optional, maybe add a spinner later) */
#nace-sorgula-button.loading {
    opacity: 0.8;
}


/* Style for the search results area */
#nace-sorgulama-sonuc {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    min-height: 40px; /* Give it a minimum height so it doesn't collapse */
    word-break: break-word; /* Prevent long words from overflowing */
}

/* Style for the heading in the results area (for multiple results) */
#nace-sorgulama-sonuc h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555;
}

/* Style for individual result items when multiple are displayed */
.nace-result-item {
    border-bottom: 1px dashed #ccc; /* Separate each result item */
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Remove border for the last result item */
.nace-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Style for paragraphs within result items */
.nace-result-item p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Style for the labels (strong tags) within result items */
.nace-result-item p strong {
     display: inline-block;
     width: 130px; /* Adjust label width as needed for alignment */
     margin-right: 10px;
     font-weight: bold;
     color: #333; /* Optional label color */
}

/* Tehlike Sınıfı Renklendirme Sınıfları */
.sinif-az-tehlikeli {
    color: green;
    font-weight: bold;
}

.sinif-tehlikeli {
    color: orange; /* Or choose a specific yellow/orange shade */
    font-weight: bold;
}

.sinif-cok-tehlikeli {
    color: red;
    font-weight: bold;
}

.sinif-bilinmiyor {
    color: gray; /* Style for unknown risk classes */
}