html, body {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    box-sizing: border-box;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}




.profile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.bg-white {
    background-color: #ffffff;
}

.text-gray-900 {
    color: #0f0101;
}

.text-blue-500, .bg-blue-500 {
    color: #000000;
}

.text-green-500 {
    color: #2ecc71;
}

.text-yellow-500 {
    color: #f1c40f;
}

.text-red-500 {
    color: #e74c3c;
}

/* Custom Button Styles */
.btn-toggle {
    background-color: rgb(0 0 0 / 0%);
    color: #0f0f0f;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-confirm {
    background-color: #2ecc71;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-pickup {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-chat {
    background-color: #3498db;
    color: white;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
}

/* Adjust table styling to be more compact */
.table-responsive {
    max-width: 100%; 
    max-height: 300px; 
    overflow-y: auto; 
    overflow-x: auto; 
}

.table-responsive table thead th {
    font-size: 0.72rem;
    padding: 4px;
    background-color: #f1f1f1;
    font-weight: 600;
    text-transform: uppercase;
}

.table-responsive table tbody td {
    font-size: 0.72rem;
    padding: 4px;
    border-bottom: 1px solid #ddd;
}

.table-responsive tr:nth-child(even) {
    background-color: #f9f9f9;
}

@media screen and (max-width: 768px) {
    .table-responsive {
        max-height: 200px;
    }

    .container {
        padding: 10px;
        max-height: 80vh;
    }
}



/* About Section Styling */
#AboutModel {
    margin-top: 10px;
}

#AboutModelUpdateInputFleid textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-save {
    background-color: #2ecc71;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

#aboutSection p {
    margin-bottom: 1em; /* Adds space between paragraphs */
}
#aboutSection {
    font-size: 14px; /* Ensures the font size stays at 16px */
}












/* Chat Floating Button */
#chatButton {
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    padding: 15px;
    width: 60px;
    height: 60px;
}

#chatMessenger {
    background-color: #ffffff; /* solid white */
    z-index: 9999 !important;
    position: fixed;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-room-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.chat-header {
    background-color: #3498db;
    color: white;
}

.chat-body {
    height: 80%;
    overflow-y: scroll;
}



#smallChatWindow {
    background-color: #ffffff; /* solid white */
    z-index: 9999 !important;
    position: fixed;
    max-width: 340px;
    max-height: 320px;
    /* overflow-y: auto; */
}

.chat-messages {
    height: 55%;
    overflow-y: auto;
    
} 


















/* Profile Page - Items Section */

/* Profile Page - Items Section */

/* Container to hold items */
#userItemsSection {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    justify-items: center;
}

@media screen and (max-width: 1000px) {
    #userItemsSection {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #userItemsSection {
        grid-template-columns: repeat(2, 1fr);
    }
}




/* Item card styling */
.item-card {
    background-color: #f9f9f9;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
    width: 100%;
    max-width: 250px;
    height: auto;
    height: 400px;
    overflow: hidden;
}

/* Image inside item-card */
.item-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-card .image-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Scale effect on hover */
.item-card:hover {
    transform: scale(1.05); /* Scale effect on hover */
}



/* Limit the name width and handle overflow */
.item-card h3 {
    max-width: 100%; /* Ensure text doesn't exceed the container width */
    white-space: nowrap; /* Prevent text from wrapping to a new line */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    text-align: center; /* Center the text */
    margin-top: 10px; /* Add some spacing above the text */
    padding: 0 10px; /* Add padding to keep text within bounds */
}

/* Additional styling for other elements */
.item-location,
.item-price {
    text-align: center; /* Center align other elements */
    margin-top: 5px; /* Add some spacing */
}

/* Pagination Controls Styling */
#paginationControls {
    margin-top: 20px; /* Add some margin to separate pagination */
}

#paginationControls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.hidden {
    display: none !important;
}















/* About Section Styling */

/* About Section Styling */
#aboutSection {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Textarea Styling for the About Section Edit Mode */
#aboutTextarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}






.upload-button {
    display: flex;
    align-items: center;
    
    color: white;
    padding: 6px 12px; /* Small button padding */
    border-radius: 0.375rem; /* Rounded corners */
    cursor: pointer;
    font-size: 0.875rem; /* Smaller font size */
    border: none;
    transition: background-color 0.3s ease;
    margin-left: 8px; /* Space between checkmark and button */
}

.upload-button:hover {
    background-color: #2563EB; /* Darker blue on hover */
}

.upload-icon {
    width: 18px; /* Small icon size */
    height: 18px;
    margin-right: 8px; /* Space between icon and text */
}







.alert-container {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
}

.alert-message {
    list-style: none;
    margin: 0;
}





@media screen and (max-width: 480px) {

    .container {
        padding: 10px;
    }

    body {
        font-size: 14px;
    }
    
    h1, h2, h3 {
        font-size: 16px;
    }

    #userItemsSection {
        grid-template-columns: 1fr;
    }

    .item-card {
        max-width: 100%;
        padding: 8px;
    }

    .item-card img {
        height: 160px;
    }

    .item-card h3 {
        font-size: 14px;
    }
}
