/* Portal Custom Styling - Modern & Fancy Design */
/* This stylesheet provides modern styling for the portal without affecting Frappe core */

:root {
  --portal-primary: #6366f1;
  --portal-primary-dark: #4f46e5;
  --portal-secondary: #8b5cf6;
  --portal-accent: #ec4899;
  --portal-bg: #f8fafc;
  --portal-surface: #ffffff;
  --portal-border: #e2e8f0;
  --portal-text-primary: #1e293b;
  --portal-text-secondary: #64748b;
  --portal-text-light: #94a3b8;
  --portal-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --portal-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --portal-radius: 12px;
  --portal-radius-lg: 16px;
}

/* ==================== Page Layout ==================== */

body[frappe-session-status] {
  background: #f1f5f9;
  color: var(--portal-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.page-container {
  background: var(--portal-surface);
  border-radius: var(--portal-radius-lg);
  box-shadow: var(--portal-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ==================== Sidebar Styling ==================== */

.web-sidebar {
  background: var(--portal-surface);
  border-radius: var(--portal-radius-lg);
  padding-top: 0;
  margin-block: 16px;
  position: relative;
}
.web-sidebar .sidebar-items{
  overflow: hidden;
}


.sidebar-item a {
  display: block;
  padding: 5px 6px;
  color: var(--portal-text-secondary);
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  border-inline-start: 3px solid transparent;
}

.sidebar-item a:hover {
  color: var(--portal-primary);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 100%);
  border-inline-start-color: var(--portal-primary);
}

.sidebar-item a.active {
  color: var(--portal-primary);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 100%);
  border-inline-start-color: var(--portal-primary);
  font-weight: 600;
}
.page-header-wrapper h3 {
  margin-top: 0;
}
.web-form-container [style="height: 3rem"]:empty {
  display: none;
}
.web-list-container {
  background-color: #fff;
}