/* =========================================================================
   Bordro UI — Tailwind ile birlikte çalışan, modüle özel kurallar
   (otopark_gider + 360 ile paralel görsel dil)
   ========================================================================= */

body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }

/* ========================================================================
   Card hover effect (otopark dilinden)
   ======================================================================== */
.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* ========================================================================
   Status badges (otopark renkleri ile uyumlu)
   ======================================================================== */
.badge-beklemede   { background: #fef3c7; color: #92400e; }
.badge-onaylandi   { background: #d1fae5; color: #065f46; }
.badge-reddedildi  { background: #fee2e2; color: #991b1b; }

.tax-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.tax-badge.net    { background: #e0f2fe; color: #075985; }
.tax-badge.gross  { background: #fef3c7; color: #92400e; }

/* ========================================================================
   Bordro detay sayfası — özel bileşenler
   ======================================================================== */
.payroll-banner {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 24px 28px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row.subtotal {
    font-weight: 600;
    background: #f9fafb;
    margin: 6px -16px;
    padding: 8px 16px;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none;
}
.detail-row.total {
    font-weight: 600;
    background: #f9fafb;
    margin: 8px -16px -14px;
    padding: 14px 16px;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
}

.detail-amount { font-variant-numeric: tabular-nums; }
.amount-positive { color: #059669; }
.amount-negative { color: #dc2626; }

/* Net ödeme bandı */
.net-payment-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 22px 28px;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.net-payment-bar .net-label {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.net-payment-bar .net-amount {
    color: #4ade80;
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ========================================================================
   Upload area (drag & drop)
   ======================================================================== */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.15s ease;
}
.upload-area:hover,
.upload-area.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}
.file-input { display: none; }

.selected-file {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.selected-file.active { display: flex; }

.progress-container { display: none; margin-top: 16px; }
.progress-bar {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    transition: width 0.2s ease;
}

/* ========================================================================
   Modal (admin/users.php için)
   ======================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 100;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 20px;
    overflow-y: auto;
}
.modal.active { display: flex; }
.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 540px;
    overflow: hidden;
}
.modal-header {
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ========================================================================
   Print styles
   ======================================================================== */
@media print {
    body { background: white; }
    nav, footer, .no-print { display: none !important; }
    main { max-width: none; padding: 0; }
    .net-payment-bar { background: #1e293b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .payroll-banner  { background: #2563eb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
