/* style.css dosyasının tam ve güncel içeriği */

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: #f3f7fa; }
.hidden { display: none !important; }
#main-content { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 20px 20px 20px 20px; box-sizing: border-box; }
.container { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); width: 100%; max-width: 1100px; margin-bottom: 20px; box-sizing: border-box; }
h1, h2, h3 { text-align: center; color: #2c3e50; margin-top: 0; margin-bottom: 20px; }
button { background-color: #3498db; color: white; border: none; padding: 12px 25px; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background-color 0.3s ease; }
button:hover { background-color: #2980b9; }
button:disabled { background-color: #bdc3c7; cursor: not-allowed; }
button.secondary { background-color: #2ecc71; }
button.secondary:hover { background-color: #27ae60; }
.page-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.header-logo img { height: 50px; }
.action-buttons-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.message { padding: 15px; margin-bottom: 20px; border-radius: 4px; text-align: center; font-weight: bold; }
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
hr.section-divider { margin: 40px 0; border: none; height: 1px; background-color: #eee; }
#sidebar { height: 100%; width: 250px; position: fixed; z-index: 1001; top: 0; left: 0; background-color: #1a2c3b; overflow-x: hidden; overflow-y: auto; transition: transform 0.3s ease-in-out; transform: translateX(-250px); padding-top: 60px; box-sizing: border-box; }
#sidebar.open { transform: translateX(0); }
#sidebar a { padding: 10px 15px; text-decoration: none; font-size: 14px; color: #b0bec5; display: block; transition: 0.2s; }
#sidebar a:hover { color: #fff; background-color: #273e52; }
#sidebar .close-btn { position: absolute; top: 10px; right: 15px; font-size: 36px; color: #818181; }
#open-menu-btn { font-size: 24px; cursor: pointer; background-color: #3498db; color: white; border: none; padding: 10px 15px; border-radius: 5px; position: fixed; top: 15px; left: 15px; z-index: 1000; }
#overlay { position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 1000; cursor: pointer; }
#overlay.show { display: block; }
.sidebar-divider { border: none; height: 1px; background-color: #2c3e50; margin: 10px 15px; }
.sidebar-group { padding-top: 10px; }
.sidebar-heading { padding: 0 15px; margin: 15px 0 10px 0; font-size: 12px; font-weight: bold; color: #818181; text-transform: uppercase; letter-spacing: .05em; }
.user-panel { padding: 10px 15px; color: #b0bec5; font-size: 14px; }
.user-panel span { display: block; padding-bottom: 5px; }
.user-panel a.logout-link { font-weight: bold; color: #e74c3c !important; font-size: 15px; padding: 5px 0; }
.user-panel a.logout-link:hover { color: #ff6b5a !important; background-color: transparent !important; }
.user-panel a.logout-link i { margin-right: 8px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.info-box { display: flex; align-items: center; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 20px; color: #fff; overflow: hidden; position: relative; text-decoration: none; }
.info-box:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.info-box .info-box-icon { font-size: 40px; opacity: 0.2; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); transition: transform 0.3s ease-in-out; }
.info-box:hover .info-box-icon { transform: translateY(-50%) scale(1.1); }
.info-box-content { z-index: 5; }
.info-box-text { display: block; font-size: 16px; font-weight: 500; }
.info-box-number { display: block; font-size: 32px; font-weight: bold; margin-top: 5px; }
.info-box.bg-blue { background: linear-gradient(45deg, #3c8dbc, #0073b7); }
.info-box.bg-green { background: linear-gradient(45deg, #00a65a, #008d4c); }
.info-box.bg-yellow { background: linear-gradient(45deg, #f39c12, #db8b0b); color: #fff !important; }
.info-box.bg-red { background: linear-gradient(45deg, #dd4b39, #c23321); }
.info-box.bg-purple { background: linear-gradient(45deg, #605ca8, #555299); }
.info-box.bg-teal { background: linear-gradient(45deg, #20c997, #17a2b8); }
.dashboard-card { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-top: 30px; }
.dashboard-card-header { padding: 15px 20px; border-bottom: 1px solid #f4f4f4; font-weight: bold; font-size: 18px; color: #333; text-align: left; }
.dashboard-card-body { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { margin-bottom: 8px; font-weight: 500; color: #34495e; }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; width: 100%; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3498db; box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); }
.form-actions { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.route-planner-container { background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-top: 20px; }
.route-planner-inputs .input-group { background-color: #fff; padding: 0 8px; border: 1px solid #ddd; border-radius: 8px; display: flex; align-items: center; }
.route-planner-inputs .input-group input { border: none; padding: 12px 10px; flex: 1; }
.route-planner-inputs .input-group input:focus { box-shadow: none; }
.input-group { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.input-group input { flex: 1; }
button.remove-btn { background-color: #e74c3c; color: white; border: none; border-radius: 4px; cursor: pointer; padding: 10px 15px; font-size: 14px; }
#use-location-btn { background-color: transparent; border: none; color: #6c757d; font-size: 18px; padding: 0 10px; cursor: pointer; transition: color 0.2s; flex-shrink: 0; }
#use-location-btn:hover { color: #3498db; background-color: transparent; }
.button-group { display: flex; gap: 15px; margin-top: 20px; margin-bottom: 20px; }
.button-group button { flex-grow: 1; }
.results-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.results-table thead { background-color: #343a40; color: white; }
.results-table th, .results-table td { border: 1px solid #ddd; padding: 12px; text-align: left; word-break: break-word; }
.results-table tbody tr:nth-child(even) { background-color: #f8f9fa; }
.results-table tbody tr:hover { background-color: #e9ecef; }
.actions-cell { text-align: center; white-space: nowrap; }
.actions-cell a { margin: 0 6px; font-size: 14px; text-decoration: none; transition: transform 0.2s; display: inline-block; }
.actions-cell a:hover { transform: scale(1.2); }
.actions-cell a.edit { color: #3498db; }
.actions-cell a.status-toggle.aktif { color: #2ecc71; }
.actions-cell a.status-toggle.pasif { color: #e74c3c; }
.actions-cell form { display: inline-block; margin: 0 6px; }
.actions-cell form button { background: none; border: none; padding: 0; margin: 0; cursor: pointer; font-size: 14px; transition: transform 0.2s; vertical-align: middle; }
.actions-cell form button:hover { transform: scale(1.2); }
.actions-cell form button.delete { color: #e74c3c; }
.filter-container { margin-bottom: 20px; }
.filter-input { width: 100%; max-width: 400px; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; box-sizing: border-box; }

/* ================================================= */
/* RESPONSIVE TASARIM                                */
/* ================================================= */
@media (max-width: 768px) {
    #main-content { padding: 70px 10px 10px 10px; }
    .container { padding: 15px; }
    h1 { font-size: 1.5rem; }
    .input-group, .button-group { flex-direction: column; }
    .input-group input, .button-group button, button { width: 100%; }
    .route-planner-container .button-group { flex-direction: row; }
    .page-actions { justify-content: center; }
    .results-table thead { display: none; }
    .results-table tr { display: block; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .results-table td { display: block; text-align: right; font-size: 14px; border-bottom: 1px dotted #ccc; padding-left: 50%; position: relative; }
    .results-table td:last-child { border-bottom: 0; }
    .results-table td::before { content: attr(data-label); position: absolute; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; }
    .actions-cell { text-align: right; }
}

/* ================================================= */
/* YAZDIRMA STİLLERİ (GÜNCELLENDİ)                   */
/* ================================================= */
@media print {
    @page { size: A4 portrait; margin: 15mm; }
    body, #main-content, .container { margin: 0 !important; padding: 0 !important; width: 100% !important; box-shadow: none !important; border: none !important; background: #fff !important; color: #000; }
    body * { visibility: hidden; }
    #print-area, #print-area * { visibility: visible; }
    #print-area { position: absolute; left: 0; top: 0; width: 100%; }
    .page-actions, .form-actions, .new-document-form, #gmaps-button-container, #print-task-btn, .button-group, #add-waypoint-btn, #hesapla-btn, #use-location-btn, .remove-btn, .non-printable { display: none !important; }
    h1, h2, h3 { text-align: left; page-break-after: avoid; }
    h1 { font-size: 20pt; }
    h2 { font-size: 16pt; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
    h3 { font-size: 14pt; text-align: center; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 11pt; }
    .form-group label { font-weight: bold; }
    .form-group input, .form-group select, .form-group textarea { border: none !important; box-shadow: none !important; padding: 2px 0 !important; background-color: transparent !important; -webkit-appearance: none; -moz-appearance: none; appearance: none; color: #000; }
    .form-group select { pointer-events: none; }
    .form-group textarea { border: 1px solid #eee !important; padding: 5px !important; }
    #map { height: 300px !important; width: 100% !important; border: 1px solid #ccc !important; page-break-inside: avoid; }
    
    /* --- YAZDIRMA İÇİN TABLO DÜZELTMESİ --- */
    #results-wrapper { margin-top: 15px; page-break-before: auto; }
    .results-table { font-size: 10pt; }
    .results-table thead { display: table-header-group !important; position: static !important; }
    .results-table tr { display: table-row !important; border: none; margin: 0; box-shadow: none; }
    .results-table td { display: table-cell !important; text-align: left !important; padding: 6px !important; padding-left: 6px !important; border-bottom: 1px solid #ccc !important; position: static !important; }
    .results-table td::before { display: none !important; }

    hr.section-divider { border-top: 2px solid #000; visibility: visible; margin: 25px 0; }
}
/* ================================================= */
/* GÖREV FORMU ROTA DURAĞI STİLLERİ (YENİ)          */
/* ================================================= */
.stop-group {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.stop-inputs {
    display: grid;
    grid-template-columns: 1fr auto; /* Adres alanı geniş, sil butonu dar */
    gap: 10px;
    align-items: top;
}

.stop-inputs .address-part {
    flex-grow: 1;
}

.stop-inputs .details-part {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    grid-column: 1 / -1; /* İki sütunu da kapla */
}

.stop-inputs .details-part .form-group {
    flex: 1;
}

.stop-inputs .form-group {
    margin-bottom: 0;
}

.stop-inputs label {
    font-size: 12px;
    color: #555;
}

.stop-inputs .remove-stop-btn {
    height: 45px;
    padding: 10px 15px;
}
.stop-inputs input.stop-address {
   width: calc(100% - 40px); /* Sil butonuna yer bırak */
   padding: 10px;
   border: 1px solid #ddd;
   border-radius: 4px;
   box-sizing: border-box;
   font-size: 16px;
   line-height: 1.5;
   height: 45px; /* Sil butonu ile aynı yükseklikte */
}
/* QR KOD STİLİ */
.qr-code-img {
    width: 80px;
    height: 80px;
    display: block;
    margin: auto;
}
/* ================================================= */
/* HARİTA POPUP (MODAL) STİLLERİ (YENİ)            */
/* ================================================= */

.map-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Başlangıçta gizli */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.map-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.map-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

#popup-map {
    width: 100%;
    height: 400px;
    border-radius: 4px;
}
/* ================================================= */
/* HARİTA POPUP (MODAL) STİLLERİ (YENİ)            */
/* ================================================= */

.map-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Başlangıçta gizli */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 15px;
    box-sizing: border-box;
}

.map-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.map-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: all 0.2s;
}
.map-popup-close:hover {
    background: #e74c3c;
    color: #fff;
}

#popup-map {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    margin-top: 15px;
}/* ... (mevcut stil dosyanızın tamamı) ... */

/* ================================================= */
/* YAZDIRMA STİLLERİ (GÜNCELLENDİ)                   */
/* ================================================= */
@media print {
    @page {
        size: A4 portrait;
        margin: 15mm;
    }
    body, #main-content, .container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
        color: #000;
    }
    body * { visibility: hidden; }
    #print-area, #print-area * { visibility: visible; }
    #print-area { position: absolute; left: 0; top: 0; width: 100%; }
    .page-actions, .form-actions, .new-document-form, .non-printable, .route-planner-container { display: none !important; }
    h1, h2, h3 { text-align: left; page-break-after: avoid; }
    h1 { font-size: 20pt; }
    h2 { font-size: 16pt; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
    h3 { font-size: 14pt; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 11pt; }
    .form-group label { font-weight: bold; }
    .readonly-field { border: none !important; background-color: transparent !important; padding: 2px 0 !important; }
    .results-table { font-size: 9pt; margin-top: 5mm; page-break-inside: avoid; }
    .results-table th, .results-table td { padding: 5px; }
    hr.section-divider { border-top: 2px solid #000; visibility: visible; margin: 25px 0; }

    /* GOREV_INCELE.PHP'YE ÖZEL YAZDIRMA STİLLERİ (YENİ) */
    .gorev-incele-page h1 { font-size: 18pt; margin-bottom: 8mm; }
    .gorev-incele-page h2 { font-size: 14pt; margin-top: 6mm; margin-bottom: 3mm; }
    .gorev-incele-page .form-grid { font-size: 10pt; gap: 4px 15px; }
    .gorev-incele-page .form-group { margin-bottom: 1mm; }
    .gorev-incele-page #map { height: 60mm !important; margin-top: 4mm; page-break-inside: avoid; }
    .gorev-incele-page #kayitli-rota-tablosu { margin-top: 5mm; page-break-before: auto; }
    .gorev-incele-page .results-table td, .gorev-incele-page .results-table th { padding: 4px; }
    .gorev-incele-page .qr-code-img { width: 60px; height: 60px; }
}/* ================================================= */
/* SALT OKUNUR ALAN STİLİ (YENİ)                  */
/* ================================================= */

.readonly-field {
    background-color: #e9ecef; /* Hafif gri bir arka plan */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    min-height: 21px; /* Tek satırlı input ile aynı yükseklik için */
    word-break: break-word; /* Uzun metinlerin taşmasını engelle */
    color: #495057;
}
/* ===== Arıza Tipleri (işlemler sütunu) – ikon renkleri ===== */
.ariza-tipleri .actions-cell a,
.ariza-tipleri .actions-cell button {
  color: #6b7280;           /* varsayılan nötr */
}

.ariza-tipleri .icon-edit   { color: #3498db; } /* mavi: düzenle */
.ariza-tipleri .icon-save   { color: #10b981; } /* yeşil: kaydet  */
.ariza-tipleri .icon-cancel { color: #9ca3af; } /* gri: iptal     */
.ariza-tipleri .icon-delete { color: #e74c3c; } /* kırmızı: sil   }

/* küçük etkileşim */
.ariza-tipleri .actions-cell a:hover,
.ariza-tipleri .actions-cell button:hover {
  transform: scale(1.15);
  filter: brightness(1.05);
}
   