
        :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);
        }

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

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

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

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

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

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

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

        .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;
        }

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

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

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

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

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

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

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

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

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

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

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



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

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

        .tab-header {
            display: flex;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }

        .tab-link {
            padding: 10px 20px;
            cursor: pointer;
            position: relative;
        }

        .tab-link.active {
            color: var(--medium-brown);
            font-weight: 500;
        }

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

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .item-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .item-card {
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .item-card:hover {
            transform: translateY(-5px);
        }

        .item-image {
            height: 180px;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .item-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }

        .item-details {
            padding: 15px;
        }

        .item-title {
            font-size: 16px;
            margin-bottom: 5px;
            color: var(--dark-brown);
        }

        .item-status {
            font-size: 14px;
            color: #666;
        }

        .status-available {
            color: #28a745;
        }

        .status-pending {
            color: #ffc107;
        }

        .status-sold {
            color: #dc3545;
        }

        .item-price {
            font-size: 16px;
            font-weight: 600;
            color: var(--medium-brown);
            margin: 5px 0;
        }

        .cart-buttons {
            display: flex;
            gap: 5px;
            margin-top: 10px;
        }

        .purchase-btn {
            background-color: #27ae60 !important;
            color: white !important;
            border: none;
            padding: 6px 18px;
            border-radius: 18px;
            cursor: pointer;
            font-size: 12px;
            transition: background-color 0.3s ease;
        }

        .purchase-btn:hover {
            background-color: #229954 !important;
        }

        .remove-cart-btn {
            background-color: #c0392b !important;
            color: white !important;
            border: none;
            padding: 6px 18px;
            border-radius: 18px;
            cursor: pointer;
            font-size: 12px;
            transition: background-color 0.3s ease;
        }

        .remove-cart-btn:hover {
            background-color: #a93226 !important;
        }

        .purchase-date {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }

        .status-completed {
            color: #27ae60;
        }

        .status-pending {
            color: #f39c12;
        }

        .status-cancelled {
            color: #e74c3c;
        }

        .cart-header {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 20px;
        }

        .purchase-all-btn {
            background-color: #27ae60 !important;
            color: white !important;
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: background-color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .purchase-all-btn:hover {
            background-color: #229954 !important;
        }

        .unread-badge {
            background-color: #e74c3c;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 10px;
            margin-left: 5px;
        }

        .messages-container {
            max-height: 500px;
            overflow-y: auto;
        }

        .message-item {
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .message-item:hover {
            background-color: #f8f9fa;
        }

        .message-item.unread {
            background-color: #e3f2fd;
            border-left: 4px solid #2196f3;
        }

        .message-item.read {
            background-color: white;
        }

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

        .message-sender {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sender-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: cover;
        }

        .sender-name {
            font-weight: 500;
            color: var(--medium-brown);
        }

        .message-date {
            font-size: 12px;
            color: #666;
        }

        .message-subject {
            font-weight: 600;
            color: var(--dark-brown);
            margin-bottom: 5px;
        }

        .message-content {
            color: #666;
            line-height: 1.5;
            margin-bottom: 5px;
        }

        .message-product {
            font-size: 12px;
            color: #27ae60;
            font-style: italic;
        }

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