:root {
    --dark-brown: #1A120B;
    --medium-brown: #3C2A21;
    --light-beige: #D5CEA3;
    --off-white: #E5E5CB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--off-white);
    color: var(--dark-brown);
}

.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--medium-brown);
    color: var(--off-white);
    padding: 20px 0;
    height: 100vh;
    position: fixed;
}

.admin-logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-beige);
    margin-bottom: 30px;
}

.admin-logo h2 {
    font-size: 24px;
    font-weight: 600;
}

.admin-logo span {
    color: var(--light-beige);
}

.admin-nav-menu {
    padding: 0 20px;
}

.admin-nav-item {
    margin-bottom: 15px;
    list-style: none;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--off-white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background-color: var(--light-beige);
    color: var(--dark-brown);
}

.admin-nav-link i {
    margin-right: 10px;
    font-size: 18px;
}

.admin-main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 28px;
    color: var(--medium-brown);
}

.admin-user-info {
    display: flex;
    align-items: center;
}

.admin-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.admin-section-title {
    font-size: 22px;
    color: var(--medium-brown);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-beige);
}

.admin-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.admin-tab {
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #666;
}

.admin-tab.active {
    color: var(--medium-brown);
}

.admin-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--light-beige);
}

.admin-content-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: var(--light-beige);
    color: var(--dark-brown);
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

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

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-action-btn.view {
    background-color: var(--light-beige);
    color: var(--dark-brown);
}

.admin-action-btn.edit {
    background-color: #4e73df;
    color: white;
}

.admin-action-btn.delete {
    background-color: #e74a3b;
    color: white;
}

.admin-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.admin-search-bar {
    display: flex;
    margin-bottom: 20px;
}

.admin-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.admin-search-btn {
    padding: 10px 15px;
    background-color: var(--medium-brown);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.admin-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-stat-card h3 {
    font-size: 16px;
    color: var(--medium-brown);
    margin-bottom: 10px;
}

.admin-stat-card p {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-brown);
}

.admin-stat-card.users {
    border-top: 4px solid #4e73df;
}

.admin-stat-card.listings {
    border-top: 4px solid #1cc88a;
}

.admin-stat-card.orders {
    border-top: 4px solid #f6c23e;
}

.admin-stat-card.revenue {
    border-top: 4px solid #e74a3b;
}

@media (max-width: 992px) {
    .admin-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-main-content {
        margin-left: 0;
    }
    
    .admin-stats-cards {
        grid-template-columns: 1fr;
    }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 8px;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
#edit-user-form label {
  display: block;
  margin: 10px 0 5px 0;
}
#edit-user-form input {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#edit-user-form button[type="submit"] {
  background-color: #4e73df;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
#edit-user-form button[type="submit"]:hover {
  background-color: #375ab7;
}
#confirm-delete-user {
  background-color: #e74a3b;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}
#cancel-delete-user {
  background-color: #ccc;
  color: #333;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}