/* Base styles */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --text-color: #1f2937;
  --light-gray: #f3f4f6;
  --border-color: #e5e7eb;
  --error-color: #ef4444;
  --error-bg: #fee2e2;
  --datev-accent: #4db3b3;
  --datev-accent-hover: #3d9a9a;
  --card-bg: rgba(20, 31, 35, 0.5);
  --card-border: rgba(51, 200, 208, 0.1);
  --sidebar-width: 56px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background-color: var(--light-gray);
  min-height: 100vh;
}

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

header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* sidebar */ 
.sidebar {
  width: var(--sidebar-width);
  background: var(--card-bg);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 0 1rem 0;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
  z-index: 50;
  border-right: 1px solid var(--card-border);
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 2rem;
}

/* Navigation Items */
.nav-items {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.nav-item {
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
}

.nav-item .icon {
  width: 24px;
  height: 24px;
  margin: 0;
}

.nav-item:hover, .nav-item.active {
  opacity: 1;
  background: rgba(77, 179, 179, 0.1);
  border-left: 3px solid var(--datev-accent);
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-menu span {
  margin-right: 1rem;
}

main {
  padding: 1.5rem 0;
}

footer {
  background-color: white;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.error-message {
  background-color: var(--error-bg);
  color: var(--error-color);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--datev-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--datev-accent-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #60a5fa;  /* Light blue */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-blue:hover {
  background: #3b82f6;  /* Darker blue */
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:last-child {
  margin-bottom: 0;
}

.cards-row .card {
  margin-bottom: 0;
}

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

.card-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: normal;
  margin: 0;
}

.card-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
}

.card-content {
  padding: 1.5rem;
}

/* Account */
.account-info {
  display: grid;
  gap: 1.5rem;
}

.account-info-group {
  display: grid;
  gap: 0.5rem;
}

.account-info-group label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.account-info-group div {
  font-size: 1rem;
}

/* Members */
.members-list {
  padding: 1rem 1.5rem;
}

.member-item {
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.member-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--datev-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.member-name {
  color: #fff;
  font-weight: 500;
}

.member-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

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

.badge-developer {
  background: rgba(99, 102, 241, 0.1);
  color: #818CF8;
}

.badge-member {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Invitations */
.invitations-list {
    padding: 1rem 1.5rem;
}

.invitation-item {
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invitation-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.invitation-email {
    font-weight: 500;
    color: white;
}

.invitation-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

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

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

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Description lists - Updated for dark theme */
.description-list {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .description-list {
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }
}

.description-term {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.description-detail {
  font-size: 0.875rem;
  color: white;
  margin-top: 0.25rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .description-detail {
    margin-top: 0;
  }
}

.row-alt {
  background-color: var(--light-gray);
}

.row {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.row:last-child {
  border-bottom: none;
}

.main-nav {
  display: flex;
  margin-left: 2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-right: 1.5rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-link:hover, .nav-link.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Adjust main content to account for fixed topbar */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: 56px;
  padding: 2rem;
  min-height: 100vh;
}

/* Project Dropdown */
.project-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.project-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.project-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.project-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--card-bg);
  border-radius: 4px;
  border: 1px solid rgba(77, 179, 179, 0.1);
  min-width: 200px;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  z-index: 100;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-dropdown-content.htmx-settling {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.project-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background-color 0.2s;
}

.project-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.project-dropdown-item.active {
  background: rgba(77, 179, 179, 0.1);
  color: var(--datev-accent);
}

/* chat */
/* Chat container styling */
.chat-container {
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

/* Chat messages container */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Webkit scrollbar styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Create Project Page Centering */
.create-project-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 56px - 4rem);
  padding: 1rem 2rem;
}

.create-project-card {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  margin-top: 1rem;
}

.create-project-card .form-group {
  margin-bottom: 1.5rem;
}

.create-project-card .form-group:last-child {
  margin-bottom: 0;
}

/* Bottombar */
.bottombar {
  position: fixed;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  height: 40px;
  background: transparent;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 40;
  padding: 0 1rem;
}

/* Bottombar for auth pages (no sidebar) */
.auth-content .bottombar {
  left: 0;
}

.bottombar-logo {
  height: 22px;
  width: auto;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.bottombar-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.471);
  font-weight: 100;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

/* Adjust main content to not overlap the bottombar */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: 10px;
  margin-bottom: 40px;
  padding: 1rem 2rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 40px);
}

/* User Menu */
.user-menu-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--datev-turquoise);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.user-avatar:hover {
  background: var(--datev-turquoise-hover);
}

.popup-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: calc(100% + 2rem);
  transform: translateX(-50%);
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  backdrop-filter: blur(10px);
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 200;
}

.popup-menu.show {
  display: block;
}

.popup-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.popup-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Add specific styling for button elements in popup menu */
.popup-menu-item[type="submit"] {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 100%;
  text-align: left;
}

.popup-menu-item[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.1);
}

.popup-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* Auth pages styling */
.auth-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  border: 1px solid rgba(77, 179, 179, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

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

.auth-header img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

/* Auth header row styling */
.auth-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.auth-header-row img {
  width: 48px;
  height: 48px;
  margin: 0;
}

.auth-header-row h1 {
  font-size: 1.5rem;
  margin: 0;
  color: white;
  white-space: nowrap;
}

/* Alternative Sign-In Section */
.alternative-signin {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.signin-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.6);
}

.signin-divider::before,
.signin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.signin-divider span {
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Azure AD Alternative Button (smaller, secondary) */
.btn-azure-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-azure-alt:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  color: white;
}

.microsoft-icon-small {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Account page enhancements */
.account-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.account-type-badge.azure {
  background: rgba(0, 164, 239, 0.1);
  color: #0078d4;
  border: 1px solid rgba(0, 120, 212, 0.2);
}

.account-type-badge.local {
  background: rgba(75, 85, 99, 0.1);
  color: #4b5563;
  border: 1px solid rgba(75, 85, 99, 0.2);
}

.microsoft-icon-small {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.role-developer {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.role-workstream {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.role-admin {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}


.azure-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.azure-detail {
  font-size: 0.875rem;
  color: #6b7280;
}

.azure-detail strong {
  color: #374151;
}

.azure-sync-info {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 164, 239, 0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 120, 212, 0.1);
}

.status-active {
  color: #059669;
  font-weight: 500;
}

/* Welcome page styles */
.welcome-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.welcome-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.welcome-header {
  background: linear-gradient(135deg, var(--primary-color), var(--datev-accent));
  color: white;
  padding: 2rem;
  text-align: center;
}

.welcome-icon {
  margin-bottom: 1rem;
}

.microsoft-icon-large {
  width: 48px;
  height: 48px;
}

.welcome-icon-placeholder {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.welcome-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.welcome-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.welcome-content {
  padding: 2rem;
}

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

.welcome-section h2 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.welcome-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.welcome-section li {
  margin-bottom: 0.5rem;
}

.role-description {
  background: rgba(79, 70, 229, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
}

.warning-message {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #d97706;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(79, 70, 229, 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.step-number {
  background: var(--primary-color);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.welcome-actions {
  padding: 2rem;
  background: rgba(79, 70, 229, 0.02);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-actions .btn-primary,
.welcome-actions .btn-secondary {
  min-width: 160px;
}

@media (max-width: 640px) {
  .welcome-container {
    margin: 1rem auto;
  }
  
  .welcome-header {
    padding: 1.5rem;
  }
  
  .welcome-content {
    padding: 1.5rem;
  }
  
  .welcome-actions {
    padding: 1.5rem;
    flex-direction: column;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Generic Table Styles - Can be used everywhere */
.table-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
}

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

.table th {
  background: rgba(77, 179, 179, 0.1);
  padding: 0.875rem;
  text-align: left;
  font-weight: 600;
  color: var(--datev-accent);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.875rem; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  
}

.table td {
  padding: 0.875rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.875rem;
  position: relative;
}

.table tbody {
  overflow: visible;
}

.table tr:hover {
  background: rgba(96, 177, 186, 0.04);
}

.table a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.table a:hover {
  color: var(--datev-accent);
}

.view-btn {
  background: rgba(77, 179, 179, 0.2);
  color: var(--datev-accent);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.75rem;
  transition: background-color 0.2s ease;
}

.view-btn:hover {
  background: rgba(50, 173, 123, 0.3);
}

@media (max-width: 768px) {
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Settings Display */
.settings-list {
  display: grid;
  gap: 1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.375rem;
  border: 1px solid rgba(77, 179, 179, 0.1);
}

.setting-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

.setting-value {
  color: white;
  font-size: 0.875rem;
}

.empty-setting {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.4);
}

.empty-state p {
  margin: 0;
}

.empty-state p:last-child {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Unified Badge Styling */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: white;
}

/* Project status badges */
.badge.project-status-draft {
  background-color: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.badge.project-status-preparation {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.badge.project-status-in_optimization {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.badge.project-status-released {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* Migration Status Badge Colors */
.status-planning {
  background: rgba(156, 163, 175, 0.8);
}

.status-approved {
  background: rgba(59, 130, 246, 0.8);
}

.status-in_optimization {
  background: rgba(6, 182, 212, 0.8);  /* Cyan */
}

.status-in_review {
  background: rgba(251, 191, 36, 0.8);
}

.status-released {
  background: rgba(34, 197, 94, 0.8);
}

.status-ignored {
  background: rgba(255, 0, 34, 0.8);
}

.status-rejected {
  background: rgba(255, 0, 34, 0.8);
}

/* Project Status Badge Base */
.badge[class*="project-status-"] {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  font-size: 0.875rem;
}

/* Project Status Colors */
.project-status-not_started,
.project-status-running {
  background: rgba(55, 65, 81, 1);
  border: 1px solid rgba(75, 85, 99, 0.5);
}

.project-status-finished {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: rgba(16, 185, 129, 1);
}

.project-status-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: rgba(239, 68, 68, 1);
}

/* Project Status Icons */
.project-status-not_started .project-status-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='12' y1='2' x2='12' y2='6'/%3e%3cline x1='12' y1='18' x2='12' y2='22'/%3e%3cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3e%3cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3e%3cline x1='2' y1='12' x2='6' y2='12'/%3e%3cline x1='18' y1='12' x2='22' y2='12'/%3e%3cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3e%3cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
}

.project-status-running .project-status-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='12' y1='2' x2='12' y2='6'/%3e%3cline x1='12' y1='18' x2='12' y2='22'/%3e%3cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3e%3cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3e%3cline x1='2' y1='12' x2='6' y2='12'/%3e%3cline x1='18' y1='12' x2='22' y2='12'/%3e%3cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3e%3cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  animation: spin 1.5s linear infinite;
}

.project-status-finished .project-status-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(16, 185, 129)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
}

.project-status-error .project-status-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(239, 68, 68)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cline x1='12' y1='8' x2='12' y2='12'/%3e%3cline x1='12' y1='16' x2='12.01' y2='16'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Batch Level Badge Colors */
.batch-level-partner {
  background: rgba(139, 92, 246, 0.8);
}

.batch-level-subpartner {
  background: rgba(236, 72, 153, 0.8);
}

.batch-level-client {
  background: rgba(16, 185, 129, 0.8);
}

/* Effort Badge Colors */
.effort-low {
  background: rgba(34, 197, 94, 0.8);
}

.effort-mid {
  background: rgba(251, 191, 36, 0.8);
}

.effort-high {
  background: rgba(239, 68, 68, 0.8);
}

/* Legacy Badge Colors (for backward compatibility) */
.badge-error {
  background: rgba(239, 68, 68, 0.8);
}

.badge-info {
  background: rgba(59, 130, 246, 0.8);
}

.badge-success {
  background: rgba(34, 197, 94, 0.8);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.8);
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cards-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Password Toggle Styles */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: #374151;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.delete-migration-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.8);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.delete-migration-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.05);
}

.delete-migration-btn:active {
  transform: scale(0.95);
}

.delete-migration-btn svg,
.delete-migration-btn .icon {
  width: 14px;
  height: 14px;
  margin: 0;
}

/* Table Actions Column */
.table th:last-child,
.table td:last-child {
  width: 60px;
  text-align: center;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

/* Badge List Container */
.badge-container {
  margin-top: 1rem;
}

.section-header {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Loading State */
.htmx-request {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.htmx-request .btn {
  pointer-events: none;
}

/* Upload Area Styles */
.upload-container {
  width: 100%;
}

.upload-area {
  border: 2px dashed rgba(77, 179, 179, 0.3);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.upload-area:hover {
  border-color: rgba(77, 179, 179, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.upload-area.drag-over {
  border-color: var(--datev-accent);
  background: rgba(77, 179, 179, 0.1);
  transform: scale(1.02);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.upload-content h4 {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  text-align: center;
}

.upload-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.25rem 0;
  font-size: 0.875rem;
  text-align: center;
}

/* Upload Button Styles */
.upload-btn {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.upload-btn svg {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

/* Spinner Animation */
.spinner {
  margin-right: 0.5rem;
}

.spinner svg {
  animation: spin 1s linear infinite;
  width: 16px;
  height: 16px;
}

/* Check Symbol */
.check {
  margin-right: 0.5rem;
}

.check svg {
  width: 16px;
  height: 16px;
  color: rgba(34, 197, 94, 0.9);
}

/* White checkmark for Planen button */
#planen-btn .check svg {
  color: white;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#upload-result {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#upload-result .success {
  color: rgba(34, 197, 94, 0.9);
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 0.375rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Generic error message styling */
.error {
  color: rgba(239, 68, 68, 0.9);
  padding: 0.75rem;
  padding-right: 3rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 0.375rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  position: relative;
  margin: 1rem 0;
}

.error-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(239, 68, 68, 0.9);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.error-close-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.error-close-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}


/* Generic success message styling */
.success {
color: rgba(34, 197, 94, 0.9);
padding: 0.75rem;
padding-right: 3rem;
background: rgba(34, 197, 94, 0.1);
border-radius: 0.375rem;
border: 1px solid rgba(34, 197, 94, 0.2);
position: relative;
margin: 1rem 0;
}

/* Generic info message styling */
.info {
color: rgba(59, 130, 246, 0.9);
padding: 0.75rem;
padding-right: 3rem;
background: rgba(59, 130, 246, 0.1);
border-radius: 0.375rem;
border: 1px solid rgba(59, 130, 246, 0.2);
position: relative;
margin: 1rem 0;
}

/* Generic warning message styling */
.warning {
color: rgba(251, 191, 36, 0.9);
padding: 0.75rem;
padding-right: 3rem;
background: rgba(251, 191, 36, 0.1);
border-radius: 0.375rem;
border: 1px solid rgba(251, 191, 36, 0.2);
position: relative;
margin: 1rem 0;
}
/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.search-container {
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    height: auto;
    line-height: 1.5;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: var(--datev-accent);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(77, 179, 179, 0.1);
}

/* Filter Container - matches search container alignment */
.filter-container {
    display: flex;
    align-items: center;
}

/* Filter Select - matches search input styling */
.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-width: 140px;
    cursor: pointer;
    height: auto;
    line-height: 1.5;
    box-sizing: border-box;
}

.filter-select:focus {
    outline: none;
    border-color: var(--datev-accent);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(77, 179, 179, 0.1);
}

.filter-select option {
    background-color: #1f2937;
    color: white;
    padding: 0.5rem;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
}

.sort-indicator {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;    
}

.sortable:hover .sort-indicator {
    color: rgba(255, 255, 255, 0.8);
}

.sort-indicator svg {
    transition: transform 0.2s ease;
    width: 12px;
    height: 12px;
}

/* Ensure the text in sort headers doesn't overlap with the indicator */
.sort-header span {
  flex: 1;
  padding-right: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: none;
    }
    
    .sort-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.error-text {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #ef4444;
}

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

.form-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 56px - 4rem);
  padding: 1rem 2rem;
}

.form-container .card {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: white;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--datev-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    
}

.form-group:has(input[required]) label::after,
.form-group:has(select[required]) label::after,
.form-group:has(textarea[required]) label::after {
    content: " *";
    color: #ef4444;
    margin-left: 2px;
}

/* Checkbox styling for forms */
.form-group ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-group input[type="checkbox"] {
  width: 12px;
  height: 12px;
  cursor: pointer;
  accent-color: var(--datev-accent);
  flex-shrink: 0;
  margin: 4px;
  padding: 4px;
}

.form-group ul li label {
  cursor: pointer;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  align-items: center;
}


/* Week input styling */
input[type="week"] {
    color: white !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem !important;
    width: 100% !important;
    font-size: 0.875rem !important;
    transition: border-color 0.2s ease !important;
}

input[type="week"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input[type="week"]:focus {
    outline: none !important;
    border-color: var(--datev-accent) !important;
    box-shadow: 0 0 0 2px rgba(77, 179, 179, 0.1) !important;
}

/* Selected weeks display */
.selected-weeks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.week-tag {
    display: inline-flex;
    align-items: center;
    background: var(--datev-accent);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.week-remove {
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.week-remove:hover {
    opacity: 1;
}

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

.page-header h1 {
    font-size: 2rem;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.945);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 1rem;
    margin: 0;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: white;
}

input[type="date"]::-webkit-datetime-edit {
  color: white;
}

input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field {
  color: white;
}

/* Planning Cockpit Styles */

.optimization-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.optimization-status-not-started {
    background-color: #f3f4f6;
    color: #374151;
}

.optimization-status-running {
    background-color: #dbeafe;
    color: #1e40af;
}

.optimization-status-finished {
    background-color: #d1fae5;
    color: #065f46;
}

.optimization-status-error {
    background-color: #fee2e2;
    color: #dc2626;
}

.optimization-status-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Icon System */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 0.5rem;
}

.icon-play {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m3 3 18 9-18 9V3z'/%3e%3c/svg%3e");
}

.icon-stop {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='4' y='4' width='16' height='16'/%3e%3c/svg%3e");
}

.icon-home {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3e%3cpolyline points='9 22 9 12 15 12 15 22'/%3e%3c/svg%3e");
}

.icon-user {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3e%3ccircle cx='12' cy='7' r='4'/%3e%3c/svg%3e");
}

.icon-users {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3e%3ccircle cx='9' cy='7' r='4'/%3e%3cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3e%3cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3e%3c/svg%3e");
}

.icon-logout {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3e%3cpolyline points='16 17 21 12 16 7'/%3e%3cline x1='21' y1='12' x2='9' y2='12'/%3e%3c/svg%3e");
}

.icon-layers {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3e%3cpath d='M2 17l10 5 10-5'/%3e%3cpath d='M2 12l10 5 10-5'/%3e%3c/svg%3e");
}

.icon-plus {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='12' y1='5' x2='12' y2='19'/%3e%3cline x1='5' y1='12' x2='19' y2='12'/%3e%3c/svg%3e");
}

.icon-back {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m12 19-7-7 7-7'/%3e%3cpath d='M19 12H5'/%3e%3c/svg%3e");
}

.icon-edit {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'/%3e%3c/svg%3e");
}

.icon-trash {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='3 6 5 6 21 6'/%3e%3cpath d='m19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3e%3c/svg%3e");
}

.icon-chevron-up {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m18 15-6-6-6 6'/%3e%3c/svg%3e");
}

.icon-chevron-down {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
}

.icon-eye {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3e%3ccircle cx='12' cy='12' r='3'/%3e%3c/svg%3e");
}

.icon-eye-off {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3e%3cline x1='1' y1='1' x2='23' y2='23'/%3e%3c/svg%3e");
}

.icon-x {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='18' y1='6' x2='6' y2='18'/%3e%3cline x1='6' y1='6' x2='18' y2='18'/%3e%3c/svg%3e");
}

.icon-edit-alt {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3e%3cpath d='m18.5 2.5 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3e%3c/svg%3e");
}

.icon-spinner {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='12' y1='2' x2='12' y2='6'/%3e%3cline x1='12' y1='18' x2='12' y2='22'/%3e%3cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3e%3cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3e%3cline x1='2' y1='12' x2='6' y2='12'/%3e%3cline x1='18' y1='12' x2='22' y2='12'/%3e%3cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3e%3cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3e%3c/svg%3e");
    animation: spin 1.5s linear infinite;
}

.icon-check {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='20,6 9,17 4,12'/%3e%3c/svg%3e");
}

.icon-upload {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3e%3cpolyline points='7,10 12,15 17,10'/%3e%3cline x1='12' y1='15' x2='12' y2='3'/%3e%3c/svg%3e");
}

.icon-clock {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpolyline points='12,6 12,12 16,14'/%3e%3c/svg%3e");
}

.icon-refresh {
  background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2'/%3e%3c/svg%3e");
}

.icon-database {
  background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cellipse cx='12' cy='5' rx='9' ry='3'/%3e%3cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3e%3cpath d='M3 12c0 1.66 4 3 9 3s9-1.34 9-3'/%3e%3c/svg%3e");
}


/* Status Dropdown Styles */
.status-dropdown-container {
    position: static;
    display: inline-block;
}

.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.status-clickable:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.status-dropdown-menu {
    position: fixed;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 200px;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.status-dropdown-menu.show {
    display: block;
}

.status-dropdown-item {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.status-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-dropdown-item.active {
    background: rgba(77, 179, 179, 0.2);
    border-left: 3px solid var(--datev-accent);
}

.status-dropdown-item .badge {
    margin: 0;
}

.tabs-container {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

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

.tab-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
}

.tab-button:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: var(--datev-accent);
    border-bottom-color: var(--datev-accent);
    background: rgba(77, 179, 179, 0.15);
}

.tab-content {
    display: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-success {
    background-color: #22c55e;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #16a34a;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: none;
}

.btn-warning:hover {
    background-color: #d97706;
}

/* Tom-Select Dropdown Styles */
.ts-wrapper .ts-control {
    background: rgba(20, 31, 35, 0.5) !important;
    border: 1px solid rgba(51, 200, 208, 0.1);
    border-radius: 0.375rem;
    color: white !important;
    font-size: 0.875rem;
    padding: 0.75rem;
    padding-right: 2.5rem;
    min-height: auto !important;
    height: auto !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.ts-wrapper.plugin-clear_button.single.has-items .ts-control {
    padding-right: 4.5rem;
}

.ts-wrapper .ts-dropdown {
    background: rgba(20, 31, 35, 0.95) !important;
    border: 1px solid rgba(51, 200, 208, 0.1);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
}

.ts-wrapper.single .ts-control::after {
    content: '' !important;
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    border: solid rgba(255, 255, 255, 0.6);
    border-width: 2px 2px 0 0;
    display: inline-block;
    padding: 4px;
    transform: translateY(-50%) rotate(135deg);
    pointer-events: none;
}

.ts-wrapper.focus .ts-control,
.ts-wrapper.focused .ts-control {
    border-color: #4db3b3 !important;
    box-shadow: none !important;
    background: rgba(20, 31, 35, 0.5) !important;
}

.ts-wrapper .ts-control .item {
    background: transparent !important;
    color: white !important;
}

.ts-wrapper .ts-dropdown .option {
    padding: 0.75rem;
    color: white;
    background: transparent;
}

.ts-wrapper .ts-dropdown .option.active {
    background: rgba(77, 179, 179, 0.2) !important;
    color: white !important;
}

.ts-wrapper .ts-dropdown .option:hover {
    background: rgba(77, 179, 179, 0.1) !important;
}

.ts-wrapper .ts-dropdown .no-results {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem;
}

.ts-wrapper input {
    color: white !important;
    background: transparent !important;
}

.ts-wrapper input:disabled {
    cursor: default !important;
    opacity: 0 !important;
    width: 0 !important;
    padding: 0 !important;
}

.ts-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ts-wrapper.single.input-active .ts-control {
    cursor: text;
}

.ts-wrapper.single:not(.input-active) .ts-control {
    cursor: pointer;
}

.ts-wrapper .clear-button {
    position: absolute !important;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.ts-wrapper .clear-button:hover {
    color: #ef4444;
}

.ts-wrapper {
    position: relative;
}

.ts-wrapper.plugin-clear_button {
    position: relative;
}

#blocked_weeks_start_picker,
#blocked_weeks_end_picker,
#start_week_year_picker,
#end_week_year_picker {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: white !important;
}

.flatpickr-calendar {
    background: rgba(20, 35, 30, 0.95) !important;
    border: 1px solid rgba(77, 179, 179, 0.3) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

.flatpickr-days {
    background: rgba(20, 35, 30, 0.95) !important;
}

.flatpickr-innerContainer {
    background: rgba(20, 35, 30, 0.95) !important;
}

.flatpickr-rContainer {
    background: rgba(20, 35, 30, 0.95) !important;
}

.flatpickr-months {
    background: rgba(77, 179, 179, 0.1) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper input {
    background: transparent !important;
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background-color: var(--card-bg) !important;
    color: white !important;
    border-radius: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option,
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background-color: rgba(20, 31, 35, 1) !important;
    color: white !important;
    padding: 0.5rem !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
    background-color: rgba(20, 35, 30, 1) !important;
    border-color: var(--datev-accent-hover) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(77, 179, 179, 0.2) !important;
}

.flatpickr-weekdays {
    background: rgba(77, 179, 179, 0.05) !important;
}

.flatpickr-weekday {
    color: white !important;
    font-weight: 600;
}

.flatpickr-day {
    color: white !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.5) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(255, 255, 255, 0.3) !important;
}

.flatpickr-day:hover {
    background: rgb(77, 179, 179);
    border-color: rgb(77, 179, 179);
    color: white;
}

.flatpickr-day.week-hover {
    background: rgb(77, 179, 179) !important;
    border-color: rgb(77, 179, 179) !important;
    color: white !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: rgb(77, 179, 179) !important;
    border-color: rgb(77, 179, 179) !important;
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-day.inRange {
    background: rgb(77, 179, 179) !important;
    border-color: rgb(77, 179, 179) !important;
    color: white !important;
    box-shadow: -5px 0 0 rgb(77, 179, 179), 5px 0 0 rgb(77, 179, 179) !important;
}

.flatpickr-day.today {
    border-color: rgb(77, 179, 179);
}

.flatpickr-weekwrapper .flatpickr-weeks {
    background: rgba(77, 179, 179, 0.1);
    border-right: 1px solid rgba(77, 179, 179, 0.3);
}

.flatpickr-weekwrapper .flatpickr-weeks .flatpickr-day {
    color: rgb(77, 179, 179);
    font-weight: 600;
    cursor: pointer;
}

.flatpickr-weekwrapper .flatpickr-weeks .flatpickr-day:hover {
    background: rgba(77, 179, 179, 0.2);
    color: white;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: rgb(77, 179, 179);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: white;
}
