body {
    font-size: .875rem;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

#content {
    position: absolute;
    top: 80px;
    left: 10px;
    right: 10px;
    bottom: calc(60px + 20px);
    overflow: hidden;
}

#logo-atelier {
    height: 35px;
}

#logo-cartif {
    height: 35px;
}

#logo-deustotech {
    height: 15px;
    margin-left: 10px;
}

#logo-list, #div-logo-atelier {
    /*min-width: 230px;*/
}

#logo-list {
    text-align: right;
}

#city-label {
    text-align: center;
    color: #5d5d58;
}

/* Footer Styles */
.footer-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 0.35rem 1rem;
    border-top: 3px solid #007bff;
    z-index: 999999;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#eu-flag {
    height: 30px;
    width: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#eu-flag:hover {
    transform: scale(1.1);
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.footer-description {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #bdc3c7;
    letter-spacing: 0.2px;
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer-modern {
        padding: 0.3rem 0.5rem;
    }

    .footer-main {
        gap: 0.4rem;
    }

    #eu-flag {
        height: 18px;
    }

    .footer-text {
        gap: 0;
    }

    .footer-description {
        font-size: 0.75rem;
    }
}

/*
* Sidebar
*/

.sidebar {
    position: fixed;
    top: 68px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    width: 16.66667%;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: calc(100vh - 68px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    border-left: 4px solid #007bff;
    padding-left: calc(1rem - 4px);
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #999;
    transition: color 0.3s ease;
}

.sidebar .nav-link.active {
    color: #007bff;
    background-color: #e7f1ff;
    border-left: 4px solid #007bff;
    padding-left: calc(1rem - 4px);
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Responsive Mobile Styles */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .navbar-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        margin-right: 1rem;
        z-index: 101;
    }

    .navbar-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .navbar-toggle-icon span {
        width: 25px;
        height: 3px;
        background-color: #2c3e50;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navbar-toggle-mobile.active .navbar-toggle-icon span:nth-child(1) {
        transform: rotate(45deg) translate(12px, 12px);
    }

    .navbar-toggle-mobile.active .navbar-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle-mobile.active .navbar-toggle-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .sidebar {
        position: fixed;
        top: 68px;
        bottom: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.show-mobile {
        left: 0;
    }

    .sidebar-sticky {
        top: 0;
        height: calc(100vh - 68px);
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    #content {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .navbar-toggle-mobile {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .sidebar {
        position: fixed;
        top: 68px;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: 16.66667%;
    }

    #content {
        position: absolute;
        top: 80px;
        right: 10px;
        bottom: 50px;
        margin-left: 16.66667%;
    }
}

/*
* Navbar
*/

.navbar-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem !important;
    border-bottom: 2px solid #e8e8e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    flex-wrap: nowrap;
}

.navbar-brand-modern {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.navbar-brand-modern:hover {
    transform: scale(1.05);
}

.navbar-brand-modern img {
    max-width: 100%;
    height: auto;
}

.navbar-logos {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-right: 0;
}

.navbar-city-label {
    text-align: center;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
* Utilities
*/

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

/* 
* HOME static page
*/

#static-home-content,
#static-home-content-bilbao,
#static-home-content-amsterdam {
    padding: 30px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#static-home-content img,
#static-home-content-bilbao img,
#static-home-content-amsterdam img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}