/* Microsoft 365 Inspired Theme - Fluent UI */
:root {
  --theme-primary: #0078d4;
  --theme-secondary: #2b88d8;
  --theme-dark: #005a9e;
  --theme-lighter: #deecf9;
  --neutral-primary: #323130;
  --neutral-secondary: #605e5c;
  --neutral-light: #edebe9;
  --neutral-lighter: #f3f2f1;
  --white: #ffffff;
  --page-background: #faf9f8;
  --card-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108);
  --card-hover-shadow: 0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108);
  --font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--page-background);
  color: var(--neutral-primary);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow-x: hidden;
}

/* Layout Shell */
.app-shell {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: var(--white);
  border-right: 1px solid var(--neutral-light);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--theme-primary);
  border-bottom: 1px solid var(--neutral-light);
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--neutral-primary);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover {
  background-color: var(--neutral-lighter);
}

.nav-link.active {
  background-color: var(--theme-lighter);
  color: var(--theme-dark);
  border-left: 3px solid var(--theme-primary);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: 48px;
  background-color: var(--theme-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.top-bar-title {
  font-weight: 600;
  font-size: 16px;
}

.user-profile {
  font-size: 14px;
  cursor: pointer;
}

.top-bar .dropdown-toggle::after {
  display: none;
}


.content-wrapper {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* Cards & UI Elements */
.content-card {
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: 2px;
  /* M365 uses slight rounding or sharp corners */
  padding: 24px;
  margin-bottom: 24px;
}

.page-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-primary);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 6px 20px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--theme-primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--theme-dark);
}

.btn-secondary {
  background-color: var(--white);
  border-color: var(--neutral-secondary);
  color: var(--neutral-primary);
}

.btn-secondary:hover {
  background-color: var(--neutral-lighter);
}

.btn-success {
  background-color: #107c10;
  color: var(--white);
}

.btn-success:hover {
  background-color: #0b5a0b;
}

.btn-danger {
  background-color: #a4262c;
  color: var(--white);
}

.btn-danger:hover {
  background-color: #891f24;
}

.btn-warning {
  background-color: #ffb900;
  color: var(--neutral-primary);
}

.btn-warning:hover {
  background-color: #d19a02;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--neutral-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-light);
}

.table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--neutral-lighter);
}

.table tr:hover {
  background-color: var(--neutral-lighter);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
}

.bg-success {
  background-color: #dff6dd;
  color: #107c10;
}

.bg-secondary {
  background-color: #f3f2f1;
  color: #323130;
}

.bg-primary {
  background-color: #c7e0f4;
  color: #0078d4;
}

.bg-warning {
  background-color: #fff4ce;
  color: #797775;
}

/* File Upload Styles */
.file-drop-zone {
  border: 2px dashed var(--neutral-secondary);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--theme-primary);
  background-color: var(--theme-lighter);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview-container {
  margin-top: 10px;
  text-align: center;
}

.file-preview {
  max-width: 100%;
  max-height: 200px;
  display: none;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  margin-top: 8px;
}

.drop-zone-text {
  font-size: 14px;
  color: var(--neutral-secondary);
  pointer-events: none;
}

.drop-zone-icon {
  font-size: 24px;
  color: var(--theme-primary);
  margin-bottom: 8px;
  pointer-events: none;
}


/* Footer */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--neutral-light);
  padding: 16px 0;
  margin-top: auto;
}