/* Genel Stil: Kutulama modelini ve fontları belirler. */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Ana Konteyner ve Temel Ayarlar --- */
.gdTextEditorContainer {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

/* Konteynırın odaklandığında daha belirgin olması için */
.gdTextEditorContainer:focus-within {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Karanlık Tema */
.gdTextEditor-theme-dark {
    background-color: #212529;
    border-color: #343a40;
    color: #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gdTextEditor-theme-dark .gdTextEditorContainer:focus-within {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(0, 123, 255, 0.2);
}

/* --- Tam Ekran Modu --- */
.gdTextEditorContainer.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 9999;
    box-shadow: none;
    transition: none;
}

/* --- Araç Çubuğu (Toolbar) --- */
#gdTextEditorToolBar {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    gap: 8px;
    background: #f8f9fa;
}

.gdTextEditor-theme-dark #gdTextEditorToolBar {
    border-bottom-color: #343a40;
    background: #212529;
}

.toolbar-group {
    gap: 4px;
    align-items: center;
	border-right: 1px solid #e9ecef;
	padding-right: 11px;
}
.toolbar-button-container {
  display: flex;
  flex-wrap: wrap;   /* Butonlar satır aşarsa alt satıra geçer */
  gap: 7px;          /* Butonlar arası boşluk */
}
/* --- Butonlar ve Seçim Elemanları --- */
#gdTextEditorToolBar button,
#gdTextEditorToolBar input[type="color"],
#gdTextEditorToolBar select {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
    font-size: 14px;
    background-color: #ffffff;
    color: #495057;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#gdTextEditorToolBar button:hover,
#gdTextEditorToolBar select:hover {
    background-color: #e9ecef;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#gdTextEditorToolBar button:active,
#gdTextEditorToolBar select:active {
    background-color: #dee2e6;
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
}

#gdTextEditorToolBar button:focus,
#gdTextEditorToolBar select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Karanlık Tema Buton ve Seçim Elemanları */
.gdTextEditor-theme-dark #gdTextEditorToolBar button,
.gdTextEditor-theme-dark #gdTextEditorToolBar select {
    background-color: #343a40;
    color: #e9ecef;
    border-color: #495057;
    box-shadow: none;
}

.gdTextEditor-theme-dark #gdTextEditorToolBar button:hover,
.gdTextEditor-theme-dark #gdTextEditorToolBar select:hover {
    background-color: #495057;
}

.gdTextEditor-theme-dark #gdTextEditorToolBar button:active,
.gdTextEditor-theme-dark #gdTextEditorToolBar select:active {
    background-color: #6c757d;
}

.gdTextEditor-theme-dark #gdTextEditorToolBar button:focus,
.gdTextEditor-theme-dark #gdTextEditorToolBar select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Renk Seçici Input Özel Stili */
#gdTextEditorToolBar input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    padding: 2px;
    border: 2px solid #ccc;
	border-radius: 8px;
	background-color: #ffffff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#gdTextEditorToolBar input[type="color"]::-webkit-color-swatch {
    border-radius: 8px;
    
}

#gdTextEditorToolBar input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

/* --- Metin Alanı ve İçerik Stilleri --- */
#gdTextEditorTextarea {
    padding: 20px 25px;
    line-height: 1.75;
    font-size: 1rem;
    min-height: 400px;
    outline: none;
    background-color: transparent;
    flex-grow: 1;
    overflow-y: auto;
    caret-color: #007bff; /* İmleç rengi */
}

/* Biçimlendirme Etiketleri İçin Temel Stiller */
#gdTextEditorTextarea h2 { font-size: 2rem; margin-top: 1.5em; margin-bottom: 0.75em; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
#gdTextEditorTextarea blockquote { border-left: 4px solid #007bff; padding-left: 20px; margin: 20px 0; font-style: italic; color: #555; }
#gdTextEditorTextarea pre { background-color: #e9ecef; padding: 15px; border-radius: 8px; font-family: 'Courier New', monospace; overflow-x: auto; font-size: 0.9em; line-height: 1.5; color: #333; }
#gdTextEditorTextarea table { width: 100%; border-collapse: collapse; margin: 20px 0; border: 1px solid #ccc; }
#gdTextEditorTextarea th, #gdTextEditorTextarea td { border: 1px solid #e0e0e0; padding: 12px; text-align: left; }
#gdTextEditorTextarea th { background-color: #f1f3f5; font-weight: bold; }
#gdTextEditorTextarea img { max-width: 100%; height: auto; display: block; margin: 15px 0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

/* Karanlık Tema İçerik Stilleri */
.gdTextEditor-theme-dark #gdTextEditorTextarea h2 { color: #f8f9fa; border-bottom-color: #495057; }
.gdTextEditor-theme-dark #gdTextEditorTextarea blockquote { color: #ced4da; border-left-color: #007bff; }
.gdTextEditor-theme-dark #gdTextEditorTextarea pre { background-color: #343a40; color: #ced4da; }
.gdTextEditor-theme-dark #gdTextEditorTextarea th { background-color: #495057; color: #f8f9fa; }
.gdTextEditor-theme-dark #gdTextEditorTextarea th, .gdTextEditor-theme-dark #gdTextEditorTextarea td { border-color: #495057; }

/* --- Kaynak Kod Alanı --- */
#gdTextEditorSource {
    width: 100%;
    height: 400px;
    border: none;
    resize: vertical;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    padding: 25px;
    background-color: #f4f4f4;
    outline: none;
    display: none;
    line-height: 1.6;
    color: #333;
}

.gdTextEditor-theme-dark #gdTextEditorSource {
    background-color: #2b2b2b;
    color: #a9b7c6;
}

/* --- Sayac ve Geri Bildirim Alanları --- */
#gdTextEditorSayac {
    padding: 10px 15px;
    font-size: 13px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.gdTextEditor-theme-dark #gdTextEditorSayac {
    border-top-color: #343a40;
    color: #ced4da;
}

.gdTextEditorFeedback {
    position: absolute;
    bottom: 10px;
    left: 20px;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}

.gdTextEditorFeedback.info {
    background-color: #d1ecf1;
    color: #0c5460;
    opacity: 1;
    transform: translateY(0);
}

.gdTextEditorFeedback.warning {
    background-color: #fff3cd;
    color: #856404;
    opacity: 1;
    transform: translateY(0);
}

.toolbar-group-label {
	font-weight: bold;
	font-size: 9px;
	margin-bottom: 3px;
	margin-top:3px;
	padding: 4px;
	color: #636363;
    display: block;
	
}















/* Editör içindeki form elemanlarının validasyon efektlerini gizle */
.gdTextEditor input:invalid, 
.gdTextEditor textarea:invalid, 
.gdTextEditor select:invalid {
    box-shadow: none !important;
    outline: none !important;
    border-color: inherit;
}

/* Chrome/Safari'nin otomatik hata balonlarını engellemek için */
.gdTextEditor input::-webkit-validation-bubble,
.gdTextEditor textarea::-webkit-validation-bubble {
    display: none !important;
}