:root {
  --primary-color: #095789;
  /* WEC Navy */
  --secondary-color: #0A446A;
  /* WEC Dark Navy */
  --accent-color: #DD1D0F;
  /* WEC Red */
  --success-color: #10b981;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --footer-bg: #262626;
  --border-radius: 8px;
  /* Slightly sharper options usually fit corporate better */
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
  max-width: none;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.2s;
  border-top: 4px solid transparent;
  /* Prepare for accent borders */
}

/* Add subtle top border to cards for premium feel */
.card:hover {
  border-top-color: var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  /* Sharper buttons */
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  /* Red buttons as CTAs */
  color: white;
}

.btn-primary:hover {
  background-color: #b91c0e;
  /* Darker red */
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Login Page */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-top: none;
  /* No hover effect needed here */
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-placeholder {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  /* Correct for cards, will override for header */
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(9, 87, 137, 0.1);
}

/* Activation Page */
.activation-card {
  width: 100%;
  max-width: 700px;
  /* Wider than login */
  border-top: none;
}

.activation-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.activation-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.option-card:hover {
  border-color: var(--primary-color);
  background: #f8fafc;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--primary-color);
}

.option-card.selected {
  border-color: var(--primary-color);
  background: #f0f9ff;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.option-content {
  flex: 1;
}

.option-label {
  display: block;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.option-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mfa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .mfa-grid {
    grid-template-columns: 1fr;
  }
}

.activation-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .activation-grid-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.activation-column {
  display: flex;
  flex-direction: column;
}

.activation-card {
  max-width: 900px;
  /* Wider card for 2 columns */
}

.option-card.compact {
  padding: 0.75rem;
}

/* PIN Input Styles */
.pin-input-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.pin-digit {
  width: 60px;
  height: 70px;
  font-size: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  color: var(--primary-color);
  font-weight: 700;
  transition: all 0.2s;
  outline: none;
}

.pin-digit:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(9, 87, 137, 0.1);
  transform: translateY(-2px);
}

.pin-input-container.compact {
  gap: 0.5rem;
}

.pin-input-container.compact .pin-digit {
  width: 45px;
  height: 60px;
  font-size: 1.5rem;
}

/* Modal-like wrapper for separate pages */
.modal-page-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  /* Backdrop */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-like-card {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Dashboard */
/* Dashboard Header */
/* Sidebar Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

.sidebar-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-user {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-logo {
  max-width: 180px;
  /* Increased from max-height logic to fit the new wide logo */
  height: auto;
  max-height: 60px;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
}

.nav-item.active {
  background-color: #f1f5f9;
  color: var(--primary-color);
  border-left-color: var(--accent-color);
  font-weight: 600;
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
}

/* Top Header (Blue) */
/* Top Header (Blue) */
.top-header {
  height: 80px;
  /* Slightly taller for more content */
  background: #095789;
  /* Kancelaria WEC Brand Blue */
  display: flex;
  justify-content: space-between;
  /* Allow content on both sides */
  align-items: center;
  padding: 0 2rem;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.header-welcome {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.header-tip {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* Header Progress Widget */
.header-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  text-align: right;
}

.progress-bar-bg {
  width: 120px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #4ade80;
  /* Green for progress */
  width: 25%;
  /* Example value */
  border-radius: 4px;
}

.top-header .info-bar {
  border-right-color: rgba(255, 255, 255, 0.2);
}

.top-header .info-label {
  color: rgba(255, 255, 255, 0.7);
}

.top-header .info-value {
  color: white;
}

.top-header .info-value.highlight {
  color: #ff4d4d;
}

.top-header .user-name {
  color: white;
}

/* Hide Old Header */
.dashboard-header {
  display: none;
}

/* Reusing elements for header content */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.info-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 1.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid #e2e8f0;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
}

.info-value.highlight {
  color: var(--accent-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dashboard Grid */
/* Dashboard Grid - Enforced */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-6 {
    grid-template-columns: 1fr;
  }
}

.tile {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tile-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tile-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border-radius: 12px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.tile-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.tile:hover .tile-icon {
  transform: scale(1.1);
}

.tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cases-section {
  margin-top: 2rem;
}

.table-container {
  overflow-x: auto;
}

.cases-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.cases-table th,
.cases-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.cases-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: #f1f5f9;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: #dbfce7;
  color: #15803d;
}

/* Profile Page Styles */
.profile-section {
  margin-bottom: 2rem;
  padding: 2rem;
  /* More breathing room */
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.section-header h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 0;
}

/* Data Grid (Dane Osobowe) */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.data-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.data-label-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.data-icon {
  font-size: 1rem;
  color: var(--primary-color);
  opacity: 0.8;
}

.data-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.data-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  padding-left: 1.5rem;
  /* Align with text, not icon */
}

/* Refined Contact Lists (Clean Style) */
.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Badges for Contact Types */
.badge-soft {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-soft.primary {
  background-color: #e0f2fe;
  /* Light Blue */
  color: #0369a1;
  /* Dark Blue */
}

.badge-soft.accent {
  background-color: #fee2e2;
  /* Light Red */
  color: #b91c0e;
  /* Dark Red */
}

.badge-soft.gray {
  background-color: #f1f5f9;
  color: #475569;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.icon-btn {
  background: white;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.icon-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: #f0f9ff;
}

.icon-btn.delete:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: #fef2f2;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--accent-color);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* RODO Toggles Refinement */
/* RODO Toggles Refinement */
.consent-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Align to top to handle long text properly */
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.consent-item:last-child {
  border-bottom: none;
}

.consent-text {
  flex: 1;
  /* Take available space */
  max-width: 85%;
  /* Prevent text from hitting the switch too hard */
}

.consent-text h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.consent-text p {
  font-size: 0.95rem;
  /* Slightly larger for readability */
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* RWD Styles */
/* Custom Toggle Switch for RODO */
.switch-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.switch-group input {
  display: none;
}

.switch-label-text {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.switch-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: transparent;
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.switch-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #cbd5e1;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Checked State */
.switch-group input:checked+.switch-toggle {
  background-color: #3b82f6;
  /* Azure Blue to match image style */
  border-color: #3b82f6;
}

.switch-group input:checked+.switch-toggle::after {
  transform: translateX(24px);
  background-color: white;
}

/* Disabled State */
.switch-group input:disabled+.switch-toggle {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

.switch-group input:disabled+.switch-toggle::after {
  background-color: #94a3b8;
}

.switch-arrow {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: bold;
}


.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 95;
  /* Below sidebar (100), above content */
  opacity: 0;
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .top-header {
    justify-content: space-between;
    /* Align toggle left, content right */
    padding: 0 1rem;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    width: 280px;
    /* Slightly wider on mobile for better touch targets */
  }
}

/* Case Details Page Styles */
.case-details-header {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.case-id-group h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.case-main-info {
  display: flex;
  gap: 3rem;
  margin-top: 1rem;
}

.info-block label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-block span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.amount-highlight {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #e2e8f0;
  margin-top: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  /* Adjust based on padding/border */
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-color);
}

.timeline-date {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Plan Selector Styles */
.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.plan-card.selected {
  border-color: var(--success-color);
  background-color: #f0fdf4;
  position: relative;
}



.plan-radio {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--success-color);
}

.plan-details h4 {
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.plan-tag {
  background: var(--success-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.plan-math {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.custom-plan-inputs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}



@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }

  /* Shown when sidebar is open */
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
  }

  /* Adjust info bar for mobile */
  .info-bar {
    gap: 0.75rem;
    margin-right: 0.5rem;
    padding-right: 0.5rem;
  }

  .info-label {
    font-size: 0.65rem;
  }

  .info-value {
    font-size: 0.8rem;
  }

  /* Contact page grid fix */
  main.container>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Top margin for second column in contact */
  .card[style*="margin-top: 5.5rem"] {
    margin-top: 1rem !important;
  }
}


/* Payment Module Styles */
.payment-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-option {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}

.amount-option:hover {
  border-color: var(--primary-light);
}

.amount-option.selected {
  border-color: var(--primary-color);
  background-color: #f0f9ff;
  color: var(--primary-color);
}

.amount-option .amount-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.amount-option.selected .amount-label {
  color: var(--primary-color);
}

.amount-option .amount-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.custom-amount-input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  color: inherit;
  padding: 0;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-method-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.payment-method-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.payment-method-card.selected {
  border-color: var(--primary-color);
  background-color: #f0f9ff;
  position: relative;
}

.payment-method-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
}

.method-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.method-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.blik-code-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  display: none;
  /* Hidden by default */
  animation: fadeIn 0.3s ease;
}

.blik-code-container.active {
  display: block;
}

.blik-input {
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  text-align: center;
  width: 160px;
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.blik-input:focus {
  border-color: var(--accent-color);
  outline: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .amount-options {
    grid-template-columns: 1fr;
  }
}

/* Custom Toggle Switch for RODO */
.switch-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.switch-group input {
  display: none;
}

.switch-label-text {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.switch-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: transparent;
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.switch-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #cbd5e1;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Checked State */
.switch-group input:checked+.switch-toggle {
  background-color: #3b82f6;
  /* Azure Blue to match image style */
  border-color: #3b82f6;
}

.switch-group input:checked+.switch-toggle::after {
  transform: translateX(24px);
  background-color: white;
}

/* Disabled State */
.switch-group input:disabled+.switch-toggle {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

.switch-group input:disabled+.switch-toggle::after {
  background-color: #94a3b8;
}

.switch-arrow {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: bold;
}

/* Tabs Styles */
.tabs-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Closed Case Styles */
.tr-closed {
  opacity: 0.7;
  background-color: #f8fafc;
}

.tr-closed td {
  color: #94a3b8;
}

.tr-closed .badge-active {
  background-color: #f1f5f9;
  color: #64748b;
}

/* Compact Table Styles */
.cases-table {
  font-size: 0.85rem;
}

.cases-table td {
  padding: 0.75rem 0.5rem;
  /* Reduce horizontal padding */
}

/* Dashboard & Case Action Buttons */
.action-btn-fixed {
  width: 140px;
  /* Fixed width for consistency */
  text-align: center;
  display: inline-block;
}

.visible-notice {
  font-size: 0.65rem;
  color: #dc2626;
  margin-top: 0.25rem;
  text-align: center;
  line-height: 1.1;
  width: 140px;
  white-space: normal;
  margin-left: auto;
  margin-right: auto;
}

/* Glassmorphism Utilities */
.glass-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 100%;
  text-transform: uppercase;
}

.glass-badge-sms {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(253, 230, 138, 0.6));
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.3);
}

.glass-badge-email {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.8), rgba(186, 230, 253, 0.6));
  color: #075985;
  border-color: rgba(56, 189, 248, 0.3);
}

.glass-badge-form {
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.8), rgba(233, 213, 255, 0.6));
  color: #6b21a8;
  border-color: rgba(192, 132, 252, 0.3);
}

.glass-badge-default {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.8), rgba(226, 232, 240, 0.6));
  color: #475569;
  border-color: rgba(203, 213, 225, 0.3);
}

/* Glass Buttons */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.btn-glass:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-glass-default {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  color: #334155;
  border-color: #e2e8f0;
}

.btn-glass-default:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(241, 245, 249, 0.95));
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-glass-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}

.btn-glass-premium {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(236, 254, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #0e7490;
  box-shadow: 0 4px 6px rgba(6, 182, 212, 0.1);
}

.btn-glass-premium:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(207, 250, 254, 0.8));
  box-shadow: 0 6px 12px rgba(6, 182, 212, 0.15);
  color: #0891b2;
}

.btn-glass-gold {
  background: linear-gradient(135deg, rgba(254, 249, 195, 0.4), rgba(253, 224, 71, 0.2));
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #a16207;
}

.btn-glass-gold:hover {
  background: linear-gradient(135deg, rgba(254, 249, 195, 0.6), rgba(253, 224, 71, 0.3));
  color: #854d0e;
  border-color: rgba(250, 204, 21, 0.5);
}

.btn-glass-danger {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.6), rgba(252, 165, 165, 0.4));
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.4);
}

.btn-glass-danger:hover {
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.8), rgba(248, 113, 113, 0.6));
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.6);
}

.btn-glass-success {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.6), rgba(134, 239, 172, 0.4));
  color: #166534;
  border-color: rgba(34, 197, 94, 0.4);
}

.btn-glass-success:hover {
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.8), rgba(74, 222, 128, 0.6));
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.6);
}