:root {
  --wf-bg: #ffffff;
  --wf-bg-alt: #f4f4f4;
  --wf-sidebar-bg: #1a1a1a;
  --wf-sidebar-hover: #333333;
  --wf-sidebar-active: #444444;
  --wf-border: #dddddd;
  --wf-text-main: #000000;
  --wf-text-muted: #666666;
  --wf-text-inv: #ffffff;
  --wf-accent: #000000;
  --wf-accent-hover: #333333;
  --wf-radius: 4px;
  --wf-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --sidebar-width: 260px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--wf-bg-alt);
  color: var(--wf-text-main);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--wf-sidebar-bg);
  color: var(--wf-text-inv);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #333;
}

.logo-box {
  width: 32px;
  height: 32px;
  background-color: var(--wf-text-inv);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: bold;
  color: #000;
  font-size: 10px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: #aaaaaa;
  font-size: 14px;
  gap: 12px;
  transition: all 0.2s;
}

.nav-item:hover {
  background-color: var(--wf-sidebar-hover);
  color: var(--wf-text-inv);
}

.nav-item.active {
  background-color: var(--wf-sidebar-active);
  color: var(--wf-text-inv);
  border-left: 4px solid var(--wf-text-inv);
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  height: var(--header-height);
  background-color: var(--wf-bg);
  border-bottom: 1px solid var(--wf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  position: relative;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #000;
  color: #fff;
  font-size: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.user-info {
  text-align: right;
}

.user-name {
  display: block;
  font-weight: 700;
}

.user-role {
  display: block;
  font-size: 11px;
  color: var(--wf-text-muted);
}

.avatar {
  width: 32px;
  height: 32px;
  background-color: #ddd;
  border-radius: 50%;
}

/* Page Container */
.content {
  padding: 24px;
  max-width: 1400px;
  width: 100%;
}

/* Cards & Components */
.card {
  background: var(--wf-bg);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--wf-text-muted);
}

.form-input {
  padding: 8px 12px;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  font-size: 14px;
}

/* Buttons */
.btn {
  padding: 10px 24px;
  border-radius: var(--wf-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background-color: var(--wf-accent);
  color: var(--wf-text-inv);
}

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

.btn-secondary {
  background-color: #444;
  color: #fff;
}

/* Action Groups */
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Worklist items */
.work-item {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr 100px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  margin-bottom: 12px;
}

.status-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  background: #eee;
  border: 2px solid #ddd;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-bold {
  font-weight: 700;
}

.link-text {
  color: #000;
  text-decoration: underline;
  font-weight: 700;
}

/* Icons */
.placeholder-icon {
  width: 16px;
  height: 16px;
  background-color: #ddd;
  flex-shrink: 0;
}

/* Center Landing */
.landing-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

.landing-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}

.landing-card {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: var(--wf-shadow);
}

.landing-card:hover {
  transform: translateY(-4px);
}

.large-icon-box {
  width: 60px;
  height: 80px;
  background-color: #eee;
  border-radius: 4px;
  position: relative;
}

.large-icon-box::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #ccc;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: #fff;
  width: 600px;
  max-width: 90%;
  border-radius: var(--wf-radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--wf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background: #f9f9f9;
  border-top: 1px solid var(--wf-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Details Page specific */
.details-header-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 200px;
  gap: 24px;
}

.detail-item {
  margin-bottom: 12px;
  font-size: 13px;
}

.detail-label {
  color: var(--wf-text-muted);
  margin-right: 8px;
}

.sla-block {
  border-left: 1px solid var(--wf-border);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.upload-zone {
  border: 2px dashed var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f9f9f9;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
