/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.6;
}

/* Heading Styling */
.styled-heading {
    font-size: 3rem;
    font-weight: bold;
    color: #4b0082; /* Rich purple for the main heading text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
    margin: 50px auto 20px; /* Center the heading without a container */
}

.styled-heading i {
    color: #9932cc; /* Lighter purple for contrast */
    font-size: 3rem;
    transition: transform 0.3s ease-in-out;
}

.styled-heading:hover i {
    transform: rotate(-10deg);
}

.styled-heading span {
    color: #9932cc; /* Use lighter purple for branding consistency */
}

/* Keyframe for Fade In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .styled-heading {
        font-size: 1.2rem;
    }

    .styled-heading i {
        font-size: 1.2rem;
    }
}

/* Navbar Styling */
nav {
    background-color: #4b0082; /* Rich purple */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* General Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4b0082; /* Purple Kinko brand color */
    font-size: 1.5rem; /* Default size for desktop */
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.logo:hover {
    color: #9932cc; /* Slightly lighter purple on hover */
}

.logo .logo-img {
    width: 250px; /* Default size for desktop */
    height: 70px;
    margin-right: 8px; /* Space between icon and text */
    transition: transform 0.3s ease-in-out;
}

.logo:hover .logo-img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem; /* Slightly smaller text for mobile */
    }

    .logo .logo-img {
        width: 200px; /* Reduce icon size for smaller screens */
        height: 50px;
        margin-right: 6px; /* Adjust spacing for mobile */
    }
}



nav .menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
   
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a:hover {
    background-color: #6a0dad; /* Lighter purple for hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav .add-business {
    background-color: #8a2be2; /* Lighter purple to highlight Add Business */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav .add-business:hover {
    background-color: #6a0dad;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    nav .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        background-color: #4b0082;
        display: none;
        padding: 15px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: left;
    }

    nav ul li a {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Centered Search Container Styling */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 20px;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 700px;
    border-radius: 30px; /* Softer rounded corners */
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.search-form:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    border-radius: 0; /* Removed border-radius for a clean, seamless look */
}

.search-form input::placeholder {
    color: #999;
    font-style: italic;
}

.search-form input:focus {
    background-color: #f9f9f9; /* Lighter focus effect for better visibility */
}

.search-form button {
    background-color: #8a2be2; /* Purple button */
    color: #ffffff;
    border: none;
    padding: 15px 20px; /* Reduced padding for a more balanced look */
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Removed border-radius for a clean, unified look */
}

.search-form button i {
    margin-left: 5px;
    font-size: 1.2rem;
}

.search-form button:hover {
    background-color: #6a0dad;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-form button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness for Search Form */
@media (max-width: 768px) {
    .search-container {
        margin: 30px 15px;
    }

    .search-form {
        flex-direction: column;
        width: 100%;
        border-radius: 30px; /* Keep softer rounded corners for mobile */
    }

    .search-form input,
    .search-form button {
        width: 100%;
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 30px; /* Consistent rounding for mobile */
    }

    .search-form button {
        border-radius: 30px; /* Consistent rounding for mobile */
    }
}


/* Business Cards Styling */
.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px auto;
    padding: 0 10px;
}

.business-card {
    background-color: #ffffff;
    border: 2px solid #9932cc; /* Purple border for card */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.visiting-card-img-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #f0f0f0; /* Light gray background for when there's no image */
}

.visiting-card-img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures image covers the area without distortion */
    object-position: center; /* Centers the part of the image shown */
}

.business-details {
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f0fc; /* Light purple background for detail section */
}

.detail-item {
    display: flex;
    align-items: center;
    background-color: #f3e5f5; /* Lighter purple background for individual items */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    color: #9932cc; /* Purple icon color */
    margin-right: 10px;
    font-size: 1.2rem;
}

.detail-item span {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.business-card h3 {
    font-size: 1.6rem;
    color: #4b0082; /* Darker purple for heading */
    text-align: center;
    margin-top: 20px;
}

/* No Results Styling */
.no-results {
    text-align: center;
    margin: 30px auto;
    font-size: 1.2rem;
    color: #6b7280;
    padding: 15px;
}

.no-results i {
    color: #ff6f61;
    margin-right: 10px;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 25px 0;
    background-color: #4b0082; /* Purple footer */
    color: #ffffff;
    font-size: 0.95rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #6a0dad;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4b0082;
}
/* Admin Login Page Styling */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #4b0082;
}

.admin-login-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
}

.admin-login-form h2 {
    color: #4b0082;
    text-align: center;
    margin-bottom: 20px;
}

.admin-login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.admin-login-form button {
    width: 100%;
    padding: 10px;
    background-color: #9932cc;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.admin-login-form button:hover {
    background-color: #6a0dad;
}

.error-message {
    color: #ff4c4c;
    text-align: center;
    margin-top: 10px;
}

/* Admin Dashboard Styling */
.admin-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.admin-dashboard h2 {
    color: #4b0082;
    margin-bottom: 20px;
    text-align: center;
}

.admin-dashboard a {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #9932cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.admin-dashboard a:hover {
    background-color: #6a0dad;
}

/* Create Category Form Styling */
.create-category-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.create-category-form input {
    width: calc(100% - 100px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.create-category-form button {
    padding: 10px 20px;
    background-color: #4b0082;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.create-category-form button:hover {
    background-color: #6a0dad;
}

/* Listings Table Styling */
.listings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.listings-table th,
.listings-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.listings-table th {
    background-color: #9932cc;
    color: #ffffff;
}

.listings-table tr:hover {
    background-color: #f9f9f9;
}

.listings-table tr:last-child td {
    border-bottom: none;
}

/* General Button Styling for Admin Page */
.button {
    padding: 10px 20px;
    background-color: #9932cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.button:hover {
    background-color: #6a0dad;
}

.logout-link {
    float: right;
    color: #4b0082;
    text-decoration: none;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}