/**
 * Atazen Demirbaş Zimmet - Modern Frontend CSS v2.0
 */

:root {
    --atazen-primary: #0f172a;
    --atazen-primary-light: #1e3a5f;
    --atazen-accent: #3b82f6;
    --atazen-accent-dark: #2563eb;
    --atazen-accent-glow: rgba(59, 130, 246, 0.12);
    --atazen-success: #059669;
    --atazen-success-light: #ecfdf5;
    --atazen-warning: #d97706;
    --atazen-warning-light: #fffbeb;
    --atazen-danger: #dc2626;
    --atazen-danger-light: #fef2f2;
    --atazen-secondary: #64748b;
    --atazen-bg: #f1f5f9;
    --atazen-card: #ffffff;
    --atazen-text: #0f172a;
    --atazen-text-light: #64748b;
    --atazen-border: #e2e8f0;
    --atazen-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    --atazen-shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
    --atazen-radius: 16px;
    --atazen-radius-sm: 10px;
    --atazen-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --atazen-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ═══════ RESET ═══════ */
.atazen-zimmet-detay *,
.atazen-evrak-wrapper *,
.atazen-search-container * {
    box-sizing: border-box;
    font-family: var(--atazen-font);
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes atazen-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes atazen-slide-right {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes atazen-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ═══════ ERROR ═══════ */
.atazen-error {
    background: var(--atazen-danger-light);
    color: var(--atazen-danger);
    padding: 16px 20px;
    border-radius: var(--atazen-radius-sm);
    margin: 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #fca5a5;
    animation: atazen-fade-in 0.4s ease-out;
}

/* ═══════════════════════════════════════════════════════════
   SORGULAMA FORMU
   ═══════════════════════════════════════════════════════════ */
.atazen-search-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    animation: atazen-fade-in 0.6s ease-out;
}

.atazen-search-box {
    background: var(--atazen-card);
    border-radius: var(--atazen-radius);
    padding: 48px 40px;
    box-shadow: var(--atazen-shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.atazen-search-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--atazen-accent), #7c3aed, var(--atazen-accent));
    background-size: 200% 100%;
    animation: atazen-gradient-shift 3s ease infinite;
}

@keyframes atazen-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.atazen-search-box h2 {
    font-size: 26px;
    color: var(--atazen-text);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
}

.atazen-search-box h2 svg {
    color: var(--atazen-accent);
}

.atazen-search-box > p {
    color: var(--atazen-text-light);
    margin-bottom: 32px;
    font-size: 15px;
}

.atazen-search-form {
    text-align: left;
}

.atazen-form-group {
    margin-bottom: 20px;
}

.atazen-form-group label {
    display: block;
    font-weight: 700;
    color: var(--atazen-text);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.atazen-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--atazen-border);
    border-radius: var(--atazen-radius-sm);
    font-size: 16px;
    transition: all 0.2s var(--atazen-ease);
    background: var(--atazen-bg);
}

.atazen-input:focus {
    outline: none;
    border-color: var(--atazen-accent);
    box-shadow: 0 0 0 4px var(--atazen-accent-glow);
    background: #fff;
}

.atazen-form-divider {
    text-align: center;
    margin: 24px 0;
    color: var(--atazen-text-light);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.atazen-form-divider::before,
.atazen-form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--atazen-border);
}

.atazen-form-divider::before { left: 0; }
.atazen-form-divider::after { right: 0; }

.atazen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--atazen-radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--atazen-ease);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.atazen-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.atazen-btn:hover::before { left: 100%; }

.atazen-btn svg {
    width: 18px;
    height: 18px;
}

.atazen-btn-primary {
    background: linear-gradient(135deg, var(--atazen-accent) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.atazen-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

.atazen-btn-secondary {
    background: var(--atazen-primary);
    color: white;
}

.atazen-btn-secondary:hover {
    background: var(--atazen-primary-light);
    color: white;
}

.atazen-btn-ghost {
    background: transparent;
    color: var(--atazen-text-light);
    border: 1.5px solid var(--atazen-border);
}

.atazen-btn-ghost:hover {
    background: var(--atazen-bg);
    border-color: var(--atazen-accent);
    color: var(--atazen-accent);
}

/* ═══════ TC SONUC ═══════ */
.atazen-zimmet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.atazen-zimmet-card {
    background: var(--atazen-card);
    border-radius: var(--atazen-radius);
    padding: 24px;
    box-shadow: var(--atazen-shadow);
    border: 1.5px solid var(--atazen-border);
    transition: all 0.3s var(--atazen-ease);
    animation: atazen-fade-in 0.4s ease-out;
}

.atazen-zimmet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--atazen-shadow-lg);
    border-color: var(--atazen-accent);
}

.atazen-zimmet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.atazen-zimmet-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--atazen-text);
    font-weight: 700;
}

.atazen-zimmet-card-body p {
    margin: 8px 0;
    color: var(--atazen-text-light);
    font-size: 14px;
}

.atazen-zimmet-card-body strong {
    color: var(--atazen-text);
}

.atazen-zimmet-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--atazen-border);
}

.atazen-zimmet-card-footer .atazen-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   ZİMMET DETAY SAYFASI
   ═══════════════════════════════════════════════════════════ */
.atazen-zimmet-detay {
    background: var(--atazen-card);
    border-radius: var(--atazen-radius);
    box-shadow: var(--atazen-shadow-lg);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    animation: atazen-fade-in 0.5s ease-out;
}

.atazen-zimmet-header {
    background: linear-gradient(135deg, var(--atazen-primary) 0%, var(--atazen-accent) 100%);
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.atazen-zimmet-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.atazen-zimmet-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.atazen-zimmet-header-content {
    position: relative;
    z-index: 1;
}

.atazen-zimmet-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.atazen-zimmet-subtitle {
    font-size: 15px;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

.atazen-zimmet-qr {
    text-align: center;
    position: relative;
    z-index: 1;
}

.atazen-zimmet-qr img {
    width: 120px;
    height: 120px;
    background: white;
    padding: 10px;
    border-radius: var(--atazen-radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s var(--atazen-ease);
}

.atazen-zimmet-qr img:hover {
    transform: scale(1.08);
}

.atazen-qr-label {
    display: block;
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
    font-weight: 500;
}

/* ═══════ FOTOĞRAF ═══════ */
.atazen-zimmet-foto {
    text-align: center;
    padding: 20px 40px 0;
}
.atazen-zimmet-foto img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--atazen-radius-sm);
    box-shadow: var(--atazen-shadow);
}

/* ═══════ TC KART FOTOĞRAF ═══════ */
.atazen-zimmet-card-foto {
    text-align: center;
    padding: 12px 12px 0;
}
.atazen-zimmet-card-foto img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: var(--atazen-radius-sm);
}

/* ═══════ STATUS BAR ═══════ */
.atazen-zimmet-status-bar {
    display: flex;
    gap: 40px;
    padding: 20px 40px;
    background: var(--atazen-bg);
    border-bottom: 1px solid var(--atazen-border);
}

.atazen-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.atazen-status-label {
    font-size: 13px;
    color: var(--atazen-text-light);
    font-weight: 600;
}

.atazen-status-value {
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atazen-status-musait {
    background: var(--atazen-success-light);
    color: var(--atazen-success);
    border: 1.5px solid #a7f3d0;
}

.atazen-status-zimmetli {
    background: var(--atazen-warning-light);
    color: var(--atazen-warning);
    border: 1.5px solid #fde68a;
}

/* ═══════ DETAIL GRID ═══════ */
.atazen-zimmet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.atazen-zimmet-section {
    padding: 36px 40px;
    border-bottom: 1px solid var(--atazen-border);
    animation: atazen-slide-right 0.5s ease-out;
}

.atazen-zimmet-section:nth-child(odd) {
    border-right: 1px solid var(--atazen-border);
}

.atazen-zimmet-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--atazen-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.atazen-zimmet-section h2 svg {
    color: var(--atazen-accent);
}

/* ═══════ INFO GRID ═══════ */
.atazen-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.atazen-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--atazen-bg);
    border-radius: 8px;
    border: 1px solid var(--atazen-border);
    transition: border-color 0.2s;
}

.atazen-info-item:hover {
    border-color: var(--atazen-accent);
}

.atazen-info-label {
    font-size: 11px;
    color: var(--atazen-text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.atazen-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--atazen-text);
}

.atazen-info-desc {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--atazen-border);
}

.atazen-info-desc p {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--atazen-text-light);
}

/* ═══════ PERSONEL CARD ═══════ */
.atazen-personel-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border-radius: var(--atazen-radius-sm);
    margin-bottom: 24px;
    border: 1.5px solid var(--atazen-border);
}

.atazen-personel-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--atazen-accent) 0%, #7c3aed 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.atazen-personel-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--atazen-text);
    font-weight: 700;
}

.atazen-personel-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--atazen-text-light);
}

/* ═══════ BOS MESAJ ═══════ */
.atazen-zimmet-bos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
}

.atazen-bos-mesaj {
    padding: 40px;
}

.atazen-bos-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: var(--atazen-success);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: atazen-pulse 2s ease-in-out infinite;
}

.atazen-bos-icon svg {
    width: 40px;
    height: 40px;
}

.atazen-bos-mesaj h3 {
    margin: 0 0 8px 0;
    color: var(--atazen-success);
    font-size: 20px;
    font-weight: 700;
}

.atazen-bos-mesaj p {
    margin: 0;
    color: var(--atazen-text-light);
    font-size: 15px;
}

/* ═══════ TIMELINE ═══════ */
.atazen-zimmet-gecmis {
    grid-column: 1 / -1;
    padding: 40px;
}

.atazen-timeline {
    position: relative;
    padding-left: 44px;
}

.atazen-timeline::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--atazen-accent), var(--atazen-border));
}

.atazen-timeline-item {
    position: relative;
    padding-bottom: 24px;
    animation: atazen-slide-right 0.5s ease-out;
}

.atazen-timeline-item:nth-child(n) {
    animation-delay: calc(0.1s * var(--i, 0));
}

.atazen-timeline-marker {
    position: absolute;
    left: -44px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--atazen-accent), #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.atazen-timeline-content {
    background: var(--atazen-bg);
    padding: 20px 24px;
    border-radius: var(--atazen-radius-sm);
    border: 1px solid var(--atazen-border);
    transition: all 0.2s var(--atazen-ease);
}

.atazen-timeline-content:hover {
    border-color: var(--atazen-accent);
    box-shadow: 0 4px 12px rgba(59,130,246,0.08);
}

.atazen-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.atazen-timeline-personel {
    font-weight: 700;
    color: var(--atazen-text);
    font-size: 15px;
}

.atazen-timeline-date {
    font-size: 13px;
    color: var(--atazen-text-light);
    font-weight: 500;
}

.atazen-timeline-status {
    display: flex;
    gap: 12px;
    align-items: center;
}

.atazen-timeline-iade {
    font-size: 13px;
    color: var(--atazen-text-light);
}

/* ═══════ BADGE ═══════ */
.atazen-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.atazen-badge-musait {
    background: var(--atazen-success-light, #ecfdf5);
    color: var(--atazen-success, #059669);
    border: 1.5px solid #a7f3d0;
}

.atazen-badge-zimmetli {
    background: var(--atazen-warning-light, #fffbeb);
    color: var(--atazen-warning, #d97706);
    border: 1.5px solid #fde68a;
}

.atazen-badge-aktif {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #bfdbfe;
}

.atazen-badge-iade {
    background: var(--atazen-danger-light, #fef2f2);
    color: var(--atazen-danger, #dc2626);
    border: 1.5px solid #fca5a5;
}

/* ═══════ FOOTER ═══════ */
.atazen-zimmet-footer {
    padding: 24px 40px;
    background: var(--atazen-bg);
    border-top: 1px solid var(--atazen-border);
    text-align: center;
    font-size: 13px;
    color: var(--atazen-text-light);
}

.atazen-zimmet-footer p {
    margin: 4px 0;
}

/* ═══════════════════════════════════════════════════════════
   RESMİ EVRAK STİLLERİ
   ═══════════════════════════════════════════════════════════ */
.atazen-evrak-wrapper {
    max-width: 210mm;
    margin: 0 auto;
    padding: 20px;
    animation: atazen-fade-in 0.5s ease-out;
}

.atazen-evrak-print-actions {
    text-align: center;
    margin-bottom: 24px;
}

.atazen-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--atazen-accent) 0%, #7c3aed 100%);
    border: none;
    border-radius: var(--atazen-radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--atazen-ease);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
    position: relative;
    overflow: hidden;
}

.atazen-btn-print::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.atazen-btn-print:hover::before { left: 100%; }

.atazen-btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.atazen-btn-print svg {
    width: 18px;
    height: 18px;
}

/* Evrak Kagidi */
.atazen-evrak {
    background: white;
    border: 1px solid #d1d5db;
    padding: 30px;
    box-shadow: var(--atazen-shadow-lg);
    border-radius: 2px;
}

.atazen-evrak-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 3px double #000;
    margin-bottom: 20px;
}

.atazen-evrak-logo img {
    max-width: 80px;
    max-height: 80px;
}

.atazen-evrak-baslik {
    flex: 1;
    text-align: center;
}

.atazen-evrak-baslik h1 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.atazen-evrak-baslik h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.atazen-evrak-baslik p {
    font-size: 12px;
    margin: 0;
    color: #666;
}

.atazen-evrak-qr img {
    width: 80px;
    height: 80px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    border-radius: 4px;
}

.atazen-evrak-tarih {
    text-align: right;
    margin-bottom: 20px;
    font-size: 12px;
    color: #333;
}

.atazen-evrak-section {
    margin-bottom: 25px;
}

.atazen-evrak-section h3 {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 10px 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid var(--atazen-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atazen-evrak-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.atazen-evrak-table th,
.atazen-evrak-table td {
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    text-align: left;
}

.atazen-evrak-table th {
    background: #f8f9fa;
    font-weight: 700;
    width: 20%;
    color: #374151;
}

.atazen-evrak-text {
    font-size: 12px;
    line-height: 1.7;
    text-align: justify;
}

.atazen-evrak-imzalar {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    gap: 50px;
}

.atazen-evrak-imza {
    text-align: center;
    flex: 1;
}

.atazen-imza-cizgi {
    border-bottom: 1px solid #000;
    margin-bottom: 10px;
    height: 60px;
}

.atazen-evrak-imza p {
    margin: 5px 0;
    font-size: 12px;
}

.atazen-evrak-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #d1d5db;
    text-align: center;
    font-size: 10px;
    color: #666;
}

/* ═══════ RESPONSIVE ═══════ */

/* Genel taşma önleme */
.atazen-zimmet-detay,
.atazen-evrak-wrapper,
.atazen-search-container {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {

    /* ── ARAMA FORMU ── */
    .atazen-search-container {
        margin: 16px auto;
        padding: 8px;
    }

    .atazen-search-box {
        padding: 24px 16px;
        border-radius: var(--atazen-radius-sm);
    }

    .atazen-search-box h2 {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
    }

    .atazen-search-box > p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .atazen-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .atazen-form-divider {
        margin: 16px 0;
    }

    .atazen-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* ── ZİMMET DETAY SAYFASI ── */
    .atazen-zimmet-detay {
        border-radius: 8px;
    }

    .atazen-zimmet-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
        gap: 14px;
    }

    .atazen-zimmet-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .atazen-zimmet-subtitle {
        font-size: 12px;
    }

    .atazen-zimmet-qr img {
        width: 80px;
        height: 80px;
        padding: 6px;
    }

    .atazen-qr-label {
        font-size: 10px;
    }

    /* Fotoğraf */
    .atazen-zimmet-foto {
        padding: 12px 12px 0;
    }

    .atazen-zimmet-foto img {
        max-height: 180px;
    }

    /* Status bar */
    .atazen-zimmet-status-bar {
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px;
    }

    .atazen-status-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .atazen-status-label {
        font-size: 12px;
    }

    .atazen-status-value {
        font-size: 11px;
        padding: 4px 12px;
    }

    /* Grid tek sütun */
    .atazen-zimmet-grid {
        grid-template-columns: 1fr;
    }

    .atazen-zimmet-section:nth-child(odd) {
        border-right: none;
    }

    .atazen-zimmet-section {
        padding: 16px 14px;
    }

    .atazen-zimmet-section h2 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* Info grid: tek sütun */
    .atazen-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .atazen-info-item {
        padding: 10px 12px;
    }

    .atazen-info-label {
        font-size: 10px;
    }

    .atazen-info-value {
        font-size: 13px;
    }

    .atazen-info-desc {
        margin-top: 16px;
        padding-top: 16px;
    }

    .atazen-info-desc p {
        font-size: 13px;
    }

    /* Personel card */
    .atazen-personel-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px;
    }

    .atazen-personel-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 12px;
    }

    .atazen-personel-info h3 {
        font-size: 16px;
    }

    .atazen-personel-info p {
        font-size: 13px;
    }

    /* Boş mesaj */
    .atazen-bos-mesaj {
        padding: 24px 16px;
    }

    .atazen-bos-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .atazen-bos-icon svg {
        width: 30px;
        height: 30px;
    }

    .atazen-bos-mesaj h3 {
        font-size: 16px;
    }

    .atazen-bos-mesaj p {
        font-size: 13px;
    }

    /* Timeline (zimmet geçmişi) */
    .atazen-zimmet-gecmis {
        padding: 16px 14px;
    }

    .atazen-timeline {
        padding-left: 32px;
    }

    .atazen-timeline::before {
        left: 11px;
    }

    .atazen-timeline-marker {
        left: -32px;
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .atazen-timeline-content {
        padding: 12px;
    }

    .atazen-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
    }

    .atazen-timeline-personel {
        font-size: 13px;
    }

    .atazen-timeline-date {
        font-size: 12px;
    }

    .atazen-timeline-status {
        flex-wrap: wrap;
        gap: 8px;
    }

    .atazen-timeline-iade {
        font-size: 12px;
    }

    /* Footer */
    .atazen-zimmet-footer {
        padding: 14px;
        font-size: 11px;
    }

    .atazen-zimmet-footer p {
        margin: 3px 0;
    }

    /* ── TC SONUÇ KARTLARI ── */
    .atazen-zimmet-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .atazen-zimmet-card {
        padding: 16px;
    }

    .atazen-zimmet-card-header h3 {
        font-size: 15px;
    }

    .atazen-zimmet-card-body p {
        font-size: 13px;
        margin: 6px 0;
    }

    .atazen-zimmet-card-footer {
        margin-top: 14px;
        padding-top: 12px;
    }

    .atazen-zimmet-card-foto img {
        max-height: 120px;
    }

    /* ── EVRAK (Zimmet Formu) ── */
    .atazen-evrak-wrapper {
        max-width: 100%;
        padding: 4px;
    }

    .atazen-evrak {
        padding: 14px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .atazen-evrak-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-bottom: 12px;
    }

    .atazen-evrak-logo img {
        max-width: 50px;
        max-height: 50px;
    }

    .atazen-evrak-baslik h1 {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .atazen-evrak-baslik h2 {
        font-size: 12px;
    }

    .atazen-evrak-baslik p {
        font-size: 10px;
    }

    .atazen-evrak-qr img {
        width: 55px;
        height: 55px;
    }

    .atazen-evrak-tarih {
        font-size: 11px;
        margin-bottom: 14px;
    }

    /* Evrak section başlık */
    .atazen-evrak-section {
        margin-bottom: 16px;
    }

    .atazen-evrak-section h3 {
        font-size: 11px;
        padding: 8px 10px;
        border-left-width: 3px;
    }

    /* Evrak tablo: th+td satır satır alt alta */
    .atazen-evrak-table {
        font-size: 12px;
    }

    .atazen-evrak-table,
    .atazen-evrak-table thead,
    .atazen-evrak-table tbody,
    .atazen-evrak-table tr,
    .atazen-evrak-table th,
    .atazen-evrak-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .atazen-evrak-table tr {
        border: 1px solid #d1d5db;
        margin-bottom: 6px;
        border-radius: 4px;
        overflow: hidden;
    }

    .atazen-evrak-table th {
        background: #f3f4f6;
        font-weight: 700;
        padding: 6px 10px;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #6b7280;
        border-bottom: none;
        border: none;
    }

    .atazen-evrak-table td {
        padding: 8px 10px;
        font-size: 13px;
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .atazen-evrak-table tr:last-child td:last-child {
        border-bottom: none;
    }

    .atazen-evrak-text {
        font-size: 11px;
        line-height: 1.6;
    }

    /* İmza alanları */
    .atazen-evrak-imzalar {
        flex-direction: column;
        gap: 24px;
        margin-top: 24px;
    }

    .atazen-imza-cizgi {
        height: 40px;
    }

    .atazen-evrak-imza p {
        font-size: 11px;
    }

    .atazen-evrak-footer {
        margin-top: 20px;
        padding-top: 14px;
        font-size: 9px;
    }

    /* Yazdır butonu */
    .atazen-evrak-print-actions {
        text-align: center;
        margin-bottom: 10px;
    }

    .atazen-btn-print {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 400px) {
    .atazen-zimmet-header {
        padding: 16px 10px;
    }

    .atazen-zimmet-title {
        font-size: 14px;
    }

    .atazen-zimmet-section {
        padding: 14px 10px;
    }

    .atazen-info-grid {
        gap: 6px;
    }

    .atazen-info-item {
        padding: 8px 10px;
    }

    .atazen-evrak {
        padding: 10px;
    }

    .atazen-evrak-baslik h1 {
        font-size: 11px;
    }

    .atazen-evrak-baslik h2 {
        font-size: 10px;
    }

    .atazen-evrak-table td {
        font-size: 12px;
        padding: 6px 8px;
    }

    .atazen-evrak-table th {
        font-size: 9px;
        padding: 5px 8px;
    }

    .atazen-search-box {
        padding: 20px 12px;
    }

    .atazen-search-box h2 {
        font-size: 16px;
    }
}

/* ═══════ PRINT ═══════ */
@media print {
    body {
        background: white !important;
    }

    .atazen-evrak-print-actions {
        display: none !important;
    }

    .atazen-evrak-wrapper {
        padding: 0;
    }

    .atazen-evrak {
        box-shadow: none;
        border: none;
    }

    .atazen-zimmet-detay {
        box-shadow: none;
        border-radius: 0;
    }

    .atazen-zimmet-header {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .atazen-btn,
    .atazen-btn-print {
        display: none !important;
    }
}
