body {
    font-family: system-ui;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.request-reduction-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.request-reduction-btn:hover {
    background-color: #45a049;
}

.center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: #21ba83;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.buttons button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons .owner {
    background-color: #1e96c8;
    color: white;
}

.buttons .login {
    background-color: #21ba83;
    color: white;
}

.buttons .login:hover {
    background-color: #1c9b6a;
}

.buttons .owner:hover {
    background-color: #187298;
}


/* Hero section */

.hero {
    padding: 50px 0;
    background-color: #f0f7f6;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.stoore-color {
    color: #21ba83;
}


.search-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-area .dropdowns {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 700px;
}

.search-area .dropdown {
    width: 100%;
}

.search-area select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: 50%;

}

.search-input {
    display: flex;
    margin-top: 20px;
    width: 100%;
}

.search-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;

}

.search-input button {
    background-color: #21ba83;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-input button:hover {
    background-color: #1c9b6a;
}

.search-description {
    text-align: center;
    margin-top: 20px;
    color: #9a9a9a;
}



/* cities section */

.cities {
    padding: 50px 0;
}

.cities h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.city-link {
    text-decoration: none;
}

.city-btn {
    width: 100%;
    background-color: #fff;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.city-btn:hover,
.city-btn.active {
    background-color: #21ba83;
    color: white;
    border-color: #21ba83;
    transform: translateY(-2px);
}

.city-btn small {
    display: block;
    font-size: 0.8em;
    color: inherit;
    opacity: 0.8;
}

.cities-description {
    text-align: center;
    color: #9a9a9a;
}

/* categories section */

.categories-section {
    padding: 50px 0;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 20px;
}


.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-btn {
    background-color: #fff;
    padding: 30px 10px;
    border: 1px solid #d0d5d4;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    position: relative;
}

.category-btn:hover {
    background-color: #f0f0f0;
}

.category-btn .category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 10px;
}


/* ads section */

.ads-area {
    background-color: #f0f7f6;
    padding: 50px 0;
     position: relative;
}
.ads-area .ads-box{
    background-color: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    font-weight: bold;
    color: #9a9a9a;
}

.ads-area.sticky-ads-area .ads-box {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 100;
    width: 70%;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
    background-color: white;
    left: 0;

}

/* login welcome message */

.welcome-message {
    text-align: center;
    padding: 20px;
    background-color: #21ba83;
    /* Green background */
    color: white;
    /* White text */
    border-radius: 10px;
    font-size: 2em;
    margin: 20px;
    display: inline-block;
}

/* footer section */

footer {
    padding: 20px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer .footer-links {
    display: flex;
    gap: 10px;
}

footer a {
    text-decoration: none;
    color: #9a9a9a;
}

footer .copyrights {
    color: #9a9a9a;
}


.bottom-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
    width: 100%;
}
.bottom-content footer{
    width: 60%;
}
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .search-area .dropdowns {
        flex-direction: column;
    }
}

/* login member style */


.auth-container{
    width: 100%;
    max-width: 900px;
    background-color: white;
    display: flex;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.auth-left .welcome-title{
     font-size: 2.5em;
    margin-bottom: 10px;
}

.auth-left .welcome-text{
     margin-bottom: 20px;
      font-size: 1.1em;
      color: white;
}

.auth-right{
    padding: 30px;
    width: 60%;
}

.auth-right .create-account-section {
    width: 100%;
        max-width: 400px;
    text-align: center;
}

.auth-right .create-title{
     font-size: 1.8em;
      margin-bottom: 20px;
        color: #21ba83;
}

.auth-right .social-buttons{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-right .social-btn{
  display: inline-flex;
     align-items: center;
    justify-content: center;
        background-color: #f0f0f0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
         text-decoration: none;
         font-size: 1.5em;
        color: #9a9a9a;
}

.auth-right .social-btn.facebook{
    color: #3b5998;
}

.auth-right .social-btn.google{
   color: #db4437;
}
.auth-right .social-btn.linkedin{
    color: #0077b5;
}


.auth-right .or-text{
     margin-bottom: 20px;
    color: #9a9a9a;
}

.auth-right .form-group{
  margin-bottom: 15px;
        text-align: left;
}

.auth-right label{
    display: block;
    margin-bottom: 5px;
    color: #9a9a9a;
}

.auth-right input, .auth-right select{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.auth-right select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
     background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
        background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
  background-position-y: 50%;
}

.auth-right .login-btn{
    background-color: #21ba83;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
        transition: background-color 0.3s;
    width: 100%;
     font-size: 1em;
     margin-top: 15px;

}
.auth-right .login-btn:hover{
        background-color: #1c9b6a;
}

.auth-right .account-text{
    margin-top: 15px;
    color: #9a9a9a;
}

.auth-right .account-text a{
    color: #21ba83;
}
.logout-btn-owner {
color: red;
}
.login-btn{
    background-color: #21ba83;
    color: white;
}
.logout-btn {
    color: white;
}

/* Add responsive breakpoints */
@media (max-width: 1200px) {
    .cities-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .cities-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .cities-container {
        .cities-container {
          grid-template-columns: repeat(2, 1fr);
        }
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    /* Sidebar */
    .sidebar {
        width: 60px;
        transition: all 0.3s ease;
    }

    .sidebar .logo {
        font-size: 18px;
        text-align: center;
        padding: 10px 5px;
    }

    .sidebar ul li {
        padding: 10px;
        text-align: center;
    }

    .sidebar ul li span {
        display: none;
    }

    /* Main content */
    .main-content {
        margin-left: 60px;
        padding: 10px;
    }

    /* Table responsive */
    .members-container {
        overflow-x: auto;
    }

    .members-table {
        min-width: 600px; /* Ensures table doesn't get too squeezed */
    }

    .members-table th,
    .members-table td {
        font-size: 13px;
    }

    /* Header section */
    .header-section {
        padding: 10px;
        margin-bottom: 15px;
    }

    .header-section .logo {
        display: none;
    }
    .container .header-buttons {
        display: flex;
        gap: 15px;
    }
    /* Content section title */
    .content-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Action buttons */
    .action-buttons button {
        width: 28px;
        height: 28px;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    /* Make sidebar collapsible */
    .sidebar.collapsed {
        transform: translateX(-60px);
    }

    .main-content {
        margin-left: 0;
    }

    /* Adjust header */
    .header-section {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Make sure burger menu is visible */
    .burger-menu {
        display: block;
        font-size: 20px;
        cursor: pointer;
    }
}

/* Sidebar adjustments */
.sidebar {
    width: 200px;
    background-color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar .logo {
    color: #21ba83;
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 12px 25px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

/* Table adjustments */
.content-section {
    padding: 20px;
    height: auto;
    overflow: visible;
}

/* Table container */
.members-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Table styles */
.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table th,
.members-table td {
    text-align: left;
    border-bottom: 1px solid #eee;
}

.members-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.members-table tr:hover {
    background-color: #f5f5f5;
}

/* Main content area */


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 70px;
        padding: 10px;
    }

    .content-section {
        padding: 10px;
    }

    .members-table th,
    .members-table td {
        font-size: 13px;
    }
}

/* Table header */
.members-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #eee;
}

/* Table row hover */
.members-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Content area */
.main-content {
    margin: 0 auto;
    padding: 20px;
    
    min-height: 100vh;
}

/* Header title */
.content-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
}

/* Submenu styles */
.has-submenu {
    position: relative;
}

.menu-title {
    display: block;
    padding: 10px 15px;
    cursor: pointer;
}

.submenu {
    display: none;
    padding-left: 20px;
}

.has-submenu.active .submenu {
    display: block;
}

.submenu li {
    padding: 8px 15px;
    cursor: pointer;
}

.submenu li.active {
    color: #21ba83;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Input styles */
.matricule-input,
.password-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.matricule-input {
    background-color: #f8f9fa;
}

/* Action button styles */
.action-buttons {
    gap: 5px;
    justify-content: center;
}

.action-buttons button {
    width: 58px;
    border: none;
    border-radius: 4px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.create-store {
    background-color: #28a745;
    color: white;
}

.pause-store {
    background-color: #ffc107;
    color: white;
}

.delete-store {
    background-color: #dc3545;
    color: white;
}

.create-store:hover { background-color: #218838; }
.pause-store:hover { background-color: #e0a800; }
.delete-store:hover { background-color: #c82333; }

/* Store row hover effect */
.store-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.store-row:hover {
    background-color: #f5f5f5;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

/* Info card styles */
.store-info-card {
    padding: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.info-item span {
    color: #333;
    padding: 5px 0;
}

/* Password container */
.password-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Button styles */
.btn-generate, .btn-save {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate {
    background-color: #28a745;
    color: white;
}

.btn-save {
    background-color: #21ba83;
    color: white;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
}

.btn-generate:hover {
    background-color: #218838;
}

.btn-save:hover {
    background-color: #1a9c6e;
}

#currentMap {
    margin-top: 10px;
    border-radius: 4px;
}

/* Add to your existing styles */
.sidebar li {
    cursor: pointer;
}

.sidebar li:hover:not(.has-submenu) {
    color: #21ba83;
}

.sidebar li.active {
    color: #21ba83;
}

.store-row {
    cursor: pointer;
}

.store-row:hover {
    background-color: #f5f5f5;
}

/* Make sure modal styles are included */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    position: relative;
}

/* Member section styles */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
}

.status-badge.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.inactive {
    background-color: #ffebee;
    color: #c62828;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table th,
.members-table td {
    text-align: left;
    border-bottom: 1px solid #eee;
}

.members-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.members-table tr:hover {
    background-color: #f5f5f5;
}

.toggle-status {
    background-color: #ffc107;
    color: white;
}

.delete-member {
    background-color: #dc3545;
    color: white;
}

.toggle-status:hover { background-color: #e0a800; }
.delete-member:hover { background-color: #c82333; }

.logo-link {
    text-decoration: none;
}

.welcome-text {
    color: black;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    background: rgba(33, 182, 231, 0.1);
}
.request-btn {
    background: #21B6E7;
    color: white;
}

.header-buttons {
    display: flex;
    gap: 15px;
}


.store-visits {
    color: #666;
    font-size: 0.9em;
    margin-left: 15px;
}

.store-details {
    
    align-items: center;
    gap: 15px;
    color: #666;
}

.store-details span {
    padding-right: 15px;
    border-right: 1px solid #ddd;
}

.store-details span:last-child {
    border-right: none;
}

.registration-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.registration-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: #21ba83;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #1a9e6e;
}

.nav-links {
    
    text-decoration: none;
    color: #333;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #21ba83;
}

/* Product page styles */
.product-details {
    padding: 20px;
}

.product-price {
    margin: 20px 0;
}

.price {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.button-group button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.close-modal {
    color: white;
}

/* Mobile-specific styles */
@media screen and (max-width: 480px) {
    /* Adjust text sizes and spacing */
    body {
        font-size: 13px;
    }

    /* Header adjustments */
    .logo {
        font-size: 20px;
    }

    .buttons button {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    /* Hero section */
    .hero {
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    /* Search area */
    .search-area {
        padding: 12px;
        margin: 0 10px;
    }

    .search-area .dropdowns {
        gap: 8px;
    }

    .search-area select,
    .search-input input {
        padding: 8px;
        font-size: 13px;
        height: 36px;
    }

    .search-input {
        margin-top: 8px;
    }

    .search-input button {
        padding: 8px 12px;
        font-size: 13px;
        height: 36px;
    }

    /* Cities section */
    .cities h2,
    .categories-section h2 {
        font-size: 1.3em;
        margin: 15px 0;
    }

    .cities-container {
        gap: 8px;
        padding: 0 10px;
    }

    .city-btn {
        padding: 8px;
        min-height: 60px;
    }

    .city-btn small {
        font-size: 0.75em;
        margin-top: 4px;
    }

    /* Categories */
    .categories-container {
        gap: 8px;
        padding: 0 10px;
    }

    .category-btn {
        padding: 10px;
        min-height: 50px;
    }

    .category-btn .category-icon {
        font-size: 1.2em;
        margin-bottom: 4px;
    }

    /* Container spacing */
    .container {
        padding: 0 10px;
    }

    /* Welcome message */
    .welcome-message {
        font-size: 0.85em;
        padding: 8px;
        margin: 10px;
    }

    /* Footer */
    footer {
        font-size: 0.85em;
        padding: 12px 0;
    }

    footer .container {
        padding: 0 10px;
    }

    footer .footer-links {
        gap: 10px;
    }

    /* Modal adjustments */
    .modal-content {
        padding: 12px;
        margin: 5% auto;
        width: 90%;
    }

    /* Radio buttons for search type */
    input[type="radio"] {
        transform: scale(0.9);
    }

    /* Search description */
    .search-description {
        font-size: 0.85em;
        margin-top: 12px;
    }
}

@media screen and (max-width: 768px) {
    .product-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }
    
    .product-slide img {
        margin: 0 auto;
    }
    
    .product-slide .empty-showcase {
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .product-slide {
        padding: 10px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .product-slide .empty-showcase {
        transform: scale(0.9); /* Slightly reduce size on very small screens */
    }
}

/* Footer styling */
.footer {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.ads-space {
    width: 50%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: #f5f5f5;
    border-radius: 10px;
}

.ad-space {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.no-ads {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    color: #888;
    border-radius: 8px;
    font-size: 14px;
}

.footer-element {
    flex: 1;
    min-width: 200px;
    padding: 0 20px;
}

.footer-element p {
    margin-bottom: 10px;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    
    .ads-space {
        width: 100%; /* Full width only on mobile */
        margin: 20px 0 0;
        position: relative;
        max-width: none;
    }
    
    .footer-element {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }
    
    /* Fixed ad space on mobile */
    .fixed-ad {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #f0f7f6;
        padding: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .fixed-ad .ad-space,
    .fixed-ad .no-ads {
        max-height: 120px;
    }
    
    /* Ensure ad content fills the space */
    .ad-space img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Improve visibility of "Advertisement Space Available" text */
    .no-ads {
        font-size: 16px;
        font-weight: bold;
        color: #666;
        background-color: #f0f0f0;
        border: 1px dashed #ccc;
    }
}

@media screen and (max-width: 480px) {
    .ads-space {
        height: auto;
        min-height: 120px; /* Increase min-height */
    }
}