﻿
/* TEMEL STİLLER */
.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    justify-content: center;
}

.tool {
    width: 80px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid lightgray;
    border-radius: 8px;
    background-color: #f9fafc;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

    .tool a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
    }

/* EDITÖR ALANI */
.containeri {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.editori {
    width: 100%;
    min-height: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #fcfcfc;
}

/* BUTON GRUPLARI */
.atbxa {
    display: flex;
    align-items:center;
    justify-content:center;
    flex-direction:row;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 5px;
}

.budstyl {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ÖZEL KONTROLLER */
.metinstyle, .arkastyle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f4;
    padding: 8px;
    border-radius: 8px;
    margin:10px;
}

.fontstylecss {
    width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.font-size-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lbfonti {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* TABLO BENZERİ YAPI İÇİN */
.atbxb {
    display: flex;
    align-items: center;
    margin-right: 5px;
}
/* Tüm butonlar için ortak stil */
.budstyl,
.aspbuttonstyle,
.atbxa input[type="button"],
.atbxa input[type="submit"],
.atbxa button {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    margin: 5px;
    font-family: 'Segoe UI', sans-serif;
    height: 36px;
    line-height: 1;
}

/* Dropdown listeler için stil */
select.fontstylecss,
select.lbfonts {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    margin: 5px;
    height: 36px;
    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='currentColor' 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 8px center;
    background-size: 16px;
    padding-right: 30px;
}

/* Input alanları için stil */
input[type="text"],
input[type="color"] {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    margin: 5px;
    height: 36px;
}

    /* Hover efektleri */
    .budstyl:hover,
    .aspbuttonstyle:hover,
    input[type="button"]:hover,
    input[type="submit"]:hover,
    button:hover,
    select.fontstylecss:hover,
    select.lbfonts:hover,
    input[type="text"]:hover,
    input[type="color"]:hover {
        background-color: #f5f5f5;
        border-color: #b0b0b0;
    }

    /* Focus efektleri */
    .budstyl:focus,
    .aspbuttonstyle:focus,
    input[type="button"]:focus,
    input[type="submit"]:focus,
    button:focus,
    select.fontstylecss:focus,
    select.lbfonts:focus,
    input[type="text"]:focus,
    input[type="color"]:focus {
        outline: none;
        border-color: #646cff;
        box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.2);
    }

/* Özel butonlar için ek stiller */
input[type="color"] {
    width: 36px;
    padding: 2px;
}

/* Font değiştir butonu için */
.fbstyle {
    width: auto;
    white-space: nowrap;
}

/* Boyut değiştir butonu için */
.lbfontb {
    white-space: nowrap;
}
/* Renk seçici inputu için stil */
#bgColorPicker {
    -webkit-appearance: none; /* Tarayıcı varsayılan stilini kaldırır */
    -moz-appearance: none;
    appearance: none;
    border: none !important; /* Border'ı tamamen kaldırır */
    outline: none !important; /* Odaklandığında çıkan çerçeveyi kaldırır */
    width: 50px;
    height: 35px;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

    /* Tarayıcı özel stilleri için ek kurallar */
    #bgColorPicker::-webkit-color-swatch {
        border: none !important;
        border-radius: 4px; /* Hafif yuvarlak köşeler */
    }

    #bgColorPicker::-moz-color-swatch {
        border: none !important;
        border-radius: 4px; /* Hafif yuvarlak köşeler */
    }

/* Butonla uyumlu hale getirmek için */
.arkastylea {
    display: flex;
    align-items: center;
    gap: 5px;
}

    /* Butonun stili (mevcut stillerinizle uyumlu) */
    .arkastylea button {
        background-color: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 14px;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
/* Metin Rengi color picker için stil */
#editorColor {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none !important;
    outline: none !important;
    width: 50px;
    height: 35px;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

    /* Tarayıcı özel stilleri */
    #editorColor::-webkit-color-swatch {
        border: none !important;
        border-radius: 4px;
    }

    #editorColor::-moz-color-swatch {
        border: none !important;
        border-radius: 4px;
    }

/* Metin Rengi konteyner stilini güncelleme */
.metinstyle {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f4f4f4;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mstal {
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #333;
}

    /* Metin yazısı için özel stil */
    .mstal:last-child {
        padding: 8px 0;
        white-space: nowrap;
    }
/* RESPONSIVE AYARLAR */

@media (max-width: 768px) {
    .atbxa {
       
    }

    .tool {
        width: 70px;
        height: 35px;
        font-size: 12px;
    }
}
