:root { --primary: #2563eb; --bg: #f8fafc; --text: #1e293b; --danger: #ef4444; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); padding: 20px; line-height: 1.6; }
.container { max-width: 800px; margin: 0 auto; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

.app-header { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.app-logo { width: 80px; height: auto; }
h2 { color: var(--primary); text-align: center; }

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.5s; }

input, textarea, select, button { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; }
button { background: var(--primary); color: white; font-weight: bold; cursor: pointer; border: none; transition: 0.2s; }
button:hover { opacity: 0.9; }
button.secondary { background: #64748b; }
button.danger { background: var(--danger); }

.button-group, .date-selection-group { display: flex; gap: 10px; }
.date-selection-group select { flex: 2; }
.date-selection-group input { flex: 1; }

/* Hesaplama Bilgisi Stilleri (YENİ) */
.calc-box { margin-bottom: 15px; padding: 10px; background: #f1f5f9; border-radius: 8px; }
.calc-box label { font-weight: bold; font-size: 0.95em; }
.stat-info { font-size: 0.9em; color: var(--primary); margin-top: -5px; margin-bottom: 5px; }

.global-settings { background: #eff6ff; padding: 10px; border-radius: 6px; border: 1px solid #bfdbfe; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 15px; }
.global-settings input { padding: 5px; text-align: center; }

.person-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #eee; }
.person-name { flex: 2; font-weight: bold; }
.small-input { width: 60px; text-align: center; padding: 8px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 20px; border-radius: 8px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.day-box { padding: 10px; text-align: center; background: #e2e8f0; cursor: pointer; border-radius: 4px; font-size: 0.9em; user-select: none; }
.day-box.weekend { border: 2px solid #f59e0b; }
.day-box.selected { background: var(--danger); color: white; text-decoration: line-through; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #cbd5e1; padding: 10px; text-align: center; }
th { background: var(--primary); color: white; }
tr:nth-child(even) { background: #f1f5f9; }
.weekend-row { background-color: #fff7ed !important; }

.suggestion-box { margin-top:20px; padding:15px; background:#fff1f2; border:1px solid var(--danger); border-radius:8px; display:none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- YÜKLENİYOR ANİMASYONU --- */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid var(--primary); /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- LİMİT UYARILARI --- */
.limit-reached {
    color: #dc2626 !important; /* Koyu Kırmızı */
    font-weight: 800 !important; /* Çok Kalın */
    background-color: #fee2e2; /* Hafif kırmızı arka plan */
}