:root{
  --accent: #ff7a00;
  --accent-100: rgba(255,122,0,.08);
  --accent-200: rgba(255,122,0,.16);
  --accent-300: rgba(255,122,0,.24);
  --border: #e5e7eb;
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 76px;
  --transition-speed: 0.3s;
}

input, textarea, select, button {
    outline: none !important;  
    box-shadow: none !important; 
    border-color: #ced4da !important; 
}


input:focus, textarea:focus, select:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: orange !important;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f8f9fa;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--transition-speed) ease;
}
.app.expanded {
  grid-template-columns: var(--sidebar-w) 1fr;
}

/* Top navbar */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Sidebar */
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: width var(--transition-speed) ease;
  width: var(--sidebar-w-collapsed);
  padding: 1rem 0.5rem;
}
.app.expanded .sidebar {
  width: var(--sidebar-w);
}

/* Hide scrollbar */
.sidebar::-webkit-scrollbar { display: none; }
.sidebar { -ms-overflow-style: none; scrollbar-width: none; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 4px;
  position: relative;
  user-select: none;
}
.menu-item:hover, .menu-item.active {
  background: var(--accent-100);
  color: var(--accent);
}
.menu-item .bi {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.menu-text { 
  display: none; 
  flex: 1;
}
.app.expanded .menu-text { display: inline; }

.menu-item .chevron {
  display: none;
  transition: transform 0.3s ease;
}
.app.expanded .menu-item .chevron {
  display: inline;
}
.menu-item[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  margin-left: 12px;
  border-left: 2px solid var(--accent-200);
  padding-left: 8px;
  margin-top: 4px;
  margin-bottom: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.submenu.show {
  max-height: 500px;
}
.submenu a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.submenu a:hover {
  background: var(--accent-100);
  color: var(--accent);
}
.submenu a .bi {
  font-size: 0.9rem;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Content */
.content {
  padding: 2rem;
  background: #f8f9fa;
}

/* Card styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

/* Dashboard stats */
.stat-card {
  border-left: 4px solid var(--accent);
}

/* Toggle button */
#btnSidebar {
  transition: all 0.3s ease;
}
#btnSidebar:hover {
  background: var(--accent-100);
  border-color: var(--accent);
}

/* Active menu indicator */
.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 4px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-accent-100 {
  background-color: var(--accent-100) !important;
}