.presszone-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
}
body.dark-mode .presszone-dashboard-wrapper {
  background: #0f1419;
}

.presszone-dashboard-sidebar {
  width: 280px;
  background: #f8f9fa;
  border-left: 1px solid #e5e7eb;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
body.dark-mode .presszone-dashboard-sidebar {
  background: #112022;
  border-left-color: #234348;
}
[dir=rtl] .presszone-dashboard-sidebar, .rtl .presszone-dashboard-sidebar {
  border-left: none;
  border-right: 1px solid #e5e7eb;
}
body.dark-mode [dir=rtl] .presszone-dashboard-sidebar, body.dark-mode .rtl .presszone-dashboard-sidebar {
  border-right-color: #234348;
}
@media (max-width: 991px) {
  .presszone-dashboard-sidebar {
    position: fixed;
    left: -280px;
    z-index: 1000;
    transition: left 0.3s ease;
  }
  .presszone-dashboard-sidebar.open {
    left: 0;
  }
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
}
body.dark-mode .sidebar-user {
  border-bottom-color: #234348;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}
body.dark-mode .sidebar-avatar {
  border-color: #234348;
}

.sidebar-user-name {
  font-weight: 600;
  color: #1a1a1a;
  display: block;
}
body.dark-mode .sidebar-user-name {
  color: #fff;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: #20d3ee;
  background: rgba(32, 211, 238, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.sidebar-date {
  text-align: center;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.sidebar-date span {
  display: block;
  font-size: 0.875rem;
  color: #1a1a1a;
}
body.dark-mode .sidebar-date span {
  color: #fff;
}
.sidebar-date small {
  font-size: 0.6875rem;
  color: #9ca3af;
}
body.dark-mode .sidebar-date small {
  color: #6b7280;
}
body.dark-mode .sidebar-date {
  background: #1a2c30;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.sidebar-nav-item:hover {
  background: #f1f5f9;
  color: #1a1a1a;
}
.sidebar-nav-item.active {
  background: #20d3ee;
  color: #112022;
  font-weight: 600;
}
.sidebar-nav-item i {
  font-size: 1.125rem;
}
body.dark-mode .sidebar-nav-item {
  color: #9ca3af;
}
body.dark-mode .sidebar-nav-item:hover {
  background: #1a2c30;
  color: #fff;
}
[dir=rtl] .sidebar-nav-item, .rtl .sidebar-nav-item {
  text-align: right;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
body.dark-mode .sidebar-footer {
  border-top-color: #234348;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
body.dark-mode .sidebar-logout {
  background: #1a2c30;
  border-color: #234348;
  color: #9ca3af;
}

.presszone-dashboard-main {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}
@media (max-width: 767px) {
  .presszone-dashboard-main {
    padding: 1rem;
  }
}
@media (max-width: 991px) {
  .presszone-dashboard-main {
    margin-right: 0;
  }
}

.presszone-dashboard-breadcrumb {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}
.presszone-dashboard-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
}
.presszone-dashboard-breadcrumb a:hover {
  color: #20d3ee;
}
.presszone-dashboard-breadcrumb .separator {
  margin: 0 0.5rem;
}
.presszone-dashboard-breadcrumb .current-section {
  color: #1a1a1a;
}
body.dark-mode .presszone-dashboard-breadcrumb .current-section {
  color: #fff;
}
body.dark-mode .presszone-dashboard-breadcrumb {
  color: #6b7280;
}
body.dark-mode .presszone-dashboard-breadcrumb a {
  color: #9ca3af;
}

.presszone-dashboard-section {
  display: none;
}
.presszone-dashboard-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 991px) {
  .section-header {
    flex-direction: column;
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}
body.dark-mode .section-title {
  color: #fff;
}
@media (max-width: 767px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.section-subtitle {
  color: #4b5563;
  margin: 0;
  max-width: 500px;
}
body.dark-mode .section-subtitle {
  color: #9ca3af;
}

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

.overview-stats,
.subscription-stats,
.invoice-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 767px) {
  .overview-stats,
.subscription-stats,
.invoice-stats {
    grid-template-columns: 1fr;
  }
}

.presszone-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
}
.presszone-stat-card.stat-primary {
  border-color: rgba(32, 211, 238, 0.3);
  background: linear-gradient(135deg, rgba(32, 211, 238, 0.1) 0%, #ffffff 100%);
}
body.dark-mode .presszone-stat-card.stat-primary {
  background: linear-gradient(135deg, rgba(32, 211, 238, 0.1) 0%, #1a2c30 100%);
}
body.dark-mode .presszone-stat-card {
  background: #1a2c30;
  border-color: #234348;
}

.presszone-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 211, 238, 0.1);
  border-radius: 0.5rem;
  color: #20d3ee;
  font-size: 1.25rem;
}
.presszone-stat-icon.warning {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.presszone-stat-content {
  flex: 1;
}

.presszone-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
body.dark-mode .presszone-stat-label {
  color: #6b7280;
}

.presszone-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}
body.dark-mode .presszone-stat-value {
  color: #fff;
}

.overview-activity,
.invoice-table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
body.dark-mode .overview-activity,
body.dark-mode .invoice-table-wrap {
  background: #1a2c30;
  border-color: #234348;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
body.dark-mode .activity-header {
  border-bottom-color: #234348;
}

.activity-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.dark-mode .activity-title {
  color: #fff;
}

.activity-view-all {
  font-size: 0.875rem;
  color: #20d3ee;
  text-decoration: none;
}
.activity-view-all:hover {
  text-decoration: underline;
}

.activity-table,
.invoice-table {
  width: 100%;
  border-collapse: collapse;
}
.activity-table th,
.invoice-table th {
  text-align: right;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8f9fa;
}
body.dark-mode .activity-table th,
body.dark-mode .invoice-table th {
  background: #152629;
  color: #6b7280;
}
[dir=rtl] .activity-table th, .rtl .activity-table th,
[dir=rtl] .invoice-table th,
.rtl .invoice-table th {
  text-align: right;
}
.activity-table td,
.invoice-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #4b5563;
}
body.dark-mode .activity-table td,
body.dark-mode .invoice-table td {
  border-bottom-color: #234348;
  color: #9ca3af;
}
.activity-table tbody tr:last-child td,
.invoice-table tbody tr:last-child td {
  border-bottom: none;
}

.activity-status,
.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.activity-status.status-completed, .activity-status.status-paid,
.invoice-status.status-completed,
.invoice-status.status-paid {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.activity-status.status-pending,
.invoice-status.status-pending {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.activity-status.status-cancelled,
.invoice-status.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.presszone-dashboard-footer {
  padding: 1rem 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.75rem;
  background: #f8f9fa;
}
body.dark-mode .presszone-dashboard-footer {
  background: #0f1419;
  color: #6b7280;
}
