/* Color Palette: Strict MKA Black & White Theme */
:root {
  --bg-color: #f7f7f7;
  --card-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #e2e2e2;
  --dark-border: #111111;
  --btn-black: #111111;
  --btn-black-hover: #333333;
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 12px 20px;
  border-radius: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.brand-center {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex: 2;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  position: relative;
  flex: 1;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.03);
}

.welcome-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Hamburger Icon */
.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 0;
  transition: var(--transition-fast);
}

.hamburger-btn:hover {
  background-color: #f0f0f0;
}

.hamburger-btn:active {
  transform: scale(0.92);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.2s ease;
}

/* Sidebar Drawer */
.sidebar {
  position: fixed;
  top: 0;
  left: -550px;
  width: 270px;
  height: 100%;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
  z-index: 200;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  left: 0;
}

/* Resizer handle for dragging sidebar */
.sidebar-resizer {
  width: 6px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  cursor: ew-resize;
  background: transparent;
  transition: background 0.2s ease;
}

.sidebar-resizer:hover {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

/* Circular Profile Picture Fix */
.sidebar-pfp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  object-fit: cover;
  flex-shrink: 0;
}

.user-email-wrapper {
  overflow: hidden;
  flex: 1;
}

/* Allow email visibility on sidebar adjustment */
.sidebar-email {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.close-sidebar-btn {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.close-sidebar-btn:hover {
  transform: rotate(90deg);
  color: #e53e3e;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  gap: 8px;
  height: 100%;
}

.sidebar-link {
  background: none;
  border: none;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
  position: relative;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: #111111;
  color: #ffffff;
  padding-left: 20px;
}

.sidebar-logout {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  color: #e53e3e;
}

.sidebar-logout:hover {
  background-color: #e53e3e;
  color: #ffffff;
}

/* Dark Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 150;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Buttons */
.btn-submit {
  background-color: var(--btn-black);
  color: #ffffff;
  border: 1px solid var(--btn-black);
  padding: 10px;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-submit:hover {
  background-color: var(--btn-black-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Cards & Tables */
.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: var(--transition-fast);
}

.card:hover {
  border-color: #cccccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.card-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.profile-card {
  margin-bottom: 20px;
}

.profile-info-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.info-value {
  margin: 4px 0 0 0;
  font-size: 1.2rem;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: #fafafa;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--dark-border);
}

td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

tr:hover td {
  background-color: #fcfcfc;
}

.text-center {
  text-align: center;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5vh auto;
  padding: 24px;
  border-radius: 0;
  width: 90%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--dark-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content.modal-large {
  max-width: 650px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.close-btn {
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.close-btn:hover {
  transform: scale(1.15);
  color: #e53e3e;
}

/* Language Translation Control Styles */
.lang-selector-wrapper {
  position: relative;
}

.translate-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 5px 9px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.translate-btn:hover {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 35px;
  background: var(--card-bg);
  border: 1px solid var(--dark-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 400;
  width: 150px;
  display: flex;
  flex-direction: column;
}

.lang-option {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang-option:hover, .lang-option.active {
  background-color: #111111;
  color: #ffffff;
}

/* RTL Styles for Urdu Rendering */
.rtl-mode {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 2.2 !important;
}

.rtl-mode .icon-gap {
  margin-right: 0;
  margin-left: 8px;
}

.rtl-mode .accordion-header {
  text-align: right;
}

/* Form Styling */
.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--dark-border);
  box-shadow: 0 0 0 1px var(--dark-border);
}

/* Notifications */
.notif-bell {
  cursor: pointer;
  position: relative;
}

.notif-bell-icon {
  font-size: 1.2rem;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #e53e3e;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 0;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.notif-dropdown {
  position: absolute;
  right: 0;
  top: 35px;
  width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  text-align: left;
  animation: modalFadeIn 0.2s ease forwards;
}

.notif-dropdown-header {
  font-weight: bold;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

.notif-list {
  max-height: 250px;
  overflow-y: auto;
}

.notif-empty {
  padding: 10px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.notif-item {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.notif-item p {
  margin: 3px 0 0 0;
}

/* Status Column Styles */
.status-pending {
  color: #d97706;
}

.status-approved {
  color: #15803d;
  font-weight: bold;
}

.status-rejected {
  color: #e53e3e;
  font-weight: bold;
}

/* About Chanda Modal & Accordion Styles */
.about-scroll-container {
  padding: 10px 0;
  max-height: 70vh;
  overflow-y: auto;
}

.about-section-box {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 16px;
}

.about-section-box h4 {
  margin: 0 0 8px 0;
  color: var(--text-main);
  font-size: 1.05rem;
}

.about-section-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-section-title {
  margin: 15px 0 10px 0;
  color: var(--text-main);
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 0;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: var(--card-bg);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-content {
  display: none;
  padding: 12px 16px;
  background: #fafafa;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.icon-gap {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.opacity-muted {
  opacity: 0.6;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}