/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header */
header {
    color: black; /* Gradient background for header */
	background: white;
    text-align: center;
    padding: 20px 0px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 36px;
    margin: 0;
}
header p {
    font-size: 16px;
    margin-top: 10px;
    color: #dcdcdc;
}

/* Review Cards Container - Centered */
#reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Ensures cards take at least 300px width each */
    gap: 10px;
    margin-top: 30px;
    padding: 0 10%;
    justify-content: center;  /* Center cards horizontally */
    align-items: start;      /* Align items to the start to avoid overlapping */
    max-width: 1200px;       /* Ensure container does not exceed this width */
    margin-left: auto;       /* Center container horizontally */
    margin-right: auto;      /* Center container horizontally */
}

/* Individual Review Cards */
.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;  /* Ensures the card takes full width of its grid cell */
    max-width: 370px; /* Set max-width to avoid it becoming too wide */
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.review-card:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.review-card h3 {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-card .details {
    font-size: 14px;
    color: #666;
}

.review-card .tracking {
    margin-top: 10px;
    color: #007bff;
    font-weight: bold;
}

.review-card .rating {
    margin-top: 10px;
}

.review-card .rating p {
    font-size: 14px;
    color: #666;
}

.review-card .star-rating {
    color: #ff9800;
    margin-right: 5px;
}

.loading {
    text-align: center;
    font-size: 20px;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 28px;
    }

    .review-card {
        padding: 15px;
    }
}


/****************************tracking header and address ******************************/
.review-header {
    margin: 0;
}

.review-header h3 {
    margin: 0;
    padding: 0;
    display: inline;
}

.review-header .details {
    margin: 0;
    padding: 0;
}

.review-header .address {
    margin-bottom: 20px; /* Adds space between address and order date */
    padding: 0;
    display: block; /* Address is on the next line */
    font-size: 14px; /* Smaller font size for the address */
    color: #7f8c8d; /* Muted gray color for the address */
    line-height: 1.5; /* Increases line height for better readability */
}


.review-header p {
    margin: 0;
    padding: 0;
}


/****************************tracking header and address ******************************/



/****************************tracking details button **********************************/
.tracking-btn {
    background-color: #4ca1af;
    color: #fff;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
}

.tracking-details-container{
    margin-top: 10px;
}

.tracking-btn:hover {
    background-color: #2c3e50;
}

.tracking-toggle-btn {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
}

.tracking-toggle-btn:hover {
    background-color: #2980b9;
}

.tracking-details {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/****************************tracking details button **********************************/





/****************************  FEEDBACK RATING ITEM **********************************/
/* Rating Section */
.rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

/* Rating item */
.rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    padding: 8px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Hover effect */
.rating-item:hover {
    background-color: #e0f7fa;
}

/* Stars container styling */
.stars {
    display: inline-block;
    font-size: 20px; /* Set font size for the stars */
    color: #f39c12; /* Gold color for filled stars */
}

/* Strong text (for labels like Shipping, Packaging) */
.rating-item strong {
    font-size: 14px;
    color: #34495e;
    margin-right: 10px;
}

/* Optional: Add a slight spacing between stars for clarity */
.rating-item .stars svg {
    margin-right: 5px;
}


/****************************  FEEDBACK RATING ITEM **********************************/





/****************************   FEEDBACK IN TEXT   **********************************/
/* Styling for the feedback container */
.review-feedback {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    background-color: #f9f9f9; /* Light background for the feedback section */
    padding: 15px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    font-size: 16px;
    color: #333; /* Dark text color for readability */
}

/* Styling for the label (strong text) */
.review-feedback strong {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50; /* Slightly darker color for the label */
}

/* Styling for the feedback text */
.feedback-text {
    font-size: 10px; /* Smaller text size */
    font-style: italic;
    color: blue; /* Muted gray for a softer look */
    line-height: 1.3; /* Slightly tighter line height */
    word-wrap: break-word;
    word-break: break-word; /* Ensures text wraps correctly */
    font-family: "Arial", sans-serif; /* Clean, modern font */
}


/* Optional: add a slight hover effect to the whole section */
.review-feedback:hover {
    background-color: #ecf0f1;
    transform: translate
}
/****************************   FEEDBACK IN TEXT   **********************************/



/************************* POPUP WITH MORE DETAILS **********************************/
/* 🔲 General Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}



/* 📜 Modal Content Box */
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* 🔘 Modal Title */
.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* ✅ Status Styling */
.status-delivered {
    color: #27ae60;
    font-weight: bold;
}
.status-shipped {
    color: #2980b9;
    font-weight: bold;
}
.status-processing {
    color: #f39c12;
    font-weight: bold;
}
.status-cancelled {
    color: #e74c3c;
    font-weight: bold;
}
.status-default {
    color: #7f8c8d;
    font-weight: bold;
}

/* 🎯 Close Button - Now on Top-Right */
.modal-close-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: 0.3s;
}

.modal-close-btn:hover {
    color: #c0392b;
    transform: scale(1.1);
    background-color: #red;
}


/* 🔗 More Details Link */
.more-details {
    text-align: right;
}

.more-details-link {
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.more-details-link:hover {
    text-decoration: underline;
    color: #1a5276;
}

/* 🎞️ Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 📌 Popup Active */
.popup-active {
    display: flex !important;
}

@media (max-width: 480px) {


    .modal-content {
        max-width: 90%;
		margin-right: 45px;

    }
}

/************************* POPUP WITH MORE DETAILS **********************************/



/*************************   BLUR MOBILE NUMBER    **********************************/
.mobile-blur {
    display: inline-block;
    filter: blur(3px);
    user-select: none; /* Prevents copying the blurred number */
}

/*************************   BLUR MOBILE NUMBER    **********************************/




/*************************     PAGE NAVIGATION     **********************************/
/* Style the pagination container */
#pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

/* Style for each pagination button */
#pagination-container button {
    padding: 10px 20px; /* Ensure the padding is equal for both */
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    min-width: 100px; /* Ensure buttons have equal width */
    text-align: center;
	margin-bottom: 20px;
	width: 200px;
	
}

/* Disabled button styles */
#pagination-container button:disabled {
    background: #b0bec5; /* Light grey background */
    cursor: not-allowed;
}

/* Hover effect for active buttons */
#pagination-container button:hover:not(:disabled) {
    background: linear-gradient(236deg, #2c3e50, #4ca1af);
}

/* Mobile view adjustments for pagination */
@media (max-width: 768px) {
    #pagination-container button {
        width: 30%; /* Make buttons take full width */
    }
}

/*************************     PAGE NAVIGATION     **********************************/




/*************************       CUSTOM BUTTON     **********************************/
.custom-button {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-right: 10px; /* Adds horizontal gap */
}

.custom-button:hover {
    background: linear-gradient(236deg, #2c3e50, #4ca1af);
    transform: scale(1.05);
}

.custom-button:active {
    background: linear-gradient(236deg, #2c3e50, #4ca1af);
    transform: scale(0.98);
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .custom-button {
        width: 30%	; /* Button takes up full width on mobile */
        padding: 12px 15px; /* Adjust padding for mobile */
        font-size: 14px; /* Slightly smaller font size */
        margin-right: 0; /* Remove margin for full-width buttons */
    }
}

.custom-button:hover {
    background: linear-gradient(236deg, #2c3e50, #4ca1af);
    transform: scale(1.05);
}

.custom-button:active {
    background: linear-gradient(236deg, #2c3e50, #4ca1af);
    transform: scale(0.98);
}

/*************************       CUSTOM BUTTON     **********************************/
