/* Custom Reset & Variable Definitions */
:root {
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --bg-dark: #07060f;
  --bg-card: rgba(18, 16, 35, 0.6);
  --bg-card-hover: rgba(26, 23, 50, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(167, 139, 250, 0.5);
  
  --primary: #9d4edd;
  --primary-glow: rgba(157, 78, 221, 0.35);
  --secondary: #6366f1;
  --secondary-glow: rgba(99, 102, 241, 0.25);
  --accent: #f72585;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-darker: #6b7280;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --orange: #f97316;

  /* Layout Constants */
  --sidebar-width: 260px;
  --border-radius-lg: 18px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-blur: blur(16px);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow Spheres */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.glow-1 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  top: -10vw;
  right: -5vw;
  animation: float-slow 20s infinite alternate;
}

.glow-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
  bottom: -15vw;
  left: -10vw;
  animation: float-slow 25s infinite alternate-reverse;
}

.glow-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: 30%;
  left: 40%;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 5%) scale(1.05); }
  100% { transform: translate(-2%, -3%) scale(0.95); }
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 8, 22, 0.8);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-left: 3px solid var(--primary);
}

.nav-item.active i {
  color: var(--primary);
  transform: scale(1.1);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Connection Status Dot */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.connected .status-dot {
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-indicator.connected {
  color: var(--success);
}

.status-indicator.disconnected .status-dot {
  background-color: var(--text-darker);
}

.status-indicator.disconnected {
  color: var(--text-muted);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 2rem 2.5rem;
  max-width: calc(100vw - var(--sidebar-width));
}

/* Top Bar Styling */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-title h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-main) 30%, #a78bfa 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Quick Credentials Inputs in Top Bar */
.quick-credentials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-wrapper, .select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .icon-left, .select-wrapper .icon-left {
  position: absolute;
  left: 1rem;
  color: var(--text-darker);
  font-size: 0.9rem;
}

.input-wrapper input, .select-wrapper select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-width: 180px;
  max-width: 240px;
  transition: var(--transition-smooth);
}

.input-wrapper input:focus, .select-wrapper select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.select-wrapper select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.5rem;
}

.select-wrapper select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Icon Buttons inside Inputs */
.btn-icon {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.select-wrapper .btn-icon {
  right: 0.5rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

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

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Gradient Borders for VIP Cards */
.purple-gradient-border {
  position: relative;
}

.purple-gradient-border::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25) 0%, rgba(99, 102, 241, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Date / Controls Banner */
.controls-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-selector .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.quick-dates {
  display: flex;
  gap: 0.5rem;
}

.btn-date {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-date:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-date.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

/* Custom Date Range Inputs */
.custom-date-inputs {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: fadeIn 0.3s ease-out;
}

.custom-date-inputs.hidden {
  display: none !important;
}

.date-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-input-group label {
  color: var(--text-darker);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.date-input-group input[type="date"] {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-smooth);
}

.date-input-group input[type="date"]:focus {
  border-color: var(--border-focus);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.metric-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-card .card-title {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.metric-card .card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.icon-spend {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.icon-model {
  background: rgba(99, 102, 241, 0.15);
  color: var(--secondary);
}

.icon-count {
  background: rgba(247, 37, 133, 0.1);
  color: var(--accent);
}

.icon-balance {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.metric-card .card-value {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #f72585 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-card .card-trend {
  font-size: 0.82rem;
  font-weight: 500;
}

/* Charts Section */
.charts-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.chart-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.chart-header .chart-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.chart-container {
  position: relative;
  flex-grow: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-darker);
  text-align: center;
  padding: 2rem;
}

.chart-placeholder i {
  font-size: 3.5rem;
  opacity: 0.5;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chart-placeholder p {
  font-size: 0.9rem;
  max-width: 250px;
}

/* Tab Management */
.tab-content {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Costs Table Styling */
.table-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 320px;
}

.table-search .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-darker);
}

.table-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.table-search input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.07);
}

.table-export-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.data-table th.sortable:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.data-table th i {
  margin-left: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-darker);
}

.data-table tbody tr {
  transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table td {
  font-family: var(--font-body);
  color: var(--text-main);
}

.data-table td:first-child {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-main);
}

.table-empty-state {
  text-align: center;
  padding: 4rem 2rem !important;
  color: var(--text-muted);
}

.table-empty-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-darker);
}

.table-total-row td {
  font-family: var(--font-title) !important;
  font-weight: 700 !important;
  background: rgba(157, 78, 221, 0.08);
  border-top: 2px solid var(--primary);
  border-bottom: none;
  font-size: 1rem;
}

.table-total-row td:first-child {
  color: var(--primary);
}

.hidden {
  display: none !important;
}

/* Config Layout Settings */
.config-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

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

.config-col {
  padding: 2.25rem;
}

.section-title {
  margin-bottom: 2rem;
}

.section-title h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group .help-text {
  display: block;
  font-size: 0.78rem;
  color: var(--text-darker);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Custom Styled Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.radio-label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.radio-label input[type="radio"] {
  display: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-darker);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.radio-label input[type="radio"]:checked + .custom-radio {
  border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .custom-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--primary);
}

.label-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.label-text strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.label-text .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Guide Styles */
.guide-container {
  padding: 2.5rem;
}

.guide-container h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

.guide-section h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.guide-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
}

.guide-steps {
  margin-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.guide-steps li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.guide-steps code, .guide-section p code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 0.85rem;
  color: #c084fc;
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 1rem 0;
}

.text-orange {
  color: var(--orange);
}

.text-yellow {
  color: var(--warning);
}

/* Notification Banner */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(18, 16, 35, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
  z-index: 1000;
  max-width: 400px;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from { transform: translateY(100%) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.notification.hidden {
  display: none !important;
}

.notification-icon {
  font-size: 1.2rem;
}

.notification.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.notification.success .notification-icon {
  color: var(--success);
}

.notification.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.notification.error .notification-icon {
  color: var(--danger);
}

.notification.info {
  border-color: rgba(99, 102, 241, 0.3);
}

.notification.info .notification-icon {
  color: var(--secondary);
}

.notification-message {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  flex-grow: 1;
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--text-darker);
  cursor: pointer;
  padding: 0.2rem;
  transition: var(--transition-smooth);
}

.notification-close:hover {
  color: var(--text-main);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
  }
  
  .brand {
    margin-bottom: 1.5rem;
  }
  
  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .nav-item {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .quick-credentials {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .input-wrapper, .select-wrapper, .input-wrapper input, .select-wrapper select {
    max-width: 100%;
    width: 100%;
  }
  
  .btn-primary {
    width: 100%;
  }
}

/* Loading animations */
.fa-spin-fast {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Shimmer Loading Skeleton */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
