body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

.search-container {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.search-container h4 {
    color: #667eea;
    font-weight: 800;
}

/* BELGE STİLLERİ */
#documentArea {
    display: none;
}

.document {
    width: 210mm;
    min-height: 148mm;
    background: white;
    margin: 30px auto;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.doc-header {
    background: linear-gradient(135deg, #1a1c2c 0%, #2d3154 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 4px solid #667eea;
}

.doc-header h3 {
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
}

.doc-header p {
    margin: 5px 0 0 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.doc-subtitle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 2px;
    border-bottom: 3px solid #4a5568;
}

.doc-body {
    padding: 25px 30px;
}

/* Bilgi Tablosu */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 0.9rem;
    border: 2px solid #2d3154;
}

.info-table td {
    padding: 10px 15px;
    border: 1px solid #c5cad4;
}

.info-table .label {
    background: linear-gradient(135deg, #f0f2f5, #e4e7ec);
    font-weight: 700;
    width: 15%;
    color: #2d3154;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    border-right: 2px solid #2d3154;
    white-space: nowrap;
}

.info-table .value {
    font-weight: 700;
    color: #1a1c2c;
    font-size: 0.95rem;
}

.exam-location-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.exam-location-box h5 {
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 0.9;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.exam-location-box h4 {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.salon-sira-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.salon-box,
.sira-box {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 15px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.salon-box span,
.sira-box span {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
    letter-spacing: 1px;
}

.salon-box strong,
.sira-box strong {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.doc-footer {
    background: linear-gradient(135deg, #f0f2f5, #e4e7ec);
    padding: 15px 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
    border-top: 2px solid #2d3154;
}

.btn-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-actions button {
    margin: 0 5px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 5mm;
    }

    body {
        background: white !important;
        min-height: auto !important;
    }

    .search-container,
    .btn-actions,
    nav,
    #searchArea,
    #msgBox {
        display: none !important;
    }

    #documentArea {
        display: block !important;
    }

    .document {
        position: relative;
        margin: 0;
        padding: 0;
        box-shadow: none;
        width: 100%;
        min-height: auto;
        border: 1px solid #999;
        page-break-after: avoid;
        page-break-inside: avoid;
        overflow: visible;
    }

    .doc-header {
        padding: 5px 15px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .doc-subtitle {
        padding: 4px;
        font-size: 0.85rem;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .doc-header p {
        font-size: 0.70rem;
    }

    .doc-body {
        padding: 10px 15px;
    }

    .info-table {
        margin-bottom: 5px;
        font-size: 0.75rem;
    }

    .info-table td {
        padding: 3px 8px;
    }

    .info-table .label {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .exam-location-box {
        padding: 10px;
        margin-bottom: 5px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .exam-location-box h4 {
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .salon-box,
    .sira-box {
        padding: 5px 15px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .salon-box strong,
    .sira-box strong {
        font-size: 2rem;
    }

    .doc-footer {
        padding: 5px 10px;
        font-size: 0.6rem;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .doc-contact-footer {
        margin-top: 5px !important;
        padding-top: 5px !important;
        font-size: 0.6rem !important;
    }
}

@media (max-width: 768px) {
    .document {
        width: auto;
        min-height: auto;
        margin: 10px;
        border-radius: 12px;
    }

    .doc-header {
        padding: 15px;
    }

    .doc-header h3 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .doc-header p {
        font-size: 0.8rem;
    }

    .doc-subtitle {
        font-size: 0.95rem;
        padding: 10px;
    }

    .doc-body {
        padding: 15px;
    }

    /* Mobilde tabloyu dikey düzene çevir */
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table {
        border: 2px solid #2d3154;
    }

    .info-table tr {
        border-bottom: 2px solid #2d3154;
    }

    .info-table tr:last-child {
        border-bottom: none;
    }

    .info-table td {
        border: none;
        border-bottom: 1px solid #dee2e6;
        padding: 8px 12px;
    }

    .info-table td:last-child {
        border-bottom: none;
    }

    .info-table .label {
        width: 100%;
        font-size: 0.7rem;
        padding: 6px 12px;
        border-right: none;
        border-bottom: none;
        background: linear-gradient(135deg, #f0f2f5, #e4e7ec);
    }

    .info-table .value {
        font-size: 0.9rem;
        padding: 8px 12px;
        font-weight: 700;
    }

    .exam-location-box {
        padding: 15px;
        border-radius: 10px;
    }

    .exam-location-box h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .salon-sira-container {
        flex-direction: column;
        gap: 10px;
    }

    .salon-box,
    .sira-box {
        padding: 10px 20px;
    }

    .salon-box strong,
    .sira-box strong {
        font-size: 2rem;
    }

    .doc-footer {
        padding: 10px 15px;
        font-size: 0.7rem;
    }
}