/* 
 * ADKS - Aile Daire Kayıt Sistemi
 * Premium Red & White Theme
 * Responsive Design System
 */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #DC2626;         /* Premium Medical Red */
  --primary-hover: #B91C1C;   /* Darker Red */
  --primary-light: #FEF2F2;   /* Rose Tint */
  --primary-border: #FCA5A5;  /* Soft Red Border */
  --accent: #EF4444;          /* Vivid Red */
  --bg-main: #F9FAFB;         /* Light Gray Background */
  --bg-card: #FFFFFF;         /* Card White */
  --text-main: #1F2937;       /* Charcoal Text */
  --text-muted: #6B7280;      /* Muted Gray Text */
  --border-light: #E5E7EB;    /* Light Gray Border */
  --success: #10B981;         /* Green for Success */
  --warning: #F59E0B;         /* Amber for Warnings */
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px -5px rgba(220, 38, 38, 0.05), 0 8px 20px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Dark Theme Override Variables */
body.dark-theme {
  --bg-main: #0B0F19;         /* Premium Deep Dark Navy */
  --bg-card: #151F32;         /* Dark Card Background */
  --text-main: #F3F4F6;       /* White/Light Gray Text */
  --text-muted: #9CA3AF;      /* Muted Light Gray Text */
  --border-light: #1F2937;    /* Dark Gray Border */
  --primary-light: #2A0E12;   /* Deep Wine Dark Red */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Theme Toggle Icon visibility */
body.dark-theme .btn-theme-toggle .mode-icon-dark {
  display: none !important;
}
body.dark-theme .btn-theme-toggle .mode-icon-light {
  display: block !important;
}
body:not(.dark-theme) .btn-theme-toggle .mode-icon-dark {
  display: block !important;
}
body:not(.dark-theme) .btn-theme-toggle .mode-icon-light {
  display: none !important;
}

/* Dark mode styles for News Card */
body.dark-theme .news-card {
  background: linear-gradient(to right, var(--bg-card), var(--primary-light)) !important;
  border-color: rgba(220, 38, 38, 0.15) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .news-card-image-wrapper {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.05)) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
  height: 100vh;
}

/* Hide scrollbars globally for a clean native app experience */
::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge, Opera */
}

* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Screen Transitions */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

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

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}

/* --- LOGIN SCREEN --- */
.login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0b0f19;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1000;
}

.login-card {
  background-color: transparent;
  border: none;
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  box-sizing: border-box;
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-logo-svg {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: #dc2626;
  filter: none;
  transition: transform 0.2s ease;
}

.login-logo-svg:hover {
  transform: scale(1.03);
}

.logo-title-main {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.logo-title-sub {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.login-brand-desc {
  font-size: 13.5px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 32px;
}

.login-action-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-oauth {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border: none;
  box-sizing: border-box;
}

.btn-oauth * {
  pointer-events: none;
}

.btn-oauth.google {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-oauth.google:hover {
  background-color: #f3f4f6;
}

.btn-oauth.apple {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #1f2937;
}

.btn-oauth.apple:hover {
  background-color: #111827;
}

.btn-oauth .oauth-icon {
  width: 18px;
  height: 18px;
}

.btn-oauth .oauth-icon-fa {
  font-size: 18px;
}

.login-footer {
  margin-top: 36px;
  font-size: 11px;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.login-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid #374151;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  font-family: inherit;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.footer-legal-link:hover {
  color: #ffffff;
  border-color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-legal-link svg {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-legal-link:hover svg {
  opacity: 1;
}

/* Mobile Responsive Login Overrides */
@media (max-width: 640px) {
  .login-container {
    background-color: #0b0f19;
  }
  
  .login-card {
    width: 90% !important;
    max-width: 360px !important;
    height: auto !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 36px 24px !important;
    box-shadow: none !important;
    background-color: transparent !important;
  }
  
  .logo-title-main {
    font-size: 24px !important;
  }
  
  .login-brand-desc {
    font-size: 12.5px !important;
    margin-bottom: 24px !important;
  }
  
  .login-footer {
    margin-top: 28px !important;
  }
}

/* --- APP LAYOUT (DASHBOARD & DETAILS) --- */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar (Desktop) */
.sidebar {
  width: 280px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-item.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15);
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 180px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-border);
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-logout:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.main-header {
  height: 70px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 90;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cloud-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background-color: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  transition: var(--transition);
}

.cloud-status-badge.connected {
  background-color: #D1FAE5;
  color: #065F46;
  border-color: #A7F3D0;
}

.cloud-status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9CA3AF;
}

.cloud-status-badge.connected .dot {
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.content-body {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
}

/* Mobile Bottom Navigation Bar (Hidden on Desktop) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  flex: 1;
  padding: 6px 0;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-item.active {
  color: var(--primary);
}

/* --- DASHBOARD SECTION --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
  margin-bottom: 24px;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.card-title svg {
  color: var(--primary);
}

/* Profile Quick Info Widget */
.profile-overview-widget {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  border: 1px dashed var(--primary-border);
  margin-bottom: 20px;
}

.widget-info {
  flex: 1;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.widget-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Location Status Banner */
.location-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-permission-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px dashed var(--primary-border);
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.location-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: none;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.btn-danger {
  background-color: #EF4444;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-danger:hover {
  background-color: #DC2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Toggle Tabs for Location Lists */
.tab-header {
  display: flex;
  background-color: var(--bg-main);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background-color: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Pharmacy & Hospital List Card UI */
.facility-card {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: var(--transition);
  background-color: var(--bg-card);
  animation: fadeIn 0.3s ease;
}

.facility-card:hover {
  border-color: var(--primary-border);
  background-color: var(--primary-light);
}

.facility-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 75%;
}

.facility-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.facility-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-red {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-green {
  background-color: #D1FAE5;
  color: #065F46;
}

.facility-address {
  font-size: 12px;
  color: var(--text-muted);
}

.facility-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.facility-distance {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.btn-call {
  background-color: var(--primary-light);
  color: var(--primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-call:hover {
  background-color: var(--primary);
  color: var(--bg-card);
}

.btn-call svg {
  width: 16px;
  height: 16px;
}

/* Apartment Layout Plan Upload Styles */
.uploader-area {
  border: 2px dashed var(--primary-border);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  background-color: var(--bg-main);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.uploader-area:hover, .uploader-area.dragover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.uploader-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.uploader-text {
  font-size: 14px;
  color: var(--text-muted);
}

.uploader-text span {
  color: var(--primary);
  font-weight: 600;
}

#file-input {
  display: none;
}

.preview-container {
  width: 100%;
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: none;
  flex-direction: column;
  background-color: var(--bg-card);
}

.preview-container.active {
  display: flex;
}

.preview-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background-color: #F3F4F6;
  padding: 10px;
}

.preview-header {
  padding: 12px 16px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-info {
  display: flex;
  flex-direction: column;
}

.preview-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove-preview {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- PROFILE SCREEN (FORM) --- */
#screen-profile {
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

#profile-form {
  width: 100%;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-2 {
  grid-column: span 2;
}

/* Form fields layout is kept side-by-side to avoid giant stretched inputs */

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Custom Segmented / Button Style Choice for Yes/No */
.choice-selector {
  display: flex;
  background-color: var(--bg-main);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  gap: 4px;
}

.choice-option {
  flex: 1;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: var(--transition);
  color: var(--text-muted);
}

.choice-option.selected {
  background-color: var(--primary);
  color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  background-color: var(--bg-card);
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 30px;
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-badge.danger {
  background-color: #FEF2F2;
  color: #EF4444;
}

.modal-icon-badge.info {
  background-color: var(--primary-light);
  color: var(--primary);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--bg-card);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  transform: translateX(120%);
  animation: slideInLeft 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--primary);
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

@keyframes slideInLeft {
  to { transform: translateX(0); }
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

/* Sandwich Menu Default Styles */
.btn-menu-toggle {
  display: none;
}

.btn-sidebar-close {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* --- MOBILE RESPONSIVE ADAPTATIONS --- */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(280px);
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-wrapper {
    height: 100%;
  }

  .main-header {
    height: 60px;
    padding: 0 16px;
    display: flex !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .btn-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    border-radius: 8px;
  }

  .btn-menu-toggle:hover {
    background-color: var(--bg-hover);
  }

  .btn-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: 50%;
  }

  .btn-sidebar-close:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
  }

  .header-title {
    display: none !important;
  }

  .cloud-status-badge {
    display: none !important;
  }

  .content-body {
    padding: 12px;
  }

  .mobile-nav {
    display: none !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 16px;
  }

  /* ---- Profile Form Mobile ---- */
  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .span-2,
  .form-field.span-2 {
    grid-column: span 1 !important;
  }

  .form-group-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .form-section-title {
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-field {
    gap: 5px;
  }

  .form-field label {
    font-size: 13px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  .form-textarea {
    min-height: 72px;
  }

  .choice-option {
    padding: 10px 6px;
    font-size: 13px;
  }

  .form-actions-bar {
    position: static;
    margin-top: 20px;
    padding: 0;
    box-shadow: none;
    background: transparent;
    border-top: none;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
  }

  .form-actions-bar button {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 15px;
    border-radius: 12px;
  }

  .modal-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
  }

  .modal-actions button, .modal-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Custom Red & White Mockup Dashboard Styles */
.dashboard-mobile-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.user-greeting-wrapper {
  margin-bottom: 20px;
  padding-left: 4px;
}

.greeting-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.welcome-hello {
  color: var(--primary);
}

.greeting-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.top-emergency-card {
  background-color: transparent;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 24px;
  gap: 10px;
}

.emergency-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  gap: 4px;
  text-align: center;
  flex: 1;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.12);
  min-height: 76px;
}

.emergency-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background-color: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
}

.emergency-icon-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.turkish-pharmacy-e-box {
  width: 34px;
  height: 34px;
  background-color: white;
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.dashboard-section-wrapper {
  margin-bottom: 24px;
}

.section-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-left: 4px;
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 4px;
}

.settings-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.settings-grid-item:hover {
  transform: translateY(-2px);
}

.settings-grid-icon {
  width: 58px;
  height: 58px;
  background-color: #B91C1C;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 5px 12px rgba(185, 28, 28, 0.12);
}

.settings-grid-item span {
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  text-align: center;
}

.news-card {
  background: linear-gradient(to right, #FFFFFF, var(--primary-light));
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.02);
  border-color: rgba(220, 38, 38, 0.15);
}

.news-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 75%;
}

.news-card-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.8px;
  margin-bottom: -2px;
}

.news-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2px;
}

.news-card-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.news-card-btn {
  border: none;
  background-color: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
  transition: var(--transition);
  width: fit-content;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

.news-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #FEE2E2);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
  transition: var(--transition);
}

.news-card:hover .news-card-image-wrapper {
  transform: scale(1.05) rotate(-5deg);
}

.news-card-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}

.upload-action-wrapper {
  display: flex;
  justify-content: center;
}

.btn-large-red {
  background-color: #B91C1C;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.2);
  margin: 10px auto 16px;
  width: 90%;
  border: none;
  text-align: center;
  user-select: none;
}

.btn-large-red:hover {
  background-color: #991B1B;
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.28);
  transform: translateY(-1px);
}

.btn-large-red:active {
  transform: translateY(0);
}

.disclaimer-text {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.5;
  margin-top: 24px;
  padding: 0 10px;
}

/* Desktop grid overrides for dashboard */
@media (min-width: 992px) {
  .dashboard-mobile-container {
    max-width: 1000px;
    padding: 20px 10px;
  }

  .dashboard-grid-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .dashboard-col-left, .dashboard-col-right {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .btn-large-red {
    width: 100%;
  }
}

/* Additional mobile responsiveness enhancements */
@media (max-width: 480px) {
  /* Removed broken login-card padding to prevent clipping and whitespace gaps on mobile */

  .modal-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  /* Button stacking is now handled globally for all mobile screens */
}

@media (max-width: 400px) {
  .settings-action-grid {
    gap: 8px;
  }
  
  .settings-grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  
  .settings-grid-item span {
    font-size: 10px;
  }
  
  .emergency-action-btn span {
    font-size: 10px;
  }
}

/* Custom Premium Dropdown Select Box styling */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: var(--primary-border);
}

.custom-select-trigger.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.custom-select-trigger i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}

.custom-select-trigger.active i {
  transform: rotate(180deg);
}

.custom-options-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-options-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.custom-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.custom-option:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.custom-option.selected {
  background-color: var(--primary);
  color: var(--bg-card);
}

/* --- GLASSMAP CARD & OPENSTREETMAP --- */
.glass-map-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}

.map-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-glass {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(220, 38, 38, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.btn-glass:active {
  transform: translateY(0);
}

#osm-map {
  height: 200px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
  box-sizing: border-box;
}

/* --- BOTTOM SHEET FOR HEALTH FACILITIES --- */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  box-sizing: border-box;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  padding: 24px 20px;
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  will-change: transform;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet-overlay.active .bottom-sheet-card {
  transform: translateY(0);
}

.bottom-sheet-drag-handle {
  width: 40px;
  height: 5px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  margin: 0 auto 16px auto;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bottom-sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.bottom-sheet-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.bottom-sheet-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.bottom-sheet-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

/* Custom premium scrollbar for bottom sheet */
.bottom-sheet-body::-webkit-scrollbar {
  width: 5px;
}
.bottom-sheet-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* --- ÇÖZÜM ORTAKLARI (STK) SECTION --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.partner-logo-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.partner-tag {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.partner-tag.red {
  background-color: var(--primary);
  color: #FFFFFF;
}

.partner-tag.green {
  background-color: var(--success);
  color: #FFFFFF;
}

.partner-initials {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.partner-info {
  flex: 1;
}

.partner-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.partner-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.partner-link-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
}

.partner-card:hover .partner-link-icon {
  color: var(--primary);
  opacity: 1;
  transform: translate(2px, -2px);
}

/* --- ÇÖZÜM ORTAKLARI EKRANI (DEDICATED PAGE) --- */
.partners-page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 40px 16px;
}

.partners-page-header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeIn 0.5s ease forwards;
}

.partners-icon-glow {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 1px dashed rgba(220, 38, 38, 0.15);
}

.partners-main-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.partners-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.partners-page-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.partners-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.partner-page-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  transition: var(--transition);
}

.partner-page-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.partner-page-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.partner-page-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.partner-page-logo.afad-logo {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.partner-page-logo.anda-logo {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
}

.partner-page-title-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-kamu, .badge-stk {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

.badge-kamu {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-stk {
  background-color: #ECFDF5;
  color: var(--success);
}

.partner-page-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.partner-page-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.partner-key-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  margin-top: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.feature-item i {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.partner-page-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: auto;
}

.btn-partner-visit {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-partner-visit:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-partner-visit i {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn-partner-visit:hover i {
  transform: translate(2px, -2px);
}

@media (max-width: 600px) {
  .partners-list-grid {
    grid-template-columns: 1fr;
  }
}

/* Evacuation Assembly Point Map Marker Styles */
.assembly-pulse-marker {
  background-color: var(--success);
  width: 14px;
  height: 14px;
  border: 3px solid #FFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* --- DAIRE PLAN SEÇİM MODALI --- */
.btn-secim-kart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
  width: 100%;
}

.btn-secim-kart:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secim-kart i {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.btn-secim-kart span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-secim-kart small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- ÇİZİM EDİTÖRÜ MODALI --- */
.plan-cizim-overlay {
  z-index: 1100;
}

.plan-cizim-card {
  max-width: 95vw;
  width: 1000px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cizim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-card);
  flex-shrink: 0;
}

.cizim-header-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cizim-icon-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  margin: 0;
  width: 40px;
  height: 40px;
}

.cizim-header-actions {
  display: flex;
  gap: 8px;
}

.modal-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.cizim-workspace {
  display: flex;
  flex: 1;
  height: calc(100% - 73px);
  overflow: hidden;
  background-color: #F3F4F6;
}

.cizim-sidebar {
  width: 240px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 16px;
  flex-shrink: 0;
}

.cizim-duplex-toggle-wrap {
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.cizim-duplex-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.oda-buton-listesi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.isaretci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sidebar-sec-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cizim-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  overflow: auto;
  height: 100%;
}

.cizim-canvas-info {
  position: absolute;
  top: 12px;
  left: 16px;
  background-color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  pointer-events: none;
  z-index: 5;
}

#cizim-canvas {
  background-color: #FFFFFF;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  cursor: default;
  flex-shrink: 0;
}

.sidebar-sec-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.btn-oda-ekle {
  width: 100%;
  padding: 10px 12px;
  background-color: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.btn-oda-ekle:hover {
  background-color: #F3F4F6;
  transform: translateX(3px);
}

.btn-isaretci-ekle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  cursor: pointer;
  transition: var(--transition);
  gap: 4px;
}

.btn-isaretci-ekle:hover {
  background-color: #F3F4F6;
  border-color: var(--text-muted);
  transform: scale(1.05);
}

.btn-isaretci-ekle .icon {
  font-size: 20px;
}

.btn-isaretci-ekle .label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-floor-tab:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--text-main) !important;
}

.btn-floor-tab.active:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
  
  .plan-cizim-card {
    height: 96vh !important;
    width: 96vw !important;
    max-width: 96vw !important;
  }

  .cizim-header {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    gap: 12px !important;
  }

  .cizim-header-title-group {
    justify-content: flex-start;
  }
  
  .cizim-header-title-group .modal-title {
    font-size: 15px !important;
  }

  .cizim-header-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .cizim-header-actions button {
    width: 100% !important;
    justify-content: center !important;
    font-size: 12px !important;
    padding: 10px 0 !important;
    height: 38px !important;
    display: flex !important;
    align-items: center;
  }

  .cizim-workspace {
    flex-direction: column !important;
    height: calc(100% - 110px) !important;
    overflow-y: auto !important;
  }

  .cizim-sidebar {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-light);
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    background-color: var(--bg-card) !important;
  }

  .cizim-sidebar > div {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .cizim-duplex-toggle-wrap {
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
    border-bottom: none !important;
  }

  .cizim-duplex-label {
    font-size: 12px !important;
    gap: 6px !important;
  }

  .sidebar-sec-title {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .oda-buton-listesi {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin-top: 4px !important;
    overflow-x: auto !important;
    width: 100% !important;
    padding-bottom: 4px !important;
  }

  .btn-oda-ekle {
    white-space: nowrap !important;
    width: auto !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  .sidebar-sec-desc {
    display: none !important; /* Hide description on mobile to save space */
  }

  .isaretci-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin-top: 4px !important;
    overflow-x: auto !important;
    width: 100% !important;
    padding-bottom: 4px !important;
  }

  .btn-isaretci-ekle {
    width: auto !important;
    min-width: 58px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    padding: 4px 6px !important;
    gap: 2px !important;
  }

  .btn-isaretci-ekle .icon {
    font-size: 16px !important;
  }

  .btn-isaretci-ekle .label {
    font-size: 8px !important;
  }

  .cizim-canvas-container {
    height: auto !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    flex: 1 !important;
  }

  #cizim-canvas {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 800/500 !important;
  }

  .cizim-canvas-info {
    font-size: 9px !important;
    padding: 4px 8px !important;
    top: auto !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  #kat-secici-container {
    top: 8px !important;
    padding: 2px !important;
  }

  #kat-secici-container button {
    padding: 4px 10px !important;
    font-size: 10px !important;
  }
}

/* --- DARK THEME OVERRIDES FOR BOTTOM SHEET & GLASS ELEMENTS --- */
body.dark-theme .bottom-sheet-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light);
  border-bottom: none;
}

body.dark-theme .bottom-sheet-drag-handle {
  background: rgba(255, 255, 255, 0.25) !important;
}

body.dark-theme .bottom-sheet-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .bottom-sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

body.dark-theme .glass-map-card {
  background: rgba(21, 31, 50, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .cizim-canvas-info {
  background-color: rgba(21, 31, 50, 0.9) !important;
  color: var(--text-main) !important;
}

body.dark-theme .choice-option {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .choice-option.selected {
  color: #ffffff !important;
  background-color: var(--primary) !important;
}

body.dark-theme .form-select option {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
}

body.dark-theme .btn-glass {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.3) !important;
  background: rgba(255, 107, 107, 0.08) !important;
}

body.dark-theme .btn-glass:hover {
  background: rgba(255, 107, 107, 0.16) !important;
}

body.dark-theme .btn-outline {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.4) !important;
}

body.dark-theme .btn-outline:hover {
  background-color: rgba(255, 107, 107, 0.08) !important;
  border-color: #ff6b6b !important;
}

