/* Basic styles for display and admin */
:root { --bg: #0b1320; --fg: #e8eef9; --accent: #1e90ff; --muted: #9fb3c8; }
* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--fg); overflow-y: auto; }
img, picture, video { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 16px; }
.card { background: #111a2e; border: 1px solid #1e2a46; border-radius: 12px; padding: 16px; }
.btn { 
  background: linear-gradient(135deg, var(--accent) 0%, #0066cc 100%); 
  color: white; 
  border: 0; 
  padding: 10px 16px; 
  border-radius: 10px; 
  cursor: pointer; 
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
}
.btn:hover {
  background: linear-gradient(135deg, #2a9fff 0%, #0077e6 100%);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(30, 144, 255, 0.2);
}
.btn.secondary { background: transparent; border: 1px solid #2a3a60; color: var(--fg); }
.input, select, textarea { width: 100%; padding: 10px 12px; background: #0f1a30; color: var(--fg); border: 1px solid #203252; border-radius: 8px; }
label { display: block; margin: 8px 0 4px; color: var(--muted); }

/* Display layout */
.display { height: 100vh; display: grid; grid-template-rows: 130px 1fr auto; gap: 12px; padding: 12px 12px 0 12px; width: 100%; max-width: 100%; overflow: hidden; }
.display-header { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) minmax(220px, 320px) minmax(150px, 220px) minmax(180px, 280px); gap: 6px; align-items: center; width: 100%; max-width: 100%; overflow: hidden; }
.logo-wrap { position: relative; width: 140px; height: 140px; }
.logo-wrap::before { content: ""; position: absolute; inset: -12px; border-radius: 24px; background: radial-gradient(circle, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.25) 35%, rgba(255,255,255,0) 70%); filter: blur(10px); opacity: 0.35; animation: glowPulse 2.4s ease-in-out infinite; }
.logo { position: relative; z-index: 1; height: 140px; width: 140px; object-fit: contain; background: #0f1a30; border-radius: 16px; padding: 10px; box-shadow: 0 0 0px rgba(255,255,255,0.0); }

@keyframes glowPulse {
  0% { opacity: 0.25; transform: scale(0.98); }
  50% { opacity: 0.7; transform: scale(1.02); }
  100% { opacity: 0.25; transform: scale(0.98); }
}
.title { font-size: 32px; font-weight: 700; }
.datetime { text-align: right; font-variant-numeric: tabular-nums; }
#dateText { font-size: 20px; font-weight: 600; }
#panoMode .display-header > .datetime:last-child { margin-right: 16px; }
#weatherBox { min-height: 60px; display: flex; flex-direction: column; justify-content: center; font-size: 18px; }
.header-status { display: grid; gap: 6px; }
.header-status .status-line { font-size: 18px; font-weight: 700; }
.header-status .status-line.status-outside {
	font-size: 24px;
	font-weight: 600;
	color: #ffffff;
	animation: neonRedPulse 2s ease-in-out infinite;
}
@keyframes neonRedPulse {
	0%, 100% {
		text-shadow: 
			0 0 5px #ff3333,
			0 0 10px #ff3333,
			0 0 15px #ff3333,
			0 0 20px #ff3333,
			0 0 25px rgba(255, 51, 51, 0.8);
		opacity: 1;
	}
	50% {
		text-shadow: 
			0 0 2px #ff3333,
			0 0 5px #ff3333,
			0 0 8px #ff3333,
			0 0 12px #ff3333,
			0 0 18px rgba(255, 51, 51, 0.6),
			0 0 22px rgba(255, 51, 51, 0.4);
		opacity: 1;
	}
}
.header-status .countdown { color: var(--muted); font-size: 16px; font-weight: 600; }
.header-status .progress { height: 8px; }

.slider { position: relative; overflow: hidden; border-radius: 12px; background:#0f1a30; border:1px solid #1e2a46; padding: 0; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform .6s ease; }
.carousel-slide { flex: 0 0 100%; position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding: 0; align-items: start; }
.carousel-image { height: 400px; width: 100%; object-fit: contain; border-radius: 10px; border:1px solid #1e2a46; background:#0b1320; }
.carousel-content { padding: 12px 16px 16px; }
.carousel-content h3 { margin: 0 0 6px; font-size: 22px; }
.carousel-content p { margin: 0; color: var(--muted); line-height: 1.55; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: none; justify-content: center; gap: 8px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 999px; background:#243457; border:1px solid #33518a; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.carousel-dot.active { background: var(--accent); transform: scale(1.1); }

.content-grid { 
  display: grid; 
  grid-template-columns: minmax(260px, 25%) minmax(0, 50%) minmax(240px, 25%); 
  gap: 12px; 
  min-height: 0; 
}
.content-grid > div:nth-child(2) { display: flex; flex-direction: column; min-height: 0; }
.content-grid > div:nth-child(2) .slider { flex: 0 0 auto; min-height: 0; }
.content-grid > div:nth-child(2) .quotes-card { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; margin-bottom: 0; }
.content-grid > div:nth-child(3) { display: flex; flex-direction: column; min-height: 0; }
.status-card { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.status-card h4 { flex: 0 0 auto; }
.status-card #dutyAdmins { flex: 0 0 auto; }
.status-card #dutyTeachers { flex: 0 1 auto; overflow: visible; min-height: 0; }
.status-card #dutyPansiyon { flex: 0 0 auto; }
.stack { display: grid; grid-template-rows: 400px 1fr; gap: 12px; min-height: 0; }
.stack > .card:first-child { display: grid; }
.status-card h4 { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.duty-admin-name { font-size: 24px; font-weight: 700; color: #ffd700; margin: 8px 0; }
@keyframes neonPulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 4px #ffb347, 0 0 6px #ffb347; }
  50% { opacity: 0.9; text-shadow: 0 0 2px #ffb347, 0 0 4px #ffb347; }
}
.progress { height: 10px; background: #0f1a30; border-radius: 999px; overflow: hidden; border: 1px solid #203252; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0%; transition: width .5s ease; }

/* Duty teachers area grid */
.area-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.area-box { background:#0f1a30; border:1px solid #1e2a46; border-radius:10px; padding:8px; }
.area-box.inline { flex: 1 1 calc(50% - 8px); }
.area-box.block { flex: 1 1 100%; }
.area-title { font-weight:700; margin-bottom:2px; color: #ffd700; font-size:14px; }
.area-names { font-size:17px; }

.video-card { height: 100%; padding: 0; }
#videoContainer video { object-fit: contain !important; background:#000; }
.video { background: #111a2e; border-radius: 16px; width: 100%; height: 100%; object-fit: contain; display:block; }
#videoContainer iframe { background:#000; }
#videoContainer { border-radius: 16px; overflow: hidden; max-height: 400px; background: #111a2e; padding: 4px; }
#videoContainer video, #videoContainer iframe { border-radius: 12px; box-shadow: 0 0 0 1px rgba(30,42,70,0.8) inset; }

/* Menu styling for better readability */
.menu-card { height: 100%; display: flex; flex-direction: column; margin-bottom: 0; }
.menu-card h4 { color: #ffd700 !important; }
.menu-list { font-size: 22px; line-height: 1.55; flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.menu-list .menu-item { background:#0f1a30; border:1px solid #1e2a46; border-radius:10px; padding:10px; flex: 0 0 auto; display:flex; align-items:center; }
.menu-list ul { margin: 6px 0 0; padding-left: 18px; }
.menu-list li { margin-bottom: 4px; }
.menu-footer { flex: 0 0 auto; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #1e2a46; font-size: 12px; color: var(--muted); text-align: right; }

/* Quotes styling */
.quotes-card { min-height: 120px; transition: opacity 0.3s ease; }
.quote-item { position: relative; text-align: center; padding: 16px; }
.quote-text { font-size: 18px; font-style: italic; color: var(--fg); margin-bottom: 8px; line-height: 1.5; }
.quote-author { font-size: 14px; color: var(--muted); font-weight: 500; }

/* News Ticker */
.news-ticker-container { height: 50px; background: #0f1a30; border-top: 2px solid #1e2a46; overflow: hidden; }
.news-ticker { height: 100%; display: flex; align-items: center; overflow: hidden; position: relative; }
.news-ticker-content { display: flex; gap: 0; font-size: 16px; font-weight: 600; color: #ffd700; animation: marquee 14s linear infinite; will-change: transform; white-space: nowrap; }
.news-ticker-content .marquee-copy { flex: none; white-space: nowrap; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Display page responsive adjustments */
/* 1920x1080 ve üzeri için optimize edilmiş ayarlar */
@media (min-width: 1920px) {
	.content-grid { grid-template-columns: minmax(320px, 25%) minmax(0, 50%) minmax(280px, 25%) !important; }
	.display-header { grid-template-columns: 170px 1fr 320px 220px 280px !important; }
	.title { font-size: 32px !important; }
	#dateText { font-size: 20px !important; }
	#timeText { font-size: 34px !important; }
	.logo-wrap, .logo { width: 140px !important; height: 140px !important; }
}

@media (max-width: 1919px) and (min-width: 1601px) {
	.content-grid { grid-template-columns: minmax(300px, 25%) minmax(0, 50%) minmax(260px, 25%); }
	.display-header { grid-template-columns: 170px 1fr 300px 200px 260px; }
}

@media (max-width: 1600px) {
	.content-grid { grid-template-columns: minmax(260px, 25%) minmax(0, 50%) minmax(220px, 25%); }
	.display-header { grid-template-columns: 150px 1fr 280px 180px 240px; }
	.title { font-size: 28px; }
	#dateText { font-size: 18px; }
	#timeText { font-size: 30px !important; }
}

@media (max-width: 1366px) {
	.content-grid { grid-template-columns: minmax(240px, 25%) minmax(0, 50%) minmax(200px, 25%); }
	.display-header { grid-template-columns: 140px 1fr 260px 160px 220px; }
	.title { font-size: 26px; }
	#dateText { font-size: 16px; }
	#timeText { font-size: 28px !important; }
	.logo-wrap, .logo { width: 120px; height: 120px; }
}

@media (max-width: 1280px) {
	.content-grid { grid-template-columns: minmax(220px, 25%) minmax(0, 50%) minmax(180px, 25%); }
	.display-header { grid-template-columns: 130px 1fr 240px 150px 200px; }
	.title { font-size: 24px; }
	#dateText { font-size: 15px; }
	#timeText { font-size: 26px !important; }
	.logo-wrap, .logo { width: 110px; height: 110px; }
	.header-status .status-line { font-size: 16px; }
	.header-status .countdown { font-size: 14px; }
}

@media (max-width: 1024px) {
	.content-grid { grid-template-columns: minmax(200px, 25%) minmax(0, 50%) minmax(160px, 25%); }
	.display-header { grid-template-columns: 120px 1fr 220px 140px 180px; gap: 4px; }
	.title { font-size: 22px; }
	#dateText { font-size: 14px; }
	#timeText { font-size: 24px !important; }
	.logo-wrap, .logo { width: 100px; height: 100px; }
	.header-status .status-line { font-size: 15px; }
	.header-status .countdown { font-size: 13px; }
	#weatherBox { font-size: 16px; min-height: 50px; }
}

@media (max-width: 1200px) {
	.display { grid-template-rows: auto auto auto; height: auto; min-height: 100vh; }
	.display-header { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; row-gap: 10px; }
	.display-header > * { justify-self: center; width: 100%; max-width: 100%; }
	.logo-wrap, .logo { margin: 0 auto; }
	.content-grid { grid-template-columns: 1fr; gap: 14px; }
	.content-grid > div { width: 100%; }
	.stack { grid-template-rows: min(45vw, 320px) auto; }
	#videoContainer { height: min(45vw, 320px) !important; max-height: min(45vw, 320px) !important; }
	.carousel-image { height: min(45vw, 320px); }
	.card { width: 100%; }
	.news-ticker-container { position: relative; }
}

@media (max-width: 900px) {
	.display { grid-template-rows: auto auto auto; padding: 10px 8px 0; gap: 10px; height: auto; min-height: 100vh; overflow: visible; }
	.display-header { grid-template-columns: 1fr; grid-auto-rows: auto; text-align: center; gap: 8px; }
	.display-header > * { justify-self: center; width: 100%; max-width: 100%; }
	.header-status, .datetime, #weatherBox { width: 100%; }
	.logo-wrap, .logo { width: 110px; height: 110px; margin: 0 auto; }
	.title { font-size: 22px; line-height: 1.35; }
	.header-status, .datetime, #weatherBox { text-align: center; justify-items: center; }
	.content-grid { grid-template-columns: 1fr; gap: 10px; }
	.content-grid > div { width: 100%; }
	.stack { grid-template-rows: 280px auto; width: 100%; }
	#videoContainer { height: 260px !important; max-height: 260px !important; }
	.carousel-image { height: 260px; }
	#quotesPrayerRow { padding: 0 !important; }
	#quotesPrayerRow > div { flex-direction: column; gap: 10px !important; }
	#quotesPrayerRow .card { width: 100% !important; }
	#namazCard { padding: 14px !important; }
	.status-card { order: 3; }
	.news-ticker-container { position: relative !important; }
}

@media (max-width: 600px) {
	body { font-size: 14px; }
	.display { padding: 8px 6px 0; }
	.logo-wrap, .logo { width: 90px; height: 90px; }
	.title { font-size: 20px; }
	#dateText { font-size: 13px; }
	#timeText { font-size: 22px !important; }
	.stack { grid-template-rows: 220px auto; }
	#videoContainer { height: 210px !important; max-height: 210px !important; }
	.carousel-image { height: 210px; }
	.card { padding: 12px; }
	.menu-list { font-size: 18px; }
	.status-card h4 { font-size: 14px; }
	.news-ticker-container { height: 42px; }
	.news-ticker-content { font-size: 14px; }
}

/* Admin layout */
.admin { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: linear-gradient(180deg, #0f1a30 0%, #0a1325 100%); border-right: 1px solid #1e2a46; padding: 0; display: flex; flex-direction: column; }
.sidebar-header { padding: 20px 16px; border-bottom: 1px solid #1e2a46; text-align: center; }
.sidebar-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 10px; background: #111a2e; border-radius: 12px; padding: 8px; }
.sidebar-title { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }
.sidebar-menu { flex: 1; padding: 12px 12px 20px; overflow-y: auto; }
.sidebar a { display: flex; align-items: center; padding: 12px 14px; border-radius: 10px; color: var(--fg); text-decoration: none; margin-bottom: 4px; transition: all 0.2s ease; font-size: 14px; }
.sidebar a:hover { background: rgba(30, 138, 255, 0.1); transform: translateX(2px); }
.sidebar a.active { background: var(--accent); color: white; font-weight: 600; box-shadow: 0 2px 8px rgba(30, 138, 255, 0.3); }
.content { padding: 24px; }


/* Mobile-friendly tweaks (non-destructive) */
/* Hide mobile-only elements by default (desktop/tablet) */
.mobile-menu-button { 
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}
.sidebar-backdrop { display: none; }
@media (max-width: 768px) {
  /* Collapse grid to single column on mobile */
  .admin { grid-template-columns: 1fr !important; }
  .sidebar { padding: 0; }
  .sidebar-header { padding: 14px 12px; }
  .sidebar-logo { width: 64px; height: 64px; }
  .sidebar-title { font-size: 12px; }
  .sidebar-menu { padding: 10px; }
  .sidebar a { padding: 10px 10px; font-size: 13px; }
  .content { padding: 14px; }
  .card { padding: 12px; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Toggleable sidebar overlay */
  .mobile-menu-button { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    z-index: 99999 !important; 
    background: rgba(15, 26, 48, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #fff !important; 
    border-radius: 0 0 12px 0 !important; 
    padding: 14px 18px !important; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 80px !important;
  }
  .mobile-menu-button:active {
    transform: scale(0.95);
    background: transparent;
  }
  .mobile-menu-button:hover {
    background: transparent;
  }
  .hamburger-icon {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 20px !important;
    height: 16px !important;
    visibility: visible !important;
  }
  .hamburger-icon span {
    display: block !important;
    width: 100% !important;
    height: 2.5px !important;
    background: #fff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body.sidebar-open .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  body.sidebar-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  body.sidebar-open .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .menu-text {
    font-weight: 600 !important;
    display: inline-block !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; transform: translateX(-100%); transition: transform .3s ease; z-index: 10000; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 9999; display: none; }
  body.sidebar-open .sidebar-backdrop { display: block; }
  body.sidebar-open { overflow: hidden; }
  /* Content should occupy full width when sidebar is hidden */
  .admin { grid-template-columns: 1fr !important; }
  
  /* Modern mobile improvements */
  h2 { 
    font-size: 16px; 
    margin: 8px 0 16px 0; 
    padding-left: 140px;
    font-weight: 500;
  }
  h3 { font-size: 16px; }
  
  /* Better button layout for mobile */
  .action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .action-buttons-grid .btn {
    width: 100%;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    text-align: left;
  }
  .action-buttons-grid .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
  }
  .action-buttons-grid .btn:active::before {
    left: 100%;
  }
  .action-buttons-grid .btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  /* Specific button styles */
  .action-buttons-grid .btn[style*="#1e90ff"],
  .action-buttons-grid .btn[style*="background:#1e90ff"] {
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%) !important;
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.4) !important;
  }
  .action-buttons-grid .btn[style*="#1e90ff"]:hover,
  .action-buttons-grid .btn[style*="background:#1e90ff"]:hover {
    background: linear-gradient(135deg, #2a9fff 0%, #0077e6 100%) !important;
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5) !important;
  }
  .action-buttons-grid .btn[style*="#28a745"],
  .action-buttons-grid .btn[style*="background:#28a745"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4) !important;
  }
  .action-buttons-grid .btn[style*="#28a745"]:hover,
  .action-buttons-grid .btn[style*="background:#28a745"]:hover {
    background: linear-gradient(135deg, #34ce57 0%, #218838 100%) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5) !important;
  }
  .action-buttons-grid .btn[style*="#ff6b6b"],
  .action-buttons-grid .btn[style*="background:#ff6b6b"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4) !important;
  }
  .action-buttons-grid .btn[style*="#ff6b6b"]:hover,
  .action-buttons-grid .btn[style*="background:#ff6b6b"]:hover {
    background: linear-gradient(135deg, #ff8080 0%, #ff6b6b 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
  }
  
  /* Desktop override for action buttons */
  @media (min-width: 769px) {
    .action-buttons-grid {
      grid-template-columns: auto auto auto;
      gap: 12px;
    }
    .action-buttons-grid .btn {
      width: auto;
      display: inline-flex;
      padding: 12px 20px;
      justify-content: flex-start;
    }
    .action-buttons-grid .btn:hover {
      transform: translateY(-2px);
    }
    h2 {
      font-size: 24px;
      padding-left: 0;
      font-weight: 600;
    }
  }
  
  /* Compact status cards for mobile */
  .status-card-mobile {
    padding: 10px !important;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .status-card-mobile:active {
    transform: scale(0.98);
  }
  .status-card-mobile > div:first-child {
    margin-bottom: 8px !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .status-card-mobile .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    white-space: nowrap;
    width: auto !important;
    min-width: 70px;
    height: auto;
    min-height: 28px;
    border: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }
  .status-card-mobile .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
  }
  .status-card-mobile .btn:active::before {
    left: 100%;
  }
  .status-card-mobile .btn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
  }
  .status-card-mobile .btn[style*="#28a745"],
  .status-card-mobile .btn[style*="background:#28a745"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3) !important;
  }
  .status-card-mobile .btn[style*="#28a745"]:hover,
  .status-card-mobile .btn[style*="background:#28a745"]:hover {
    background: linear-gradient(135deg, #34ce57 0%, #218838 100%) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
  }
  .status-card-mobile .btn[style*="#dc3545"],
  .status-card-mobile .btn[style*="background:#dc3545"] {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3) !important;
  }
  .status-card-mobile .btn[style*="#dc3545"]:hover,
  .status-card-mobile .btn[style*="background:#dc3545"]:hover {
    background: linear-gradient(135deg, #e4606d 0%, #dc3545 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
  }
  .status-card-mobile span[style*="font-size:20px"] {
    font-size: 16px !important;
  }
  .status-card-mobile > div:first-child > div:first-child {
    flex: 1;
    min-width: 0;
  }
  .status-card-mobile > div:first-child > div:first-child > span:last-child {
    font-size: 13px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Compact list items */
  .status-card-mobile > div:last-child {
    padding-top: 8px !important;
    font-size: 12px !important;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .status-card-mobile > div:last-child > div {
    padding: 3px 0 !important;
    font-size: 12px !important;
    line-height: 1.4;
  }
  
  /* Better grid for status cards */
  .status-grid-mobile {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Desktop override for status-grid-mobile */
  @media (min-width: 769px) {
    .status-grid-mobile {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
      gap: 12px !important;
    }
  }
  
  /* Compact welcome section */
  .welcome-section {
    margin-bottom: 16px;
  }
  .action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  /* Better table styling */
  table { font-size: 13px; }
  th, td { padding: 8px 6px !important; }
  
  /* More compact forms */
  .input, select, textarea { font-size: 14px; padding: 10px; }
  label { font-size: 13px; margin: 6px 0 3px; }
  
  /* Better spacing */
  .card { margin-top: 10px !important; }
  
  /* Smooth scrolling */
  * { -webkit-overflow-scrolling: touch; }
  
  /* Better touch targets */
  a, button, input, select, textarea {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Improved scrollbar for mobile */
  .status-card-mobile > div:last-child::-webkit-scrollbar {
    width: 4px;
  }
  .status-card-mobile > div:last-child::-webkit-scrollbar-track {
    background: transparent;
  }
  .status-card-mobile > div:last-child::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
  }
  
  /* Better card shadows on mobile */
  .status-card-mobile {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  /* Desktop restore touch targets */
  @media (min-width: 769px) {
    a, button, input, select, textarea {
      min-height: auto;
    }
    .mobile-menu-button {
      display: none !important;
    }
  }
}

/* Hamburger icon animation for desktop (if ever visible) */
@media (min-width: 769px) {
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
  }
  .hamburger-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  body.sidebar-open .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  body.sidebar-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  body.sidebar-open .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Responsive overrides removed to restore original admin layout */

