/* ── Clinical Elegance Design System (Aydınlık Tema) ─────────── */
:root {
    --bg-main: #f0f4f8; /* Çok açık hastane mavisi/gri */
    --bg-card: #ffffff;
    --border-soft: #e2e8f0;
    --clr-text-main: #0f172a;
    --clr-text-muted: #64748b;
    
    /* Kurumsal Hastane Renkleri */
    --clr-primary: #0284c7; /* Güven veren derin mavi */
    --clr-primary-hover: #0369a1;
    --clr-accent: #0ea5e9; /* Enerjik açık mavi */
    
    --clr-success: #059669;
    --clr-success-bg: #d1fae5;
    --clr-danger: #e11d48;
    --clr-danger-bg: #ffe4e6;
    
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.1);
    
    --radius-card: 24px;
    --radius-pill: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-main);
    color: var(--clr-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Dashboard Layout ────────────────────────────────────────── */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--clr-primary);
}

.logo-section p {
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--clr-text-muted);
    font-weight: 600;
    margin-top: 5px;
}

/* ── Doctor Card (Dashboard) ────────────────────────────────── */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.db-card {
    position: relative;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.db-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #bae6fd;
}

.wait-indicator {
    position: absolute;
    top: 25px; right: 25px;
    padding: 6px 15px;
    background: #e0f2fe;
    color: var(--clr-primary);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
}

.card-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-img {
    width: 80px; height: 80px;
    border-radius: 50%; /* Yuvarlak resim daha ferah durur */
    object-fit: cover;
    border: 3px solid #f8fafc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-info h4 { font-size: 17px; margin-bottom: 4px; color: var(--clr-text-main); font-weight: 800; }
.card-info p { font-size: 13px; color: var(--clr-text-muted); font-weight: 500; }

/* ── Yepyeni Buton Tasarımları (Hap/Pill Şekli) ───────────────────────── */
.btn-modern {
  background-color: var(--clr-primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 14px 24px;
  transition: all 0.3s ease;
  width: 100%;
  display: block;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-modern span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-modern:hover {
  background-color: var(--clr-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}

/* İkincil Butonlar (Gri Hatlı) */
.btn-modern.secondary {
    background: white;
    color: var(--clr-text-main);
    border: 2px solid var(--border-soft);
    box-shadow: none;
}
.btn-modern.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Excel Butonu (Yeşil) */
.btn-excel-custom {
  background-color: var(--clr-success);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}
.btn-excel-custom:hover { background-color: #047857; }

/* Sıfırla Butonu (Kırmızı) */
.btn-reset-custom {
  background-color: var(--clr-danger-bg);
  color: var(--clr-danger);
  box-shadow: none;
}
.btn-reset-custom:hover { background-color: #fecdd3; color: #be123c; }

/* ── Inputs & Forms ──────────────────────────────────────────── */
.input-group {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--clr-accent);
    background: white;
    box-shadow: 0 0 0 4px #e0f2fe;
}

.input-modern {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 14px 20px !important;
    color: var(--clr-text-main);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    font-weight: 500;
}

.input-modern::placeholder {
    color: #94a3b8;
}

.add-btn {
    background: var(--clr-primary) !important;
    border: none !important;
    color: white !important;
    width: 60px !important;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover { background: var(--clr-primary-hover) !important; }

/* ── Doctor Page (doctor.html) Specific ──────────────────────── */
.doctor-hero {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    height: 450px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.doc-hero-info {
    position: absolute; 
    bottom: 0; left: 0; right: 0; 
    padding: 30px; 
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0) 100%);
    color: white;
}

.doc-hero-info h1 { font-size: 2rem; margin-bottom: 5px; }
.doc-hero-info p { opacity: 0.8; font-weight: 500; margin-bottom: 15px;}
.doc-hero-wait { display:inline-block; padding:8px 15px; background:var(--clr-primary); border-radius:50px; font-weight:800; font-size:12px; }


.action-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.panel-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.panel-title {
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--clr-text-muted);
    margin-bottom: 25px;
    font-weight: 800;
}

.list-panel {
    max-height: 500px;
    overflow-y: auto;
}

.patient-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8fafc;
    margin-bottom: 10px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    transition: 0.3s;
    font-weight: 600;
    color: var(--clr-text-main);
}

.patient-row:hover {
    background: white;
    border-color: var(--clr-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ── Sürükle Bırak (Drag & Drop) Stilleri ───────────────────── */
.drag-handle {
    cursor: grab;
    color: var(--clr-text-muted);
    margin-right: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.drag-handle:active {
    cursor: grabbing;
}

.patient-row.sortable-ghost {
    opacity: 0.4;
    background: #e2e8f0;
    border: 2px dashed var(--clr-primary);
}

.patient-row.sortable-drag {
    background: white;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
    transform: scale(1.02);
}

/* ── Tahmini Bekleme Süresi İndikatörü ──────────────────────── */
.time-indicator {
    font-size: 12px;
    font-weight: 700;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Toast Bildirimleri ────────────────────────────────────────── */
#toastContainer { position: fixed; top: 30px; right: 30px; z-index: 100; }

.toast {
    background: var(--bg-card);
    color: var(--clr-text-main);
    padding: 15px 25px;
    border-radius: 16px;
    border-left: 5px solid var(--clr-primary);
    margin-bottom: 10px;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.5s forwards;
    font-weight: 700;
    font-size: 14px;
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ── Mobil Takip Ekranı (mobile.html) ──────────────────────── */
.mobile-body {
    background: var(--bg-main);
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.mobile-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-header { text-align: center; margin-bottom: 30px; }
.mobile-header h2 { color: var(--clr-primary); font-weight: 900; font-size: 1.5rem; }
.mobile-header p { color: var(--clr-text-muted); font-size: 13px; margin-top: 5px; }

.search-box { margin-bottom: 30px; }
.search-box input {
    width: 100%;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    padding: 20px !important;
    font-size: 16px;
    border-radius: 20px;
    text-align: center;
    font-weight: 700;
}
.search-box input:focus {
    border-color: var(--clr-primary) !important;
    background: white !important;
}

.result-area { flex: 1; }
.mobile-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--clr-text-muted);
    background: #f8fafc;
    border-radius: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.mobile-card {
    background: white;
    border: 2px solid var(--clr-primary);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.mc-patient {
    font-size: 20px; font-weight: 900; color: var(--clr-text-main);
    margin-bottom: 15px; text-transform: uppercase; text-align: center;
    border-bottom: 1px solid #e2e8f0; padding-bottom: 15px;
}
.mc-doctor { font-weight: 800; color: var(--clr-primary); font-size: 16px; text-align: center; }
.mc-dept { color: var(--clr-text-muted); font-size: 13px; margin-bottom: 20px; text-align: center; }

.mc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mc-stat-box { background: #f8fafc; padding: 15px; border-radius: 15px; text-align: center; display: flex; flex-direction: column; }
.mc-stat-box span { font-size: 11px; color: var(--clr-text-muted); font-weight: 700; margin-bottom: 5px; }
.mc-stat-box strong { font-size: 22px; color: var(--clr-text-main); }
.mc-stat-box.highlight { background: #e0f2fe; }
.mc-stat-box.highlight strong { color: var(--clr-primary); }

.mobile-footer { text-align: center; margin-top: 30px; font-size: 11px; color: #cbd5e1; font-weight: 600; }
