/* General Reset and Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* General Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 20px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Headings */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 70%;
    margin: 0 auto;
    margin-bottom: 30px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

form input,
form textarea,
form button {
    font-size: 16px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
}

form input:focus,
form textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
    outline: none;
}

form textarea {
    resize: none;
}

form button {
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    transition: all 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

form .submit-btn {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.star-filled {
    color: #FFD700; /* Yellow color */
    font-size: 20px;
    margin-right: 2px; /* Add spacing between stars */
}

.star-empty {
    color: #ccc; /* Gray color */
    font-size: 20px;
    margin-right: 2px;
}

/* Listings Container */
.listings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: space-between; /* Evenly distribute cards */
}

/* Each Listing Card */
.listing-card {
    flex: 0 1 calc(34% - 20px); /* Three cards per row, with spacing */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.listing-card h3 {
    margin-top: 0;
    color: #333;
}

.listing-card p {
    margin: 5px 0;
    line-height: 1.6;
}

.listing-card img,
.listing-card video {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}


/* Slider Container */
.slider-container {
    width: 100%;
    margin: 10px 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Slider Images and Videos */
.slider-container img,
.slider-container video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007BFF;
   
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 24px!important;
    background: white;
    padding: 12px;
    border-radius: 50%;
}
.swiper-pagination-bullet {
    background-color: #007BFF !important;
}
.swiper-pagination {
    margin-top: 20px; /* Adjust the margin as needed */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .listings-container {
        padding: 15px;
        display: inline;
    }

    .listing {
        padding: 15px;
    }
    .listing-card{
        margin-bottom: 30px;
    }
    form{
    width: 100%;
    }
}


/* edot delete */
.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.listings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

.listings-table thead {
    background-color: #007BFF;
    color: #fff;
}

.listings-table th,
.listings-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    vertical-align: middle; /* Ensure content aligns vertically in the middle */
    text-align: center; /* Center-align the buttons */
}


.listings-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.edit-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.edit-btn:hover {
    background-color: #218838;
}

.delete-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-left: 5px;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Fix table buttons alignment */


.listings-table td a {
    display: inline-block; /* Ensure buttons do not overlap */
    margin: 5px; /* Add spacing between buttons */
    padding: 8px 12px; /* Adjust button padding */
    border-radius: 5px; /* Rounded corners for buttons */
    text-decoration: none; /* Remove underline */
    font-size: 14px; /* Adjust font size */
    color: #fff; /* Text color */
}

/* Approve Button */
.approve-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: red;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
}

.approve-btn:hover {
    background-color: #45a049;
}

/* Approved Status */
.approved-status {
    color: green;
    font-weight: bold;
    margin-right: 5px;
}

.logout-btn {
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.logout-btn:hover {
    background-color: #e60000;
}

.top-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Add some space from the top */
}

.nav-btn {
    background-color: #007bff; /* Blue background */
    color: white;
    padding: 12px 20px;
    margin: 0 10px; /* Space between the buttons */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Larger font size */
    transition: background-color 0.3s ease; /* Smooth background color transition */
    text-align: center;
}

.nav-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.nav-btn:focus {
    outline: none; /* Remove outline on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.6); /* Blue focus effect */
}

.nav-btn.active {
    background-color: #28a745; /* Green background when active */
    color: white;
}
@media screen and (max-width: 768px) {
    
    .top-nav {
justify-content: center;
}
.nav-btn {
    padding: 9px 6px;
}
}

/* General styles */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.half-width {
    flex: 1;
}

/* Ensure labels and inputs stack vertically */
.half-width label {
    display: block;
    margin-bottom: 5px;
}

.half-width input,
.half-width textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}