* { box-sizing: border-box; font-family: system-ui, sans-serif; }

body { margin: 0; background: #f2f4f7; }

html, body {
  overflow-x: hidden;
}

.onlymobile {
	display: none;
}

.onlypc {
	display: block;
}

  .largerfont {
	  font-size: 16px;
  }

/* Table-specific overrides */
tr.onlypc {
  display: table-row;
}

tr.onlymobile {
  display: none;
}

.bulk-action {
  margin-bottom: 14px;   /* 20px below the select box */
}

.bulk-select {
  min-width: 260px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;

  border-radius: 10px;
  border: 1px solid #cfd6e0;
  background-color: #fff;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}

  .carding{
    background:#ffffff;border:3px solid #ddd;
    border-radius:12px;
    padding:6px;
	margin-bottom:16px;
  }

.btn{
    display:inline-flex;align-items:center;justify-content:center;
    height:24px;padding:0 6px;border-radius:999px;border:1px solid #ddd;
    background:#f8f9fb;color:#1a1a1a;cursor:pointer;font-weight:600;font-size:13px;
    text-decoration:none; margin-bottom: 6px;
  }
  .btn:hover{background:#eef0f4}
  .btn-primary{background:linear-gradient(180deg,#3b82f6,#2563eb);
    border-color:#2563eb;color:#fff}
  .btn-warn{background:linear-gradient(180deg,#fbbf24,#d97706);
    border-color:#d97706;color:#fff}
  .btn-danger{background:linear-gradient(180deg,#ef4444,#dc2626);
    border-color:#b91c1c;color:#fff}

/* focus state */
.bulk-select:focus {
  outline: none;
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47,128,237,0.25);
}



.button-row {
  display: flex;
  flex-wrap: wrap;          /* allows wrapping on small screens */
  gap: 12px;                /* space between buttons */
  justify-content: center;  /* center on desktop */
}

.admin-btn {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(#2f80ed, #1c5fd4);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  white-space: nowrap;      /* keeps text on one line */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

/* Hover & focus */
.admin-btn:hover,
.admin-btn:focus {
  background: linear-gradient(#3a8bfd, #1f6ae1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}


.admin-layout {
  display: flex;
  gap: 16px;
  padding: 16px;
  min-height: 100vh;
  align-items: flex-start;
}

.sidebar-card {
  width: 300px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 12px;
  overflow-y: auto;
}

.main-card {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 32px;
}

.nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #888;
  margin: 16px 8px 8px;
}

.nav-header {
  width: 100%;
  border: none;
  background: none;
  padding: 10px 12px;
  font-weight: 600;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
}

.nav-header:hover { background: #f0f3f7; }

.nav-items { display: none; padding-left: 12px; }

.nav-items a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
}

.nav-items a:hover { background: #eef2f7; }

/* MOBILE TOP BAR */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 14px;
  margin: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.mobile-topbar button {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-title {
  font-weight: 600;
  font-size: 16px;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 900px) {

  .largerfont {
	  font-size: 16px;
  }
  
  .onlymobile {
		display: block;
	}

	.onlypc {
		display: none;
	}
	
  tr.onlypc {
    display: none;
  }

  tr.onlymobile {
    display: table-row;
  }
  
  
  .admin-layout {
    flex-direction: column;
    padding: 8px;
  }
  
  .admin-layout.no-sidebar {
	  padding-top: 0;
	}

	.admin-layout.no-sidebar .main-card {
	  width: 100%;
	}

  .sidebar-card {
    display: none;
    width: 100%;
    max-height: 80vh;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0 0 18px 18px;
  }

  .sidebar-card.open {
    display: block;
  }

  .mobile-topbar {
    display: flex;
  }

  .main-card {
	padding:6px;
	width: 100%;
    max-width: 100%;
    margin: 0;
  }
}


/* ============================= */
/* DESKTOP TOP NAVIGATION */
/* ============================= */

.desktop-topnav {
  background: #fff;
  margin: 16px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.topnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 18px;
  align-items: center;
}

.topnav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #777;
  margin-right: 6px;
  white-space: nowrap;
}

.topnav-dropdown {
  position: relative;
}

.topnav-header {
  border: none;
  background: #f0f3f7;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.topnav-header:hover {
  background: #e6ebf2;
}

.topnav-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 6px;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  z-index: 2000;
}

.topnav-menu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  font-size: 14px;
}

.topnav-menu a:hover {
  background: #eef2f7;
}

.topnav-dropdown:hover .topnav-menu,
.topnav-menu:hover {
  display: block;
}


.topnav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}



