/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
}

.sidebar {
  position: relative;
  width: 260px;
  color: #fff;
  padding: 20px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0px 35px 35px 0px;
  background-image: url('../images/pro7.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.sidebar * {
  position: relative;
  z-index: 1;
}

.sidebar h1 {
  font-size: 20px;
  text-align: center;
  font-weight: 400;
  margin-bottom: 20px;
}

.search-box {
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  border: none;
  margin-bottom: 20px;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.sidebar nav ul li:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px white solid;
  border-radius: 24px;
}

.sidebar ul li a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  display: block;
}

.sidebar ul li a:hover {
  color: white;
}

.dashboard-icon {
  color: white;
  margin-right: 10px;
  font-size: 20px;
  vertical-align: middle;
}

.main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #f4f6f9;
}

.topbar {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.topbar .left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-icon {
  font-size: 20px;
  cursor: pointer;
}

.search-container {
  position: relative;
  margin-left: 22px;

}

.search-container input {
  padding: 8px 30px 8px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

.search-container .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: gray;
  pointer-events: none;
}

.right-icons {
  display: flex;
  align-items: center;
  margin-right: 16px;
  gap: 18px;
}

.right-icons .icon {
  position: relative;
  font-size: 20px;
  cursor: pointer;
}

.right-icons .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #2979ff;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
}

.right-icons .dot {
  position: absolute;
  top: -4px;
  right: -4px;
  height: 8px;
  width: 8px;
  background: #e91e63;
  border-radius: 50%;
}

.profile {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 25px;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 8px 0;
  width: 179px;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 10px 16px;
}

.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  display: block;
  font-size: .7em;
  font-weight: 400;
  transition: background 0.3s;
}


@media(max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 576px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 80px;
    padding: 10px;
  }

  .sidebar h2,
  .search-box,
  .sidebar nav ul li a {
    display: none;
  }

  .sidebar nav ul li {
    text-align: center;
    padding: 10px 5px;
  }
}

.hide-sidebar {
  display: none;
}

@media (max-width: 768px) {
  .hide-sidebar {
    position: absolute;
    left: -100%;
  }
}

.sidebar.collapsed {
  width: 60px;
  padding: 20px 10px;
}

.sidebar.collapsed h2,
.sidebar.collapsed .search-box,
.sidebar.collapsed .link-text {
  display: none;
  visibility: hidden;
}

/* Cards--------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card.stat {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card.stat:hover {
  transform: translateY(-8px);
}

.icon-box {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: #fff;
  font-size: 20px;
}

.icon-box.blue {
  background: #4a90e2;
}

.icon-box.purple {
  background: #a569bd;
}

.icon-box.green {
  background: #28a745;
}

.icon-box.pink {
  background: #e91e63;
}

.info h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
  font-weight: 400;
}

.info .value {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-up {
  font-size: 12px;
  color: #28a745;
}

.stat-down {
  font-size: 12px;
  color: #e74c3c;
}

.stat-up i,
.stat-down i {
  margin-right: 5px;
}

.info span {
  color: #999;
  margin-left: 4px;
}


/*  */



.upgrade-banner {
  background: #eef5ff;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  background-image: url('https://www.transparenttextures.com/patterns/soft-wallpaper.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.upgrade-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upgrade-content .text h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #222;
}

.upgrade-content .text p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.upgrade-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.upgrade-link:hover {
  text-decoration: underline;
}

.upgrade-content .image img {
  width: 150px;
  height: auto;
}

.info-section {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.upgrade-banner {
  flex: 1;
  background: #eef5ff;
  border-radius: 10px;
  padding: 20px;
  background-image: url('https://www.transparenttextures.com/patterns/soft-wallpaper.png');
  /* optional */
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.upgrade-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upgrade-content .text h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #222;
}

.upgrade-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.upgrade-link:hover {
  text-decoration: underline;
}

.upgrade-content .image img {
  width: 100px;
  height: auto;
}


.weather-card {
  width: 260px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weather-card .location {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.weather-card .date {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.weather-card .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-card .temp {
  font-size: 32px;
  font-weight: 600;
  color: #444;
}

.weather-card .icon {
  font-size: 28px;
}


.recent-orders {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  overflow-x: auto;
}

.recent-orders .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-sort {
  display: flex;
  gap: 10px;
}

.search-sort input {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.sort-btn {
  background: #3b82f6;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  font-size: 14px;
  vertical-align: middle;
}

thead {
  background: #f9fafc;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
}

.bg-blue {
  background: #3b82f6;
}

.bg-purple {
  background: #a855f7;
}

.bg-green {
  background: #10b981;
}

.bg-red {
  background: #ef4444;
}

.product img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: white;
  display: inline-block;
}

.status.shipped {
  background: #3b82f6;
}

.status.pending {
  background: #a855f7;
}

.status.delivered {
  background: #10b981;
}

.status.cancelled {
  background: #ef4444;
}

.action-icons i {
  margin-right: 8px;
  font-size: 16px;
  cursor: pointer;
  color: #555;
}

.pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
}

.pagination a {
  margin: 0 5px;
  padding: 6px 10px;
  text-decoration: none;
  background: #f3f4f6;
  color: #333;
  border-radius: 5px;
  font-size: 14px;
}

.pagination a.active {
  background: #3b82f6;
  color: white;
}

.table-container {
  padding: 20px;
  max-width: 1100px;

  margin: auto;
}

h3 {
  margin-bottom: 20px;
  font-weight: 400;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

thead {
  background-image: url('https://www.transparenttextures.com/patterns/soft-wallpaper.png');

}

th,
td {
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: 600;
  color: black;
  font-weight: 400;
}

td img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.actions i {
  margin-right: 10px;
  cursor: pointer;
  color: #015ff4;
}

.pagination {
  display: flex;
  justify-content: end;
  gap: 8px;
  padding: 15px 0;
}

.pagination a {
  text-decoration: none;
  padding: 6px 12px;
  background: #ddd;
  border-radius: 4px;
  color: #333;
  font-weight: 500;
}

.pagination a.active {
  background: #015ff4;
  color: #fff;
}

@media(max-width: 768px) {

  th,
  td {
    font-size: 13px;
  }

  td img {
    width: 30px;
    height: 30px;
  }
}

#calendar {
  max-width: 1000px;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* add blog------------------------------------------------ */

.content {
  padding: 20px;
}

.page-header h1 {
  margin: 0;
}

.page-header small {
  color: #7f8c8d;
}

.main-content {
  padding: 20px;
  background-color: #f4f6f9;
  min-height: 100vh;
}

.main-content h2 {
  font-weight: 400;
  margin-top: -15px;
  color: #111;
  margin-bottom: 21px;
  font-size: 1.1em;
}

.form {
  background-color: white;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 400;
  display: block;
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group button {
  background-color: #015ff4;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.preview-image {
  display: none;
  margin-top: 10px;
  max-width: 200px;
  border-radius: 5px;
}


.form-group button {
  padding: 8px 16px;
  margin-right: 10px;
  border: none;
  border-radius: 4px;
  background-color: #015ff4;
  color: white;
  cursor: pointer;
}

/* password */



.main-contentt {
  padding: 20px;
}


.main-contentt h2 {
  font-size: 1.1em;
  font-weight: 400;
  color: #111;
}

.formt {
  max-width: 100%;
  margin-top: 49px;
  margin: 25px auto;
  background-color: #fff;
  padding: 12px;
  border-radius: 11px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-groupt {
  margin-bottom: 20px;
}

.form-groupt label {
  display: block;
  font-weight: 400;
  font-size: 1em;
  margin-bottom: 16px;
}

.form-groupt input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-groupt button {
  background-color: #007bff;
  color: #fff;
  padding: 6px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-groupt button:hover {
  background-color: #0056b3;
}

.delete-btn {
  background-color: #fff;
  color: white;
  border: 1px solid;
  background-color: #28a745;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.delete-btn:hover {
  background-color: #d9534f;
  color: #fff;
}

.edit-btn {
  background-color: #fff;
  color: white;
   border: 1px solid;
  text-decoration: none;
  border-radius: 6px;
  background-color: #a569bd;
  padding: 6px 12px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.edit-btn:hover {
  background-color: #d9534f;
  color: #fff;
}






.forget{
  font-size: 1em;
  font-weight: 400;
  color: #111;
  text-decoration: none;
}






ul {
    list-style-type: disc; 
    padding-left: 20px; 
}

li {
    margin-bottom: 10px; 
}












