/* ============================================
   URIP - Unified Risk Intelligence Platform
   Semantic Gravity - Enterprise Cybersecurity SaaS
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  /* Brand Colors */
  --navy-primary: #0D1B2A;
  --navy-dark: #08121C;
  --navy-light: #1B2838;
  --teal-accent: #1ABC9C;
  --teal-hover: #16A085;
  --teal-light: #2ECC71;
  --red-critical: #E74C3C;
  --red-dark: #C0392B;
  --orange-high: #E67E22;
  --yellow-medium: #F1C40F;
  --green-low: #27AE60;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F0F4F8;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(26, 188, 156, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-100);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Colors */
.text-navy { color: var(--navy-primary); }
.text-teal { color: var(--teal-accent); }
.text-red { color: var(--red-critical); }
.text-orange { color: var(--orange-high); }
.text-yellow { color: var(--yellow-medium); }
.text-green { color: var(--green-low); }
.text-gray { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-white { color: var(--white); }

.bg-navy { background-color: var(--navy-primary); }
.bg-navy-dark { background-color: var(--navy-dark); }
.bg-teal { background-color: var(--teal-accent); }
.bg-red { background-color: var(--red-critical); }
.bg-orange { background-color: var(--orange-high); }
.bg-yellow { background-color: var(--yellow-medium); }
.bg-green { background-color: var(--green-low); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-white { background-color: var(--white); }

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

/* Components - Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--teal-accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background-color: var(--gray-300);
}

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

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

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

.btn-outline:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

/* Components - Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

/* Components - Forms */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--gray-800);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:disabled {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

/* Components - Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-critical {
  background-color: rgba(231, 76, 60, 0.15);
  color: var(--red-critical);
}

.badge-high {
  background-color: rgba(230, 126, 34, 0.15);
  color: var(--orange-high);
}

.badge-medium {
  background-color: rgba(241, 196, 15, 0.15);
  color: #B7950B;
}

.badge-low {
  background-color: rgba(39, 174, 96, 0.15);
  color: var(--green-low);
}

.badge-info {
  background-color: rgba(26, 188, 156, 0.15);
  color: var(--teal-accent);
}

.badge-default {
  background-color: var(--gray-200);
  color: var(--gray-600);
}

/* Components - Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--red-critical);
}

.alert-warning {
  background-color: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.2);
  color: #B7950B;
}

.alert-info {
  background-color: rgba(26, 188, 156, 0.1);
  border: 1px solid rgba(26, 188, 156, 0.2);
  color: var(--teal-accent);
}

/* Components - Tables */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  font-weight: 600;
  color: var(--gray-600);
  background-color: var(--gray-50);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Components - Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.pagination-btn.active {
  background-color: var(--teal-accent);
  color: var(--white);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Login Page Styles */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1558494949-ef526b004297?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(8, 18, 28, 0.9) 100%);
}

.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

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

.login-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--teal-hover) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.25rem;
}

.login-logo span {
  color: var(--teal-accent);
}

.login-logo p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

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

.login-form .form-input {
  padding: 0.875rem 1rem;
}

.login-btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Main Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-base);
}

.content-area {
  padding: 1.5rem 2rem;
  padding-top: calc(var(--topbar-height) + 1.5rem);
  min-height: 100vh;
}

/* Top Bar */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  transition: left var(--transition-base);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.org-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.375rem 0.875rem;
  background-color: var(--gray-100);
  border-radius: var(--radius-md);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.notification-btn:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--red-critical);
  border-radius: 50%;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.user-menu:hover {
  background-color: var(--gray-100);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal-accent) 0%, var(--teal-hover) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

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

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.user-role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.kpi-icon.critical {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--red-critical);
}

.kpi-icon.high {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--orange-high);
}

.kpi-icon.medium {
  background-color: rgba(241, 196, 15, 0.1);
  color: #B7950B;
}

.kpi-icon.low {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--gray-500);
}

.kpi-content {
  text-align: right;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.kpi-change {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.kpi-change.negative {
  color: var(--red-critical);
}

.kpi-change.positive {
  color: var(--green-low);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.dashboard-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.dashboard-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.dashboard-card-body {
  padding: 1.25rem;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

/* SLA Banner */
.sla-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.sla-banner-icon {
  width: 40px;
  height: 40px;
  background-color: var(--red-critical);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.sla-banner-content {
  flex: 1;
}

.sla-banner-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--red-critical);
}

.sla-banner-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.sla-banner-action {
  white-space: nowrap;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

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

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.filter-select:focus {
  outline: none;
  border-color: var(--teal-accent);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: var(--white);
}

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

.search-box i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

/* Status Tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.status-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-open {
  background-color: rgba(26, 188, 156, 0.1);
  color: var(--teal-accent);
}

.status-open::before {
  background-color: var(--teal-accent);
}

.status-in-progress {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498DB;
}

.status-in-progress::before {
  background-color: #3498DB;
}

.status-accepted {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--gray-500);
}

.status-accepted::before {
  background-color: var(--gray-500);
}

.status-closed {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--green-low);
}

.status-closed::before {
  background-color: var(--green-low);
}

/* Action Buttons */
.action-btns {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-500);
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.action-btn.view:hover {
  background-color: rgba(26, 188, 156, 0.1);
  color: var(--teal-accent);
}

.action-btn.assign:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498DB;
}

.action-btn.accept:hover {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--gray-600);
}

.action-btn.close:hover {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--green-low);
}

/* Excluded Tag */
.excluded-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-500);
  background-color: var(--gray-100);
  border-radius: var(--radius-full);
  border: 1px dashed var(--gray-300);
}

/* Split Layout for Acceptance Workflow */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.25rem;
}

.request-list {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.request-item {
  padding: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.request-item:hover {
  background-color: var(--gray-50);
}

.request-item.active {
  background-color: rgba(26, 188, 156, 0.05);
  border-left: 3px solid var(--teal-accent);
}

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

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

.request-id {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.request-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.request-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.detail-panel {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-height) + 1.5rem);
}

.detail-panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

.detail-panel-body {
  padding: 1.25rem;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.recommendation-box {
  padding: 1rem;
  background-color: rgba(26, 188, 156, 0.05);
  border: 1px solid rgba(26, 188, 156, 0.2);
  border-radius: var(--radius-md);
}

.recommendation-box p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.audit-trail {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.audit-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.audit-icon {
  width: 32px;
  height: 32px;
  background-color: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.audit-content {
  flex: 1;
}

.audit-text {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.audit-time {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* Report Cards */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.report-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.report-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.report-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.report-icon.executive {
  background-color: rgba(26, 188, 156, 0.1);
  color: var(--teal-accent);
}

.report-icon.ciso {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498DB;
}

.report-icon.board {
  background-color: rgba(155, 89, 182, 0.1);
  color: #9B59B6;
}

.report-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.report-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.report-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.report-actions {
  display: flex;
  gap: 0.75rem;
}

.report-actions .btn {
  flex: 1;
}

/* CERT-In Section */
.certin-section {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.certin-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.certin-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Responsive */
@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .detail-panel {
    position: static;
  }
}

@media (max-width: 1024px) {
  .dashboard-grid .col-6,
  .dashboard-grid .col-4,
  .dashboard-grid .col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: var(--sidebar-collapsed);
  }
  
  .topbar {
    left: var(--sidebar-collapsed);
    padding: 0 1rem;
  }
  
  .content-area {
    padding: 1rem;
    padding-top: calc(var(--topbar-height) + 1rem);
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .user-info {
    display: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
