html {
    box-sizing: border-box;
    overflow-y: auto;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #fafafa;
    padding-top: 60px;
    font-family: sans-serif;
    color: #3b4151;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #000f41;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: xx-large;
    gap: 0.25rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.navbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.navbar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar h1 {
    margin: 0;
    font-size: 18px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    background: #001352;
    transition: background 0.3s;
    margin-left: 1rem;
}

.navbar a:hover {
    background: #021a6a;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-end;
    }

    .navbar a {
        margin: 5px 0;
    }

    .navbar-left {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar-right{
        margin-top:1.5rem;
    }
}

/* Swagger UI customizations */
.swagger-ui .topbar {
    display: none !important;
}

.swagger-ui .information-container {
    display: none !important;
}

/* Content area for index page */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff6e;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* Service list styles */
.service-list {
    max-height: 75vh;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-item {
    padding: 10px;
    background-color: #ffffff70;
    border-radius: 5px;
    border-bottom: 1px solid #d4d4d4;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: bold;
    color: #3b4151;
}

.service-item:hover,
.service-item:focus {
    background-color: #007acc08;
    color: #007acc;
    outline: none;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item.hidden {
    display: none;
}

.service-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.service-link:hover {
    color: #007acc;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    width: fit-content;
    background: #000f41;
    color: white;
    box-shadow: 0 4px 15px 0 rgba(0, 15, 65, 0.15);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px 0 rgba(0, 15, 65, 0.39);
}