body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f1f5f9; color: #0f172a; margin: 0; padding: 20px; }
.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1e293b; color: white; padding: 14px 24px; border-radius: 10px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); font-size: 14px; font-weight: 600; animation: slideIn 0.3s forwards, fadeOut 0.3s forwards 2.7s; }
.toast.success { background: #10b981; } .toast.error { background: #ef4444; } .toast.warning { background: #f59e0b; color: #1e293b; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.system-switcher { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
.btn-switch { background: #e2e8f0; color: #475569; border: none; padding: 12px 24px; border-radius: 10px; font-weight: bold; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.admin-container { max-width: 1250px; margin: 0 auto; }
.employee-container { max-width: 480px; margin: 0 auto; }
.hidden { display: none !important; }

/* SEKMELER */
.admin-tabs-nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.tab-btn { background: transparent; border: none; padding: 10px 20px; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.tab-btn:hover { background: #f1f5f9; color: #0f172a; }
.tab-btn.active { background: #1e40af; color: white; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 25px; border: 1px solid #e2e8f0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 25px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 25px; }
.stat-card { background: white; padding: 20px; border-radius: 16px; display: flex; align-items: center; gap: 20px; border: 1px solid #e2e8f0; }
.stat-icon { font-size: 28px; padding: 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-info h3 { margin: 0; font-size: 28px; font-weight: 800; color: #1e293b; }
.stat-info p { margin: 5px 0 0 0; color: #64748b; font-size: 14px; font-weight: 600; }
.menu-form-block { background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px; border-radius: 10px; margin-bottom: 12px; }

.macro-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macro-inputs input { text-align: center; font-size: 12px !important; padding: 7px !important; }

.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 15px; min-width: 500px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.data-table th { background: #f8fafc; font-weight: 700; color: #475569; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #334155; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; font-size: 13px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1e40af; }

.btn-primary { background: #1e40af; color: white; border: none; padding: 11px 18px; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 13px; }
.btn-primary:hover { background: #1d4ed8; }
.btn-export { background: white; border: 1px solid #cbd5e1; padding: 9px 14px; border-radius: 8px; cursor: pointer; margin-right: 6px; font-weight: 600; font-size: 12px; }
.badge-code { background: #e0f2fe; color: #0369a1; padding: 3px 6px; border-radius: 5px; font-weight: bold; font-size: 11px; }

.menu-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; margin-bottom: 15px; }
.menu-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.menu-item-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.menu-item-macro { font-size: 12px; color: #475569; background: #e2e8f0; padding: 3px 8px; border-radius: 5px; display: inline-block; width: fit-content; font-weight: 600; }
.selection-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 18px; margin-top: 15px; }
.selection-box h4 { margin-top: 0; margin-bottom: 12px; color: #166534; font-size: 15px; }

.radio-option { display: flex; align-items: center; gap: 12px; background: white; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.radio-option input { width: 18px; height: 18px; margin: 0; accent-color: #10b981; }
.menu-action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.btn-nav { background: white; border: 1px solid #cbd5e1; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: bold; font-size: 13px; }
.btn-nav.active { background: #1e40af; color: white; border-color: #1e40af; }
.warning-text { color: #ef4444; font-size: 12px; font-weight: 700; text-align: center; margin-top: 10px; margin-bottom: 0; }

/* MODAL VE ARŞİV EKLENTİLERİ */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); display: flex; justify-content: center; align-items: center; z-index: 10000; backdrop-filter: blur(4px); }
.modal-content { background: white; padding: 25px; border-radius: 16px; width: 90%; max-width: 450px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.archive-day-card { border: 1px solid #e2e8f0; background: white; border-radius: 12px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.archive-day-header { background: #f8fafc; padding: 15px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.archive-day-menu { padding: 15px 20px; background: #fffbeb; border-bottom: 1px dashed #fcd34d; font-size: 13px; color: #92400e; font-weight: 600; }
.archive-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.archive-table th { background: #f1f5f9; padding: 10px 20px; text-align: left; color: #475569; font-weight: bold; border-bottom: 1px solid #e2e8f0; }
.archive-table td { padding: 12px 20px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.percentage-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; font-weight: bold; font-size: 12px; }
.badge-high { background: #d1fae5; color: #065f46; }
.badge-low { background: #fee2e2; color: #991b1b; }

@media (max-width: 640px) {
    body { padding: 12px; }
    .card { padding: 16px; border-radius: 12px; }
    .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .admin-tabs-nav { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .tab-btn { flex: 0 0 auto; padding: 9px 12px; font-size: 12px; }
    .macro-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-action-buttons { grid-template-columns: 1fr; }
    .archive-day-header { align-items: flex-start; gap: 8px; flex-direction: column; }
    .toast-container { left: 12px; right: 12px; top: 12px; }
    .toast { width: 100%; box-sizing: border-box; }
}
/* YENİ GÜVENLİK EKRANLARI İÇİN İLAVELER */
.login-card[style*="border"] { box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15) !important; }