/* Genel Ayarlar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: #4a5c7f;
    text-align: center;
}

.header a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
    margin-left: 15px;
    font-weight: 600;
}

.header .fa-balance-scale {
    font-size: 3rem;
}

.editor-container {
    width: 850px;
    max-width: 95%; /* Mobil için maksimum genişlik ayarı */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box; /* Padding'in genişliğe dahil edilmesi */
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Butonları ortala */
}

.toolbar button, .font-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 14px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.toolbar button:hover, .font-select:hover {
    background-color: #e9e9e9;
}

.toolbar button i {
    font-size: 16px;
    color: #555;
}

.editor-area {
    min-height: 600px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    cursor: text;
    white-space: pre-wrap;
    word-wrap: break-word;
    /* Kenar boşlukları */
    padding-top: 1cm;
    padding-bottom: 1cm;
    padding-left: 2cm;
    padding-right: 1cm;
}

.pdf-button {
    background-color: #dc3545;
    color: #fff !important;
    border-color: #dc3545;
}

.pdf-button:hover {
    background-color: #c82333;
}

.pdf-button i, .pdf-button {
    color: #004085 !important;
}

/* ---------------------------------- */
/* MOBİL UYUMLULUK AYARLARI */
/* ---------------------------------- */

@media (max-width: 768px) {
    /* Tablet ve mobil cihazlar için */
    .header h1 {
        font-size: 1.5rem;
        margin-left: 10px;
    }
    
    .header .fa-balance-scale {
        font-size: 2rem;
    }

    .editor-container {
        padding: 15px; /* Daha küçük ekranlar için padding'i azaltma */
    }

    .toolbar {
        gap: 5px; /* Butonlar arası boşluğu azaltma */
    }

    .toolbar button, .font-select {
        font-size: 12px;
        padding: 6px 10px; /* Butonları küçültme */
    }

    .toolbar button i {
        font-size: 14px;
    }
    
    /* Editör alanının kenar boşluklarını mobil için daha uygun hale getirme */
    .editor-area {
        padding: 10px;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    /* Telefonlar için */
    .header {
        flex-direction: column; /* Başlık ve simgeyi alt alta getirir */
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 1.2rem;
        margin-left: 0;
    }
    
    .header .fa-balance-scale {
        font-size: 1.8rem;
    }

    .toolbar {
        justify-content: space-around; /* Butonları eşit dağıtma */
    }
    
    .toolbar button, .font-select {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .editor-container {
        padding: 10px;
    }
}