/* --- GENEL AYARLAR --- */
:root {
    --primary: #2563eb;       /* ADL Kurumsal Mavisi */
    --primary-dark: #1d4ed8;
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- LOGO VE BAŞLIK ALANI --- */
.header-banner {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.adl-logo {
    height: 50px; /* Logo yüksekliği */
    width: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

/* --- BUTONLAR --- */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-prim { background-color: var(--primary); color: white; }
.btn-prim:hover { background-color: var(--primary-dark); }
.btn-ghost { background-color: white; border: 1px solid var(--border-color); color: var(--text-color); }
.btn-danger { background-color: #ef4444; color: white; }

/* --- KART YAPISI --- */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #f9fafb;
}
.card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.card-body { padding: 24px; }

/* --- FORM ELEMANLARI --- */
.form-grid { display: flex; flex-direction: column; gap: 20px; }
.triple-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.triple-item { display: flex; flex-direction: column; }

label { font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; color: #6b7280; }
input, select, textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- TABLO STİLLERİ --- */
.dynamic-module-title-banner {
    background: #e0e7ff;
    color: #3730a3;
    padding: 10px 15px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
    margin-top: 0px;
    border: 1px solid #c7d2fe;
}
.table-header-band {
    background: white;
    padding: 10px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}
.test-scenario-table { width: 100%; border-collapse: collapse; background: white; }
.test-scenario-table th, .test-scenario-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    vertical-align: top;
}
.test-scenario-table th { background: #f9fafb; text-align: left; font-weight: 600; }

/* --- RESİM YÜKLEME ALANI --- */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dropzone:hover { border-color: var(--primary); background: #eff6ff; }
.pdf-image-preview {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: none;
}

/* --- YAZDIRMA (PRINT) AYARLARI --- */
@media print {
    @page { margin: 10mm; size: A4; }
    
    /* Gizlenecekler */
    .html2pdfignore, .top-action-bar, .table-actions-container, 
    .btn, .dropzone { display: none !important; }

    body { background: white; padding: 0; color: black; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .container { max-width: 100%; width: 100%; margin: 0; }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 20px;
    }

    /* Form elemanlarını gizle, statik yazıyı göster */
    input:not([type="file"]), textarea, select { display: none !important; }
    .print-static-content {
        display: block !important;
        white-space: pre-wrap;
        font-size: 10pt;
        color: #000;
        font-weight: 500;
    }

    .test-scenario-table th, .test-scenario-table td {
        border: 1px solid #000 !important;
        padding: 6px;
    }
    
    .dynamic-module-title-banner {
        background: #eee !important;
        color: #000 !important;
        border: 1px solid #000;

    }

    .pdf-image-preview { display: block !important; max-height: 200px; }
    
    .adl-logo { height: 60px; margin-bottom: 5px; } /* Yazıcıda logo biraz küçülsün */
}

.print-static-content { display: none; }