        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #2c3e50;
            /* Dark background */
            color: #ecf0f1;
            /* Light text */
            text-align: center;
        }

        .bid-list {
            margin-top: 20px
        }

        .bid-list table {
            margin: 0 auto;
            border-collapse: collapse;
            background-color: #504f4f;
            font-family: Arial, sans-serif;
        }

        .bid-list th,
        .bid-list td {
            border: 1px solid #000000;
            padding: 12px;
            text-align: left;
        }

        .bid-list th {
            background-color: #004080;
            color: rgb(255, 255, 255);
        }



        .bid-list tr:hover {
            background-color: #000000;
        }

        h3 {
            margin-bottom: 10px;
            color: #ffffff;
        }

        .item-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            /* Space between cards */
        }



        .item-card {
            background-color: #34495e;
            /* Darker card background */
            border-radius: 10px;
            padding: 15px;
            width: 200px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s ease-in-out;
            cursor: pointer;
            /* Indicate it's clickable */
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

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

        /* Modal background overlay */
        .item-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        /* Modal box */
        .item-modal {
            background-color: #34495e;
            color: inherit;
            padding: 20px;
            border-radius: 8px;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        .closed-listing {
            background-color: #e93a2673;
            /* Red background for closed listings */
        }

        .active-listing {
            background-color: #22975382;
            /* Green background for active listings */
        }

        /* Create Listing Form */
        .form-create-listing-container {
            background-color: #504f4f;
            /* match bid-list background */
            border-radius: 8px;
            padding: 40px;
            width: 100%;
            max-width: 400px;
            margin: 50px auto;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            font-family: Arial, sans-serif;
            color: white;
            /* white text for contrast */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-create-listing-container h3,
        .form-create-listing-container h2 {
            color: #fafafa;
            /* same as bid-list table header */
            text-align: center;
            margin-bottom: 20px;
        }

        input[type="text"],
        input[type="url"],
        input[type="number"],
        input[type="date"],
        input[type="time"],
        select {
            width: 100%;
            padding: 10px;
            border: 1px solid #000000;
            /* black borders to match table */
            border-radius: 4px;
            font-size: 16px;
            background-color: #34495e;
            /* dark input background for consistency */
            color: white;
            /* white text */
            margin-bottom: 15px;
            transition: border-color 0.3s ease;
        }

        input[type="text"]::placeholder,
        input[type="url"]::placeholder,
        input[type="number"]::placeholder,
        input[type="date"]::placeholder,
        input[type="time"]::placeholder {
            color: #ffffff;
            font-weight: 400;
        }

        input[type="text"]:focus,
        input[type="url"]:focus,
        input[type="number"]:focus,
        input[type="date"]:focus,
        input[type="time"]:focus,
        select:focus {
            outline: none;
            border-color: #004080;
            /* highlight color consistent with table header */
        }

        /* Select-specific styling */
        select {
            cursor: pointer;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 12px;
            padding-right: 30px;
        }

        select option {
            background-color: #34495e;
            color: white;
            padding: 10px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: white;
        }

        .datetime-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .datetime-group input {
            flex: 1;
            background-color: #34495e;
            color: white;
            border: 1px solid #000000;
            border-radius: 4px;
        }

        button {
            padding: 12px 20px;
            background-color: #004080;
            color: white;
            font-weight: 600;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s ease;
        }

        button:hover {
            background-color: #003366;
        }



        /* Buttons inside modal */
        button,
        button:hover,
        button:focus {
            background-color: #003366;
            /* Default blue color */
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px 15px;
            margin: 10px 10px;
            cursor: pointer;
            transition: background-color 0.3s ease-out;
        }

        button:hover,
        button:focus {
            background-color: #2c7bff;
            /* Darker blue on hover/focus */
        }

        /* Active button when clicked (optional) */
        button:active {
            background-color: #1a237e;
            /* Even darker blue on active state */
        }

        .sign-in-mode {
            cursor: pointer;
            font-style: italic;
            color: tomato;

        }

        /* Warning message for errors */
        .warning-message {
            color: red !important;
            font-weight: bold;
            margin-top: 10px;
        }

        /* Canceling an auction */
        .cancel-auction:hover {
            background-color: #c0392b;
        }

        /* Close Auction Button */
        .close-auction:hover {
            background-color: #27ae60;
        }


        /* Bid History Modal Styles */
        .bid-history-modal {
            max-width: 600px;
            width: 95%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .bid-history-content {
            margin: 20px 0;
        }

        .bid-history-table {
            overflow-x: auto;
        }

        .bid-history-table table {
            width: 100%;
            border-collapse: collapse;
            background-color: #504f4f;
            margin: 0;
        }

        .bid-history-table th,
        .bid-history-table td {
            border: 1px solid #000000;
            padding: 12px;
            text-align: left;
        }

        .bid-history-table th {
            background-color: #004080;
            color: rgb(255, 255, 255);
            font-weight: bold;
        }

        .bid-history-table tr:hover {
            background-color: #000000;
        }

        .highest-bid {
            background-color: #22975382 !important;
        }

        .highest-bid:hover {
            background-color: #227953 !important;
        }

        .winning-bid {
            color: #2ecc71;
            font-weight: bold;
        }

        .outbid {
            color: #e74c3c;
        }

        .modal-actions {
            margin-top: 20px;
            text-align: center;
        }

        .modal-actions button {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        .modal-actions button:hover {
            background-color: #0056b3;
        }

        /* User Bid History in Item Modal */
        .user-bid-history-section {
            margin: 15px 0;
            padding: 10px;
            background-color: #3a4a5a;
            border-radius: 5px;
        }

        .toggle-history-btn {
            background-color: #6c757d;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .toggle-history-btn:hover {
            background-color: #5a6268;
        }

        .user-bid-history h4 {
            margin: 10px 0;
            color: #ffffff;
            font-size: 16px;
        }

        .user-bid-history .bid-history-table {
            overflow-x: auto;
        }

        .user-bid-history .bid-history-table table {
            width: 100%;
            border-collapse: collapse;
            background-color: #504f4f;
            margin: 0;
            font-size: 14px;
        }

        .user-bid-history .bid-history-table th,
        .user-bid-history .bid-history-table td {
            border: 1px solid #000000;
            padding: 8px;
            text-align: left;
        }

        .user-bid-history .bid-history-table th {
            background-color: #004080;
            color: rgb(255, 255, 255);
            font-weight: bold;
        }

        .user-bid-history .bid-history-table tr:hover {
            background-color: #000000;
        }

        /* Search Bar Styles */
        .search-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 20px auto;
            max-width: 500px;
            padding: 15px;
            background-color: #34495e;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .search-bar input[type="text"] {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #2c3e50;
            border-radius: 5px;
            background-color: #2c3e50;
            color: white;
            font-size: 14px;
            margin-bottom: 0;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .search-bar input[type="text"]:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
        }

        .search-bar input[type="text"]::placeholder {
            color: #bdc3c7;
            font-style: italic;
        }

        .search-bar button {
            padding: 10px 20px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.1s ease;
            min-width: 80px;
        }

        .search-bar button:hover {
            background-color: #2980b9;
            transform: translateY(-1px);
        }

        .search-bar button:active {
            transform: translateY(0);
        }

        .search-bar button:first-of-type {
            background-color: #27ae60;
        }

        .search-bar button:first-of-type:hover {
            background-color: #229954;
        }

        .search-bar button:last-of-type {
            background-color: #e74c3c;
        }

        .search-bar button:last-of-type:hover {
            background-color: #c0392b;
        }