/* General Styles */
:root {
  --primary-color: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary-color: #00cec9;
  --accent-color: #fd79a8;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --gray-color: #dfe6e9;
  --dark-gray: #636e72;
  --success-color: #00b894;
  --warning-color: #fdcb6e;
  --danger-color: #d63031;
  --info-color: #0984e3;
  --sidebar-width: 280px;
  --right-sidebar-width: 320px;
  --top-bar-height: 70px;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f9fa;
  color: var(--dark-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Dashboard Layout */
.dashboard-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--right-sidebar-width);
  grid-template-rows: var(--top-bar-height) 1fr;
  min-height: 100vh;
}

.sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  background-color: white;
  border-right: 1px solid var(--gray-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  z-index: 10;
}

.main-content {
  grid-column: 2;
  grid-row: 1 / -1;
  background-color: var(--light-color);
  padding: 1.5rem;
  overflow-y: auto;
}

.right-sidebar {
  grid-column: 3;
  grid-row: 1 / -1;
  background-color: white;
  border-left: 1px solid var(--gray-color);
  padding: 1.5rem;
  overflow-y: auto;
}

.top-bar {
  grid-column: 2 / 4;
  grid-row: 1;
  background-color: white;
  border-bottom: 1px solid var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 5;
}
/* Dashboard Specific Styles */
.dashboard-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dashboard-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-header h3 {
  font-size: 18px;
}

.stat-trend {
  font-size: 12px;
  margin-top: 3px;
  display: inline-block;
}

.stat-trend.positive {
  color: var(--accent-color);
}

.stat-trend.negative {
  color: var(--danger-color);
}

.stat-trend.neutral {
  color: var(--warning-color);
}

/* Project List */
.project-list {
  display: grid;
  gap: 15px;
}

.project-item {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.project-details {
  flex: 1;
}

.project-details h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.project-date {
  font-size: 12px;
  color: var(--medium-gray);
}

.project-date i {
  margin-right: 5px;
}

.project-client {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.client-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Timeline */
.timeline-container {
  padding: 10px 0;
}

.timeline-item {
  display: flex;
  gap: 15px;
  padding: 10px 0;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 35px;
  bottom: -5px;
  width: 2px;
  background-color: var(--light-gray);
}

.timeline-date {
  width: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-content h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--medium-gray);
  margin-bottom: 8px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
}

.timeline-status.in-progress {
  background-color: rgba(253, 203, 110, 0.2);
  color: var(--warning-color);
}

.timeline-status.pending {
  background-color: rgba(214, 48, 49, 0.2);
  color: var(--danger-color);
}

.timeline-team {
  display: flex;
}

.timeline-team img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
}

.timeline-team img:first-child {
  margin-left: 0;
}

/* Quick Actions */
.quick-actions-card .action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background-color: var(--light-color);
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.action-btn i {
  font-size: 20px;
  margin-bottom: 8px;
}

.action-btn span {
  font-size: 13px;
}

/* Activity Feed */
.activity-feed {
  display: grid;
  gap: 15px;
}

.activity-item {
  display: flex;
  gap: 12px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 14px;
  margin-bottom: 3px;
}

.activity-time {
  font-size: 12px;
  color: var(--medium-gray);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
}
/* Sidebar Styles */
.logo {
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.logo span {
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  color: var(--dark-gray);
  transition: all 0.2s ease;
}

.main-nav li a:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
}

.main-nav li.active a {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.main-nav i {
  width: 1.25rem;
  text-align: center;
}

.user-profile {
  margin-top: auto;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.user-profile:hover {
  background-color: rgba(108, 92, 231, 0.1);
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-info strong {
  display: block;
  font-size: 0.9rem;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.user-profile i {
  color: var(--dark-gray);
  font-size: 0.8rem;
}

/* Top Bar Styles */
.search-bar {
  position: relative;
  width: 300px;
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-gray);
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-color);
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.notifications {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notifications:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Section Styles */
.content-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  transition: all 0.2s ease;
}

.btn-action:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
}
/* ============================================================================================================ */
/* Projects Section */
.projects-table-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th {
  text-align: left;
  padding: 1rem;
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.projects-table td {
  padding: 1rem;
  border-top: 1px solid var(--gray-color);
}

.projects-table tr:hover {
  background-color: rgba(108, 92, 231, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.completed {
  background-color: rgba(0, 184, 148, 0.1);
  color: var(--success-color);
}

.status-badge.in-progress {
  background-color: rgba(253, 203, 110, 0.1);
  color: var(--warning-color);
}

.status-badge.pending {
  background-color: rgba(214, 48, 49, 0.1);
  color: var(--danger-color);
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.client-info p {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.client-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.section-controls {
  display: flex;
  gap: 1rem;
  margin-top: 10px;
  align-items: center;
}

.section-controls input,
.section-controls select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.status-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  color: white;
}

.status-tag.active {
  background-color: #28a745;
}

.status-tag.inactive {
  background-color: #dc3545;
}

.client-notes {
  margin-top: 10px;
  font-size: 0.85rem;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 6px;
}

/* ========================================================================================= */
/* Appointments Section */
.calendar-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calendar-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  transition: all 0.2s ease;
}

.btn-calendar-nav:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
/* Appointments Section Styles */
#appointments-section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  color: #2c3e50;
  font-size: 24px;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #3e8e41;
}

.view-toggle {
  display: flex;
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
}

.btn-view {
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.btn-view.active {
  background-color: #4CAF50;
  color: white;
}

/* Calendar Container */
.calendar-container {
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
  min-width: 150px;
  text-align: center;
}

.btn-calendar-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 4px;
}

.btn-calendar-nav:hover {
  background-color: #f5f5f5;
}

.btn-today {
  background-color: #f5f5f5;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}

.btn-today:hover {
  background-color: #e0e0e0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  color: #555;
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  min-height: 80px;
  padding: 5px;
  border-radius: 4px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.calendar-day:hover {
  background-color: #f0f0f0;
}

.calendar-day.today {
  background-color: #e3f2fd;
  font-weight: bold;
}

.calendar-day.other-month {
  color: #aaa;
  background-color: #f5f5f5;
}

.day-number {
  align-self: flex-end;
  padding: 2px 5px;
}

.appointment-badge {
  font-size: 10px;
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Appointments List */
.appointments-list-container {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.appointments-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.appointments-list-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.appointment-filter select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}

.appointment-card {
  display: flex;
  background-color: #fff;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.appointment-card:hover {
  transform: translateY(-2px);
}

.appointment-time {
  min-width: 80px;
  padding-right: 15px;
}

.appointment-time .time {
  display: block;
  font-weight: bold;
  color: #2c3e50;
}

.appointment-time .duration {
  display: block;
  font-size: 12px;
  color: #777;
}

.appointment-details {
  flex-grow: 1;
}

.appointment-details h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.client-name {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #555;
}

.appointment-notes {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.appointment-actions {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.btn-icon {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  padding: 5px;
}

.btn-icon:hover {
  color: #333;
}

.appointment-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 13px;
  color: #777;
}

.btn-load-more {
  background: none;
  border: none;
  color: #4CAF50;
  cursor: pointer;
  font-weight: bold;
}

/* Status Indicators */
.confirmed .appointment-time {
  border-left-color: #4CAF50 !important;
}

.pending .appointment-time {
  border-left-color: #FF9800 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .appointment-card {
    flex-direction: column;
  }
  
  .appointment-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    border-left: none !important;
  }
}

/* Analytics Section */
.analytics-period-selector select {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-color);
  font-family: inherit;
  background-color: white;
}

.analytics-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.chart-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
}
/* Analytics Section Styles */
#analytics-section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  color: #2c3e50;
  font-size: 24px;
  margin: 0;
}

.analytics-period-selector select {
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

/* Summary Cards */
.analytics-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 20px;
  color: white;
}

.revenue-icon { background-color: #4CAF50; }
.projects-icon { background-color: #2196F3; }
.clients-icon { background-color: #9C27B0; }
.satisfaction-icon { background-color: #FF9800; }

.card-content h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #555;
}

.card-content .value {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
}

.card-content .change {
  margin: 5px 0 0 0;
  font-size: 12px;
}

.positive { color: #4CAF50; }
.negative { color: #F44336; }
.neutral { color: #9E9E9E; }

/* Charts Container */
.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.chart-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #555;
}

.chart-container canvas {
  width: 100% !important;
  height: 250px !important;
}

.chart-legend, .chart-note, .chart-source {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}

.color-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 2px;
}

.color-box.primary { background-color: #3498db; }
.color-box.secondary { background-color: #bdc3c7; }

/* Actions */
.analytics-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-export {
  background-color: #f1f1f1;
  color: #555;
}

.btn-share {
  background-color: #e3f2fd;
  color: #1976d2;
}

.btn-schedule {
  background-color: #e8f5e9;
  color: #388e3c;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Footer */
.analytics-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.refresh-link {
  color: #3498db;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.refresh-link:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .analytics-actions {
    flex-wrap: wrap;
  }
  
  .btn {
    flex-grow: 1;
    justify-content: center;
  }
}
/* Settings Section */
.settings-tabs {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--gray-color);
}

.tab-btn {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-content {
  padding: 1.5rem;
  display: none;
}

.tab-content.active {
  display: block;
}
/* Settings Section Styles */
#settings-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.section-description {
  color: #666;
  margin-bottom: 2rem;
}

/* Tabs Navigation */
.tab-nav {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #333;
}

.tab-btn.active {
  color: #2563eb;
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2563eb;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 1rem 0;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.settings-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  margin-right: 0.75rem;
  width: 1.1em;
  height: 1.1em;
}

/* Button Styles */
.btn-save {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-save:hover {
  background-color: #1d4ed8;
}

.btn-action {
  background-color: #f3f4f6;
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-action:hover {
  background-color: #e5e7eb;
}

.btn-delete {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-delete:hover {
  background-color: #dc2626;
}

.btn-invite {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-invite:hover {
  background-color: #059669;
}

/* Danger Zone Styles */
.danger-zone {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.danger-zone h3 {
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.danger-zone p {
  color: #666;
  margin-bottom: 1rem;
}

/* Team Management Styles */
.team-management {
  display: flex;
  gap: 2rem;
}

.team-members {
  flex: 1;
}

.member-list {
  margin-top: 1rem;
}

.member-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

.member-info {
  flex: 1;
}

.member-name {
  display: block;
  font-weight: 500;
}

.member-role {
  font-size: 0.85rem;
  color: #666;
}

.invite-member {
  flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .team-management {
    flex-direction: column;
  }
  
  .tab-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
}

/* Right Sidebar */
.recent-activity h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-color);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.activity-content p {
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.activity-time {
  font-size: 0.7rem;
  color: var(--dark-gray);
  margin-top: 0.25rem;
}
/* Right Sidebar Styles */
.right-sidebar {
  width: 320px;
  background-color: #f8fafc;
  border-left: 1px solid #e2e8f0;
  padding: 1.5rem;
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem;
}

.sidebar-toggle:hover {
  color: #475569;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h4 {
  font-size: 0.95rem;
  color: #334155;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge {
  background-color: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* Notification Styles */
.notification-list {
  margin-bottom: 0.5rem;
}

.notification-item {
  display: flex;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #f1f5f9;
}

.notification-item.unread {
  background-color: #eff6ff;
}

.notification-icon {
  margin-right: 0.75rem;
  color: #64748b;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
}

.notification-content {
  flex: 1;
}

.notification-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
}

.notification-content small {
  color: #64748b;
  font-size: 0.75rem;
}

.view-all {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #3b82f6;
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

/* Timeline Styles */
.activity-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #3b82f6;
  border: 2px solid #bfdbfe;
}

.timeline-content {
  padding-left: 0.5rem;
}

.timeline-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
}

.timeline-content small {
  color: #64748b;
  font-size: 0.75rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

/* Event Styles */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  margin-right: 1rem;
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.event-date .day {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.event-date .month {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
}

.event-details h5 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: #1e293b;
}

.event-details p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .right-sidebar {
    transform: translateX(100%);
  }
  
  .right-sidebar.active {
    transform: translateX(0);
  }
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .dashboard-container {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
  
  .right-sidebar {
    display: none;
  }
  
  .top-bar {
    grid-column: 2;
  }
}

@media (max-width: 992px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  
  .sidebar {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--gray-color);
  }
  
  .logo {
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .main-nav ul {
    flex-direction: row;
    gap: 0;
  }
  
  .main-nav li a {
    padding: 1rem 0.75rem;
  }
  
  .main-nav li a span {
    display: none;
  }
  
  .user-profile {
    margin-top: 0;
    margin-left: auto;
    padding: 0.5rem;
  }
  
  .user-info {
    display: none;
  }
  
  .main-content {
    grid-column: 1;
    grid-row: 2;
    padding: 1rem;
  }
  
  .top-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .projects-table {
    display: block;
    overflow-x: auto;
  }
}

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--dark-gray); }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }


/* =================MEDIA QUERRY=============== */

/* Existing CSS preserved above */

/* Additional Responsive Media Queries */

/* Large Desktop - 1440px and up */
/* Responsive Adjustments for All Sections and Devices */
@media (max-width: 1440px) { /* Laptop */
  .dashboard-container {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
  
  .right-sidebar {
    display: none;
  }
  
  .top-bar {
    grid-column: 2;
  }
  
  /* Adjust chart sizes */
  .chart-container canvas {
    height: 200px !important;
  }
  
  /* Compact table layout */
  .projects-table th, 
  .projects-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 1024px) { /* Small Laptop */
  :root {
    --sidebar-width: 240px;
  }
  
  /* Two-column layout for dashboard cards */
  .dashboard-content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Stack calendar header elements */
  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  /* Adjust appointment card layout */
  .appointment-card {
    flex-direction: column;
  }
  
  .appointment-time {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 992px) { /* Tablet Landscape */
  .dashboard-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  
  .sidebar {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--gray-color);
  }
  
  .logo {
    margin-bottom: 0;
    margin-right: 1rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .main-nav ul {
    flex-direction: row;
    gap: 0;
  }
  
  .main-nav li a {
    padding: 1rem 0.75rem;
  }
  
  .main-nav li a span {
    display: none;
  }
  
  .user-profile {
    margin-top: 0;
    margin-left: auto;
    padding: 0.5rem;
  }
  
  .user-info {
    display: none;
  }
  
  .main-content {
    grid-column: 1;
    grid-row: 2;
    padding: 1rem;
  }
  
  .top-bar {
    display: none;
  }
  
  /* Single column for analytics cards */
  .analytics-summary-cards {
    grid-template-columns: 1fr;
  }
  
  /* Stack settings team management */
  .team-management {
    flex-direction: column;
  }
}

@media (max-width: 768px) { /* Tablet Portrait */
  /* Single column layout */
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
  
  /* Stack section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  /* Make tables scrollable */
  .projects-table {
    display: block;
    overflow-x: auto;
  }
  
  /* Adjust form layouts */
  .settings-form {
    padding: 0 1rem;
  }
  
  /* Stack quick action buttons */
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  /* Adjust calendar day cells */
  .calendar-day {
    min-height: 60px;
  }
}

@media (max-width: 576px) { /* Mobile */
  :root {
    --top-bar-height: 60px;
  }
  
  /* Compact sidebar */
  .sidebar {
    padding: 0.5rem;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .main-nav li a {
    padding: 0.75rem 0.5rem;
  }
  
  /* Adjust padding in main content */
  .main-content {
    padding: 0.75rem;
  }
  
  /* Stack all card elements */
  .client-card,
  .summary-card {
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  /* Single column for stats */
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  /* Adjust tab navigation */
  .tab-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Smaller form inputs */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.5rem;
  }
  
  /* Adjust appointment cards */
  .appointment-card {
    padding: 0.75rem;
  }
  
  .appointment-actions {
    margin-top: 1rem;
    justify-content: center;
  }
}

@media (max-width: 400px) { /* Small Mobile */
  /* Even more compact layout */
  .main-nav li a {
    padding: 0.75rem 0.25rem;
    font-size: 0.8rem;
  }
  
  /* Hide less important elements */
  .project-meta,
  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Adjust calendar */
  .calendar-weekdays,
  .calendar-grid {
    font-size: 0.8rem;
  }
  
  .calendar-day {
    min-height: 50px;
  }
  
  /* Adjust buttons */
  .btn-primary,
  .btn-save,
  .btn-delete {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .top-bar,
  .right-sidebar {
    display: none !important;
  }
  
  .main-content {
    grid-column: 1 / -1;
    padding: 0;
  }
  
  /* Ensure content is black and white for printing */
  body {
    color: #000;
    background: #fff;
  }
  
  /* Avoid page breaks inside important elements */
  .dashboard-card,
  .client-card,
  .project-item {
    page-break-inside: avoid;
  }
  
  /* Add page breaks between sections */
  .content-section {
    page-break-after: always;
  }
  
  /* Hide interactive elements */
  button,
  .btn,
  .tab-nav,
  .search-bar {
    display: none !important;
  }
}