:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #1e293b;
  --light-bg: #f9fafb;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --header-height: 64px;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition-speed: 0.3s;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Auth Pages */
.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.auth-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  display: none;
}

@media (min-width: 1024px) {
  .auth-image {
    display: block;
  }
}

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

.auth-logo svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.auth-heading {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.auth-subheading {
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-weight: 500;
  color: var(--text-dark);
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 100%;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  border: none;
}

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

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

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

.btn-outline:hover {
  background-color: var(--light-bg);
}

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

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

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

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Dashboard Layout - MODERNIZED */
.dashboard {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: white;
  color: var(--text-dark);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  transition: all var(--transition-speed) ease;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }
}

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.sidebar-logo span {
  font-weight: 600;
  font-size: 1.25rem;
  transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .sidebar-logo span {
  opacity: 0;
  width: 0;
  visibility: hidden;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.sidebar-toggle:hover {
  background-color: var(--light-bg);
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-speed) ease;
}

.sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

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

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .nav-section-title {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(59, 130, 246, 0.1);
  border-left-color: var(--primary-color);
}

.sidebar-link.active {
  color: var(--primary-color);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.sidebar-link span {
  white-space: nowrap;
  transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .sidebar-link {
  padding: 0.75rem 0;
  justify-content: center;
}

.sidebar.collapsed .sidebar-link span {
  opacity: 0;
  width: 0;
  visibility: hidden;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .sidebar-footer {
  opacity: 0;
  visibility: hidden;
  height: 0;
  padding: 0;
}

.main-content {
  flex: 1;
  margin-left: 0;
  transition: margin-left var(--transition-speed) ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: var(--sidebar-width);
  }

  .main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
  }
}

.topbar {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.menu-toggle:hover {
  background-color: var(--light-bg);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

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

.notifications-dropdown {
  position: relative;
}

.notifications-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.notifications-toggle:hover {
  background-color: var(--light-bg);
}

.notifications-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--danger-color);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.notifications-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: var(--card-shadow);
  width: 320px;
  z-index: 20;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0s linear 0.2s, transform 0.2s ease;
}

.notifications-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0s linear 0s, transform 0.2s ease;
}

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

.notifications-title {
  font-weight: 600;
}

.notifications-mark-read {
  font-size: 0.75rem;
  color: var(--primary-color);
  cursor: pointer;
}

.notifications-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

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

.notification-item:hover {
  background-color: var(--light-bg);
}

.notification-content {
  padding-right: 15px;
}

.notification-message {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.notification-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.notification-unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.notifications-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.notifications-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color var(--transition-speed) ease;
}

.user-dropdown-toggle:hover {
  background-color: var(--light-bg);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.user-info {
  display: none;
}

@media (min-width: 768px) {
  .user-info {
    display: block;
  }
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: var(--card-shadow);
  width: 240px;
  z-index: 20;
  display: none;
  overflow: hidden;
}

.user-dropdown-menu.active {
  display: block;
}

.user-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.user-dropdown-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-dropdown-email {
  font-size: 0.75rem;
  color: var(--text-light);
}

.user-dropdown-items {
  padding: 0.5rem 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.user-dropdown-item:hover {
  background-color: var(--light-bg);
}

.user-dropdown-item svg {
  width: 18px;
  height: 18px;
}

.user-dropdown-footer {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-color);
}

.page-content {
  padding: 1.5rem;
  flex: 1;
}

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

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow var(--transition-speed) ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

.card-title {
  font-weight: 600;
  font-size: 1rem;
}

.card-body {
  padding: 1.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

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

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

.stat-icon.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-title {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--text-light);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.stat-badge.up {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stat-badge.down {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

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

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.table th {
  background-color: var(--light-bg);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  border-bottom: 1px solid var(--border-color);
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

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

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

.badge-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Car cards */
.car-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.car-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.car-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.car-details {
  padding: 1.25rem;
}

.car-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.car-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.car-price {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.car-status {
  font-size: 0.875rem;
}

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

/* Tabs */
.tab-container {
  margin-bottom: 1.5rem;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab-item {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-speed) ease;
}

.tab-item:hover {
  color: var(--primary-color);
}

.tab-item.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Charts */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Financial Module */
.transaction-list {
  margin-bottom: 1.5rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed) ease;
}

.transaction-item:hover {
  background-color: var(--light-bg);
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

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

.transaction-icon.expense {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.transaction-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.transaction-amount {
  font-weight: 600;
  text-align: right;
}

.transaction-amount.income {
  color: var(--success-color);
}

.transaction-amount.expense {
  color: var(--danger-color);
}

.invoice-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.invoice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.invoice-number {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.invoice-date {
  font-size: 0.875rem;
  color: var(--text-light);
}

.invoice-status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.invoice-status.paid {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.invoice-status.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.invoice-status.overdue {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.invoice-customer {
  margin-bottom: 1.5rem;
}

.invoice-total {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Invoice Items */
.invoice-items {
  margin-bottom: 1.5rem;
}

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

/* Invoice & Quotation Print Styles */
.document-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  box-shadow: var(--card-shadow);
  border-radius: 0.5rem;
}

.document-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.document-company {
  margin-bottom: 1rem;
}

.document-company-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.document-company-info {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

.document-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.document-number {
  margin-bottom: 0.25rem;
}

.document-date {
  margin-bottom: 0.25rem;
}

.document-due {
  margin-bottom: 0.25rem;
}

.document-parties {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.document-from,
.document-to {
  width: 48%;
}

.document-from-title,
.document-to-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.document-from-name,
.document-to-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.document-from-details,
.document-to-details {
  font-size: 0.875rem;
  color: var(--text-dark);
}

.document-items {
  margin-bottom: 2rem;
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.document-table th {
  background-color: var(--light-bg);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

.document-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

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

.document-table .text-right {
  text-align: right;
}

.document-summary {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.document-totals {
  width: 300px;
}

.document-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.document-total-row:last-child {
  border-bottom: none;
  font-weight: 700;
}

.document-notes {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--light-bg);
  border-radius: 0.375rem;
}

.document-notes-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.document-notes-text {
  font-size: 0.875rem;
  color: var(--text-dark);
}

.document-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Settings */
.settings-section {
  margin-bottom: 2rem;
}

.settings-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-form {
  margin-bottom: 1.5rem;
}

.settings-form .form-group {
  margin-bottom: 1.5rem;
}

.settings-submit {
  display: flex;
  justify-content: flex-end;
}

.settings-box {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.settings-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Animation and Transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Utility classes */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

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

.mr-2 {
  margin-right: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.text-xs {
  font-size: 0.75rem;
}

.font-semibold {
  font-weight: 600;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.w-full {
  width: 100%;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

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

.text-gray {
  color: var(--text-light);
}

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

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

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

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

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

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

.bg-light {
  background-color: var(--light-bg);
}

.bg-white {
  background-color: white;
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-success {
  background-color: var(--success-color);
}

.bg-warning {
  background-color: var(--warning-color);
}

.bg-danger {
  background-color: var(--danger-color);
}

.rounded {
  border-radius: 0.375rem;
}

.shadow {
  box-shadow: var(--card-shadow);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor-pointer {
  cursor: pointer;
}

.transition {
  transition: all var(--transition-speed) ease;
}

/* Home page specific styles */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.min-h-screen {
  min-height: 100vh;
}

.border-b {
  border-bottom-width: 1px;
}

.border-gray-200 {
  border-color: var(--border-color);
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:w-1\/3 {
    width: 33.333333%;
  }

  .md\:w-2\/3 {
    width: 66.666667%;
  }

  .md\:flex-row {
    flex-direction: row;
  }
}

/* Fix for image overflow in rental details */
.card-body img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Enhanced Dashboard Styles */
.bg-primary {
  background-color: var(--primary-color);
}

.text-white {
  color: white;
}

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

.p-6 {
  padding: 1.5rem;
}

.hover\:bg-opacity-90:hover {
  opacity: 0.9;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition {
  transition: all 0.3s ease;
}

.bg-light-bg {
  background-color: var(--light-bg);
}

.hover\:bg-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.hover\:bg-success:hover {
  background-color: var(--success-color);
  color: white;
}

.hover\:bg-warning:hover {
  background-color: var(--warning-color);
  color: white;
}

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

.hover\:text-white:hover {
  color: white;
}

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

/* Responsive improvements */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .card-body {
    padding: 1rem;
  }

  .stat-card {
    margin-bottom: 1rem;
  }
}

/* Add this rule at the end of the file */
.nav-section .submenu-link {
  padding-left: 2.75rem; /* Adjust this value as needed for desired indentation */
  font-size: 0.8rem; /* Slightly smaller font for sub-items */
  color: var(--text-light); /* Lighter text for sub-items */
}

.nav-section .submenu-link.active {
  color: var(--primary-color); /* Keep active sub-item primary color */
  background-color: rgba(59, 130, 246, 0.05); /* Lighter active background */
}

.nav-section .submenu-link:hover {
  color: var(--primary-hover); /* Darker hover color */
  background-color: rgba(59, 130, 246, 0.1); /* Consistent hover background */
}

/* --- End Notification Styles Part 2 --- */

/* --- Notification Dropdown Styles (Part 3: Unread State) --- */

/* Styling for unread items */
.notification-item.unread {
  background-color: rgba(59, 130, 246, 0.05); /* Light primary background */
}

.notification-item.unread .notification-message {
    font-weight: 500; /* Make unread message slightly bolder */
}

.notification-item.unread:hover {
   background-color: rgba(59, 130, 246, 0.1); /* Slightly darker hover */
}

/* Unread indicator dot */
.notification-unread-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  right: 1rem; /* Position relative to the item */
  top: 50%;
  transform: translateY(-50%);
}

/* --- End Notification Styles Part 3 --- */

/* --- Notification Dropdown Styles (Part 4: Badge & Link) --- */

/* Ensure the badge hides correctly when empty (JS handles setting display to flex) */
.notifications-badge {
    display: none; /* Default state */
    /* Existing badge styles will apply when JS makes it display:flex */
}

/* Make mark-read link visually distinct */
.notifications-mark-read {
    cursor: pointer;
    transition: color 0.2s ease;
}
.notifications-mark-read:hover {
    color: var(--primary-hover);
}

/* --- End Notification Styles Part 4 --- */

.notifications-mark-read:hover {
  text-decoration: underline;
}

/* === Sub Navigation === */
.subnav {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  background-color: #f8f9fa; /* Light background */
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6; /* Light border */
  margin-bottom: 1.5rem;
  border-radius: 0.25rem; /* Slight rounding */
  gap: 0.5rem; /* Space between items */
}

.subnav-item {
  padding: 0.5rem 1rem;
  color: #495057; /* Default text color */
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.subnav-item:hover {
  background-color: #e9ecef; /* Light hover effect */
  color: #007bff; /* Primary color on hover */
}

.subnav-item.active {
  background-color: #007bff; /* Primary color for active item */
  color: #ffffff; /* White text for active item */
  font-weight: 600;
}

/* Responsive adjustments for smaller screens if needed */
@media (max-width: 768px) {
  .subnav {
    justify-content: center; /* Center items on smaller screens */
  }
  .subnav-item {
    flex-grow: 1; /* Allow items to take more space if wrapping */
    text-align: center;
  }
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000; /* Ensure it's on top */
  overflow-y: auto; /* Allow scrolling if content is too long */
}

.modal.active {
  display: flex; /* Show when active, use flex to center container */
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  z-index: 1001; /* Overlay sits behind modal container but above page content */
}

.modal-container {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 500px; /* Adjust max-width as needed */
  position: relative; /* For positioning modal-close button if needed */
  z-index: 1002; /* Modal container on top of overlay */
  margin: auto; /* Helps with centering if parent isn't flex */
}

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

.modal-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem; /* Offset padding to maintain alignment */
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--text-light);
}

.modal-close:hover svg {
  color: var(--text-dark);
}

.modal-body {
  /* Styles for the main content area of the modal */
}

/* Ensure form elements within modal are styled if needed */
.modal .form-group {
  /* Example: margin-bottom: 1rem; */
}

.modal .form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
