/* /access/ui/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc url('../img/register-login-light.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.4s ease;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
}

.logo { display: block; margin: 0 auto 20px; height: 65px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }

h2 { text-align: center; color: #1e4c9a; font-size: 29px; margin-bottom: 8px; font-weight: 700; }
.subtitle { text-align: center; color: #64748b; font-size: 15px; margin-bottom: 32px; }

/* Progress Bar */
.progress-container {
    max-width: 41.666%;
    margin: 0 auto 35px;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.progress-step { width: 40px; height: 40px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #64748b; z-index: 2; transition: all 0.3s ease; }
.progress-step.active { background: #1e4c9a; color: white; box-shadow: 0 0 0 4px rgba(30, 76, 154, 0.2); }
.progress-step.completed { background: #1e4c9a; color: white; }
.progress-line { position: absolute; top: 20px; left: 20px; height: 3px; background: #e2e8f0; width: calc(100% - 40px); z-index: 1; }
.progress-fill { height: 100%; background: #1e4c9a; width: 0; transition: width 0.4s ease; }

/* Grid */
.row { display: flex; flex-wrap: wrap; margin: -12px; }
.col-6 { flex: 0 0 50%; padding: 12px; }
.col-3 { flex: 0 0 25%; padding: 12px; }

/* Form */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 22px; position: relative; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #374151; font-size: 14.5px; }

input[type=text], input[type=date], input[type=tel], input[type=email], input[type=password], select, textarea {
    width: 100%; padding: 13px 15px; border: 1.8px solid #e2e8f0; border-radius: 11px; font-size: 15px; transition: all 0.3s ease; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #1e4c9a; box-shadow: 0 0 0 3px rgba(30, 76, 154, 0.15); }
input.invalid, select.invalid, textarea.invalid { border-color: #d90405 !important; }

/* Upload Card */
.upload-card {
    border: 2.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.upload-card:hover { border-color: #1e4c9a; background: #f0f7ff; }
.upload-card.dragover { border-color: #1e4c9a; background: #dbeafe; }

.upload-icon { font-size: 32px; color: #94a3b8; margin-bottom: 8px; }
.upload-text { font-size: 14px; color: #64748b; }
.upload-preview { display: none; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.upload-card input[type=file] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* Upload Feedback */
.upload-feedback {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  min-height: 20px;
}

.upload-feedback.success {
  color: #10b981;
  font-weight: 500;
}

.upload-feedback.error {
  color: #d90405;
  font-weight: 500;
}

.pdf-icon {
  font-size: 24px;
  color: #1e4c9a;
  margin-right: 4px;
}

/* Drag & Drop Styling */
.drag-area {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
  position: relative;
}

.drag-area:hover,
.drag-area.dragover {
  border-color: #1e4c9a;
  background: #f0f4ff;
}

.drag-area.dragover .upload-text {
  color: #1e4c9a;
  font-weight: 600;
}

.upload-preview {
  max-width: 100%;
  max-height: 140px;
  margin: 10px auto;
  display: none;
  border-radius: 8px;
  object-fit: cover;
}

.upload-feedback {
  margin-top: 8px;
  font-size: 13px;
  min-height: 20px;
}

.upload-feedback.success { color: #10b981; }
.upload-feedback.error { color: #d90405; font-weight: 500; }

.pdf-icon {
  font-size: 28px;
  margin-right: 6px;
}

.col-12 { flex: 0 0 100%; padding: 12px; }
.col-8  { flex: 0 0 66.666%; padding: 12px; }
.col-4  { flex: 0 0 33.333%; padding: 12px; }

@media (max-width: 768px) {
    .col-8, .col-4 { flex: 0 0 100%; }
}

/* Buttons */
.btn-group {
    max-width: 41.666%;
    margin: 20px auto 0;
    display: flex;
    gap: 12px;
}
.btn { flex: 1; padding: 14px; border: none; border-radius: 11px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: #1e4c9a; color: white; }
.btn-primary:hover { background: #163a7a; transform: translateY(-1px); }
.btn-secondary { background: #e2e8f0; color: #475569; }
.btn-secondary:hover { background: #cbd5e1; }

/* Alerts */
.error, .success { padding: 15px; border-radius: 11px; margin: 22px 0; font-size: 14.5px; }
.error { background: #fee2e2; color: #d90405; border: 1px solid #fecaca; }
.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Mode Toggle */
.mode-toggle { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.9); border: 1px solid #e2e8f0; border-radius: 50px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 10; }
.mode-toggle:hover { background: white; }
.mode-icon { font-size: 18px; }

/* Responsive */
@media (max-width: 768px) {
    .col-6, .col-3 { flex: 0 0 100%; }
    .container { padding: 25px; }
    .btn-group { max-width: 100%; }
    .progress-container { max-width: 100%; }
}

.valid-feedback {
  position: absolute;
  right: 10px;
  top: 38px;
  font-size: 18px;
  font-weight: 500;
  pointer-events: none;
  z-index: 10;
  min-height: 24px;
  padding-right: 30px;
}

.valid-feedback.available {
  color: #10b981;
}

.valid-feedback.taken {
  color: #d90405;
}

.valid-feedback span {
  font-size: 22px;
  font-weight: bold;
}

.next-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.valid-feedback.checking { color: #666; }
.valid-feedback.available { color: #28a745; }
.valid-feedback.taken { color: #dc3545; font-weight: bold; }
.valid-feedback i { margin-right: 6px; }
/* /access/styles/dark-mode.css */
body.dark-mode {
    background: #0f172a url('../img/register-login-dark.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.dark-mode .container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
}

body.dark-mode h2 { color: #1e4c9a; }
body.dark-mode .subtitle { color: #94a3b8; }

body.dark-mode label { color: #cbd5e1; }

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: #1e4c9a;
    box-shadow: 0 0 0 3px rgba(30, 76, 154, 0.2);
}

body.dark-mode input.invalid,
body.dark-mode select.invalid,
body.dark-mode textarea.invalid { border-color: #d90405 !important; }

body.dark-mode .upload-card {
    background: #1e293b;
    border-color: #475569;
}

body.dark-mode .upload-card:hover {
    background: #334155;
    border-color: #1e4c9a;
}

body.dark-mode .upload-icon { color: #94a3b8; }
body.dark-mode .upload-text { color: #94a3b8; }

body.dark-mode .error {
    background: #450a0a;
    color: #d90405;
    border-color: #7f1d1d;
}

body.dark-mode .success {
    background: #022c22;
    color: #6ee7b7;
    border-color: #166534;
}

body.dark-mode .btn-primary {
    background: #1e4c9a;
}

body.dark-mode .btn-primary:hover {
    background: #163a7a;
}

body.dark-mode .mode-toggle {
    background: rgba(30, 41, 59, 0.8);
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .mode-toggle:hover {
    background: rgba(30, 41, 59, 0.95);
}

body.dark-mode .progress-step.active,
body.dark-mode .progress-step.completed {
    background: #1e4c9a;
}

body.dark-mode .progress-fill {
    background: #1e4c9a;
}
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .container, body.dark-mode .stat-card, body.dark-mode .card {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark-mode .stat-number, body.dark-mode h1, body.dark-mode h5 {
    color: #3b82f6; /* Blue accent */
}

body.dark-mode .text-muted {
    color: #a0a0a0 !important;
}

body.dark-mode .list-group-item {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .list-group-item:hover {
    background: #252525;
}

body.dark-mode .badge.bg-primary {
    background: #3b82f6 !important;
}

body.dark-mode .border-danger-left {
    border-color: #ff4757 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #333;
}

.dashboard-header {
    background: linear-gradient(135deg, #1e4c9a, #d90405);
    color: white;
    padding: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon { font-size: 40px; margin-bottom: 10px; }
.stat-number { font-size: 36px; font-weight: 700; color: #1e4c9a; }
.stat-label { color: #666; font-size: 14px; }

.income-expenses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.income-card { background: #d4edda; color: #155724; }
.expenses-card { background: #f8d7da; color: #721c24; }

.graph-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.chart-wrapper { height: 300px; }

/* Responsive */
@media (max-width: 768px) {
    .stats-grid, .income-expenses { grid-template-columns: 1fr; }
}
/* Consolidated :root */
:root {
  --primary: #1e4c9a;
  --success: #10b981;
  --danger: #ef4444;
  --text-light: #334155;
  --text-dark: #e2e8f0;
}
.card { background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-bottom: 2rem; }
.passport-img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 4px solid #e2e8f0; }
.toast { position: fixed; bottom: 30px; right: 30px; z-index: 9999; min-width: 300px; }
/* Inline styles from admin/messages.php */
.chat-container { height: calc(100vh - 180px); }
.chat-sidebar { background: #f8fafc; border-right: 1px solid #e2e8f0; }
.dark-mode .chat-sidebar { background: #1e293b; border-color: #475569; }
.chat-list-item { cursor: pointer; transition: 0.2s; }
.chat-list-item:hover { background: #ebf4ff; }
.dark-mode .chat-list-item:hover { background: #334155; }
.chat-message { max-width: 80%; padding: 12px 16px; border-radius: 18px; margin-bottom: 10px; }
.chat-message.admin { background: #1e4c9a; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-message.nurse { background: #e2e8f0; color: #333; align-self: flex-start; border-bottom-left-radius: 4px; }
.dark-mode .chat-message.nurse { background: #334155; color: #e2e8f0; }
.unread-badge { background: #ef4444; color: white; }
.input-area { background: white; border-top: 1px solid #e2e8f0; }
.dark-mode .input-area { background: #1e293b; border-color: #475569; }
/* Inline styles from admin/notification_history.php */
.history-card { border-radius: 20px; overflow: hidden; transition: all 0.3s; }
.history-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important; }
.target-badge { font-size: 0.8rem; padding: 6px 12px; border-radius: 50px; }
.admin-tag { background: #e0e7ff; color: #1e40af; font-weight: 600; }
.dark-mode .admin-tag { background: #1e3a8a; color: #93c5fd; }
.msg-preview { background: #f8fafc; border-left: 5px solid var(--primary); padding: 1rem; border-radius: 8px; }
.dark-mode .msg-preview { background: #1e293b; border-left-color: #60a5fa; }
/* Inline styles from admin/overview.php */
.navbar {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  height: 78px;
  padding: 0 2rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
}
.nav-link {
  color: #2d3748 !important;
  font-weight: 600;
  padding: 0.75rem 1.2rem !important;
  border-radius: 12px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link i { font-size: 1.2rem; }
.nav-link.active { background: #ebf4ff; color: #1e4c9a !important; }
.dark-mode .nav-link.active { background: #334155; color: #60a5fa !important; }
.profile-pic {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 3px solid #e2e8f0; cursor: pointer; transition: 0.3s;
}
.profile-pic:hover { border-color: #1e4c9a; }
.badge-chat, .alert-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 50%;
}
.badge-chat { background: #10b981; color: white; }
.alert-badge { background: #ef4444; color: white; }
/* Mobile Hamburger Menu Background */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  .dark-mode .navbar-collapse { background: #1e293b; }
}
.card { background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.dark-mode .card { background: #1e293b; }
.passport-img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 4px solid #e2e8f0; }
.dark-mode .passport-img { border-color: #334155; }
/* Inline styles from admin/profile.php */
.profile-squircle {
  width: 190px; height: 190px; border-radius: 38px; object-fit: cover;
  border: 8px solid white; box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
.info-card {
  background: linear-gradient(135deg, #1e4c9a, #0d3b8a);
  color: white; border-radius: 24px; min-height: 480px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.edit-card {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white; border-radius: 24px; min-height: 480px;
  box-shadow: 0 20px 50px rgba(220,38,38,0.3);
}
.edit-card .form-control, .edit-card .form-label { color: white !important; background: rgba(255,255,255,0.15); border: none; border-radius: 12px; }
.edit-card .form-control::placeholder { color: rgba(255,255,255,0.7); }
.edit-card .btn-primary { background: white; color: #dc2626; border: none; font-weight: bold; }
/* Inline styles from admin/push_notification.php */
.push-card { background: linear-gradient(135deg, #1e4c9a, #3b82f6); color: white; border-radius: 24px; overflow: hidden; }
.preview-box { background: #f8fafc; border-radius: 16px; padding: 1.5rem; min-height: 200px; border: 2px dashed #cbd5e1; }
.dark-mode .preview-box { background: #1e293b; border-color: #475569; color: #e2e8f0; }
.notification-preview { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 380px; margin: 1rem auto; }
.dark-mode .notification-preview { background: #0f172a; }
.send-btn { height: 70px; font-size: 1.4rem; font-weight: 800; border-radius: 20px; }
.pulse-send { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.7); } 70% { box-shadow: 0 0 0 20px rgba(59,130,246,0); } 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); } }
body { background: #f8fafc; color: var(--text-light); transition: all 0.3s; font-family: 'Inter', sans-serif; }
.dark-mode { background: #0f172a !important; color: var(--text-dark) !important; }
.header-slim { background: linear-gradient(135deg, #1e4c9a, #3b82f6); color: white; padding: 1.2rem 1.5rem; border-radius: 16px; }
.doc-img { height: 150px; width: 100%; object-fit: cover; border-radius: 12px; transition: 0.3s; cursor: pointer; }
.doc-img:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.mode-toggle-btn { position: fixed; top: 20px; right: 20px; z-index: 9999; background: #1e4c9a; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; }
.toast { position: fixed; bottom: 30px; right: 30px; z-index: 9999; min-width: 300px; }
table { color: inherit; }
.table th { color: #64748b; font-weight: 600; }
.dark-mode .table th { color: #94a3b8; }
@media (max-width: 768px) {
  .header-slim h4 { font-size: 1.1rem; }
  .header-slim h5 { font-size: 1rem; }
  .btn-lg { padding: 0.5rem 1rem; font-size: 0.9rem; }
}
tbody, td, tfoot, th, thead, tr {
border-color: inherit;
border-style: solid;
border-width: 4px;
}
/* Inline styles from admin/view_nurse.php */
.image-strip {
  position: fixed; left: 0; top: 0; bottom: 0; width: 250px;
  background: #f8f9fa; overflow-y: auto; padding: 20px; z-index: 1000;
  border-right: 1px solid #dee2e6;
}
.image-thumb {
  width: 200px; height: 150px; object-fit: cover; margin: 10px auto;
  cursor: pointer; border: 2px solid #ddd; border-radius: 8px; transition: 0.2s;
  display: block;
}
.image-thumb:hover { border-color: #1e4c9a; transform: scale(1.02); }
.main-content { margin-left: 260px; padding: 20px; }
.info-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 20px; }
.action-buttons { display: flex; gap: 10px; }
.action-buttons form { margin: 0; }
.action-buttons .btn { padding: 10px 20px; font-weight: 600; }
.download-btn { font-size: 0.85rem; margin-top: 5px; }
/* Inline styles from admin/view_nurses.php */
.table thead th { background: #f8fafc; font-weight: 600; color: #1e4c9a; }
.dark-mode .table thead th { background: #334155; color: #60a5fa; }
.dropdown-menu { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.badge-online { background: #d1fae5; color: #065f46; }
.badge-offline { background: #fee2e2; color: #991b1b; }
.search-filter-bar { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 6px 25px rgba(0,0,0,0.07); }
.dark-mode .search-filter-bar { background: #1e293b; }
.avatar-circle { width: 40px; height: 40px; background: #1e4c9a; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; font-size: 1.1rem; }





