:root {
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 93px;
  --sidebar-bg: #23272b;
  --sidebar-active: #007bff;
  --sidebar-red: #c0392b;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transition: width 0.2s;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-collapsed {
  width: var(--sidebar-collapsed-width) !important;
}

.sidebar-topbar {
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 10px 0 0;
}

.sidebar-header {
  font-weight: bold;
  font-size: 20px;
  padding: 0 0 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
    margin-left: 20px;

}

.sidebar-search {
  width: 75%;
  margin: 15px 7.5%;
  padding: 7px 10px;
  border-radius: 4px;
  border: none;
  background: #181b1f;
  color: #fff;
  font-size: 15px;
  display: block;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu li a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 16px;
  transition: background 0.2s;
  border-radius: 4px;
  gap: 15px;
}

.sidebar-menu li.active > a,
.sidebar-menu li a:hover {
  background: var(--sidebar-active);
  color: #fff;
}

.sidebar-menu .badge {
  background: #e74c3c;
  color: #fff;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
  margin-left: 5px;
}

.sidebar-section {
  margin: 18px 0 5px 20px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 1px;
}

.dropdown > a {
  cursor: pointer;
  justify-content: space-between;
}

.dropdown-arrow {
  margin-left: auto;
  font-size: 13px;
}

.dropdown-menu {
  display: none;
  background: #181b1f;
  margin: 0;
  padding: 0;
  list-style: none;
  position: static;
}

.dropdown.open > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 10px 40px;
  font-size: 15px;
  background: none;
}

.sidebar-collapsed .sidebar-header span,
.sidebar-collapsed .sidebar-menu li a span,
.sidebar-collapsed .sidebar-section {
  display: none;
}

.sidebar-collapsed .sidebar-search {
  width: 80%;
  margin: 15px 10%;
  padding: 7px 0;
  text-align: center;
}

.sidebar-collapsed .dropdown-menu li a {
  padding: 10px 20px;
}

.sidebar-collapsed .sidebar-logo {
  margin-right: 0;
}

.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-left: 0;
}

.sidebar-collapsed .sidebar-toggle {
  margin-right: 0;
}

/* Hamburger for main topbar (if you want to add it outside sidebar) */
.topbar {
  width: 100%;
  height: 56px;
  background: var(--sidebar-red);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
}

.topbar .topbar-user {
  color: #fff;
  margin-right: 30px;
  font-size: 16px;
}

/* Main content margin for sidebar */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 30px 40px 0 40px;
  transition: margin-left 0.2s;
}

.sidebar-collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* Font Awesome icon size fix */
.sidebar-menu i {
  min-width: 20px;
  text-align: center;
  font-size: 18px;
}
.main-content {
  margin-left: 270px;

  padding: 30px 40px 0 40px;
}
.dashboard-header h1 {
  margin: 0;
}
.dashboard-cards {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.card {
  width: 250px;
  height: 100px;
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card.prospects {
  background: #7b7b7b;
}
.card.tasks {
  background: #0a2342;
}
.card a {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
}
.collapsible-section {
  margin: 20px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px #0001;
}
.collapsible-section .section-header {
  background: #c0392b;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}
.collapsible-section.red .section-header {
  background: #c0392b;
}
.collapsible-section.dark .section-header {
  background: #23272b;
}
.collapsible-section .section-content {
  background: #fff;
  color: #333;
  padding: 20px;
}
.toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.task-filters {
  margin-bottom: 10px;
}
.filter-btn {
  background: #fff;
  border: 1px solid #c0392b;
  color: #c0392b;
  padding: 5px 12px;
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  background: #c0392b;
  color: #fff;
}
.add-task-btn {
  float: right;
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.table-controls {
  margin-bottom: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th {
  border: 1px solid #eee;
  padding: 8px;
  text-align: left;
}
td {
    
    padding: 97px;
    background: #e0e0e0;
    text-align: left;
}
th {
  background: #f8f8f8;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  min-width: 400px;
  max-width: 500px;
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  margin-bottom: 15px;
}
.close {
  font-size: 28px;
  cursor: pointer;
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.form-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
label {
  font-size: 14px;
  margin-bottom: 4px;
}
input[type="text"], input[type="date"], select, textarea {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 15px;
}
textarea {
  min-height: 40px;
  resize: vertical;
}
.save-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.dropdown-nested {
  position: relative;
}
.dropdown-nested input {
  cursor: pointer;
  background: #fff;
}
/* Sidebar Dropdowns - vertical, not floating */
.dropdown-menu {
  display: none;
  background: none;
  margin: 0;
  padding: 0;
  list-style: none;
  position: static;
  box-shadow: none;
}

.dropdown.open > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 10px 50px;
  font-size: 15px;
  background: none;
  color: #fff;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover,
.dropdown-menu li.active > a {
  background: #007bff;
  color: #fff;
}

.sidebar-collapsed .dropdown-menu {
  display: none !important;
}
.dropdown > a .dropdown-arrow {
  transition: transform 0.2s;
}
.dropdown.open > a .dropdown-arrow {
  transform: rotate(180deg);
}
.profile-page {
  margin-left: 270px;
  padding: 40px 0;
  min-height: 100vh;
}
.profile-container {
  background: #fff;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 40px 40px 30px 40px;
}
.profile-title {
  color: #c0392b;
  margin-bottom: 30px;
  font-size: 2.2rem;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profile-row {
  display: flex;
  gap: 20px;
  align-items: center;
}
.profile-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.profile-field label {
  font-size: 15px;
  margin-bottom: 4px;
  color: #444;
}
.profile-field input[type="text"],
.profile-field input[type="email"] {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #f8f9fa;
}
.profile-field input[readonly] {
  background: #e9ecef;
  color: #555;
}
.save-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 17px;
  margin-top: 10px;
}

.clients-page {
  margin-left: 270px;
  padding: 40px 0;
  min-height: 100vh;
}
.clients-container {
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 40px 40px 30px 40px;
}
.clients-title {
  color: #c0392b;
  margin-bottom: 20px;
  font-size: 2.2rem;
}
.add-client-btn {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.clients-table-wrapper {
  overflow-x: auto;
}
.clients-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 10px;
}
.clients-table th, .clients-table td {
  border: 1px solid #eee;
  padding: 14px 10px;
  text-align: left;
  font-size: 15px;
}
.clients-table th {
  background: #f8f8f8;
  font-weight: bold;
}
.clients-pagination {
  margin-top: 10px;
  font-size: 15px;
}
.clients-pagination button {
  margin: 0 2px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 3px;
  cursor: pointer;
}
.clients-pagination button[disabled] {
  color: #aaa;
  cursor: not-allowed;
}
.tickets-page {
  margin-left: 270px;
  padding: 40px 0;
  min-height: 100vh;
}
.tickets-container {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 40px 40px 30px 40px;
}
.tickets-title {
  color: #c0392b;
  margin-bottom: 20px;
  font-size: 2.2rem;
}
.tickets-filter-btn {
  background: #fff;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 4px 14px;
  border-radius: 4px;
  margin-right: 2px;
  cursor: pointer;
  font-size: 15px;
}
.tickets-filter-btn.active, .tickets-filter-btn:hover {
  background: #007bff;
  color: #fff;
}
.tickets-status-btn {
  background: #fff;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 4px 14px;
  border-radius: 4px;
  margin-right: 2px;
  cursor: pointer;
  font-size: 15px;
}
.tickets-status-btn.active, .tickets-status-btn:hover {
  background: #e74c3c;
  color: #fff;
}
.tickets-table-wrapper {
  overflow-x: auto;
}
.tickets-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 10px;
}
.tickets-table th{
  border: 1px solid #eee;


  padding: 8px 10px;
  text-align: left;
  font-size: 15px;
}
.tickets-table td{
  background-color: #f9f9f9;
  padding: 112px 10px;
  text-align: left;
  font-size: 15px;
}
.tickets-table th {
  background: #ffffff;

}
.tickets-pagination {
  margin-top: 10px;
  font-size: 15px;
}
.tickets-pagination button {
  margin: 0 2px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 3px;
  cursor: pointer;
}
.tickets-pagination button[disabled] {
  color: #aaa;
  cursor: not-allowed;
}

.red-row{
  padding: 19px;
  background-color:var(--sidebar-red);

}