/* --- ORTAK MERKEZİ STİL DOSYASI --- */

/* Genel Araç Kapsayıcısı */
.byai-tool-wrapper {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.byai-tool-wrapper h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.byai-tool-wrapper p {
    margin-bottom: 20px;
}

/* Form Elemanları (Input, Textarea, Buton) */
.byai-tool-wrapper .byai-user-input, /* ID yerine class kullandık */
.byai-tool-wrapper textarea.byai-user-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: left;
}

.byai-tool-wrapper textarea.byai-user-input {
    resize: vertical;
    min-height: 150px;
}

.byai-tool-wrapper .byai-generate-btn { /* ID yerine class kullandık */
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: normal;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.byai-tool-wrapper .byai-generate-btn:hover {
    opacity: 0.9;
}

/* Karakter Sayacı (Metin İşleyici için) */
.byai-char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: -15px;
    margin-bottom: 15px;
    padding-right: 5px;
}

.byai-char-counter.limit-exceeded {
    color: #d9534f;
    font-weight: bold;
}

/* Yüklenme ve Sonuç Alanları */
.byai-spinner {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: byai-spin 1s linear infinite;
    /* DİKKAT: Spinner rengi artık PHP tarafından inline olarak eklenecek */
}

@keyframes byai-spin {
    to { transform: rotate(360deg); }
}

.byai-results-container { /* ID yerine class kullandık */
    margin-top: 40px;
    text-align: left;
}

.byai-result-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.byai-results-box {
    padding: 20px;
    border: 1px solid #ddd;
    line-height: 1.8;
    font-size: 16px;
    white-space: pre-wrap;
}
