* {
    font-family: 'Open Sans', sans-serif;
}

.header {
    background-color: #0a1e3c; 
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 74px;
    position: relative;
    min-width: 0; /* Allow flex items to shrink */
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 18px;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    width: 54px;
}

.logo-image {
    width: 150px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    margin-left: 35px;
}

.header-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.header-title-text {
    font-size: 28px;
    font-weight: 400;
    color: white;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 450px);
}

.header-button {
    margin-left: auto;
    z-index: 10;
    flex-shrink: 0;
}

.header-logout-link {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
}

.header-logout-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar styles */
.sidebar {
    width: 200px;
    background-color: white;
    border-right: 1px solid rgb(111, 118, 130);
}

.sidebar-item {
    padding: 12px 20px;
    font-weight: 600;
    color: rgb(111, 118, 130);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.sidebar-item:hover {
    background-color: rgb(75, 175, 210);
    color: white;
}

.sidebar-item.active {
    background-color: rgb(27, 48, 71);
    color: white;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
        height: 64px;
    }
    
    .logo {
        margin-left: 10px;
    }
    
    .logo-image {
        width: 120px;
        height: 38px;
        margin-left: 15px;
    }
    
    .header-title {
        height: 64px;
    }
    
    .header-title-text {
        font-size: 20px;
        max-width: calc(100vw - 350px);
    }
    
    .header-logout-link {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
        height: 56px;
        flex-wrap: nowrap;
    }
    
    .logo {
        margin-left: 5px;
    }
    
    .logo-image {
        width: 100px;
        height: 32px;
        margin-left: 5px;
    }
    
    .header-title {
        height: 56px;
        display: flex;
    }
    
    .header-title-text {
        font-size: 16px;
        max-width: calc(100vw - 220px);
    }
    
    .header-logout-link {
        font-size: 11px;
        padding: 3px 6px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.footer {
    background-color: #0a1e3c; 
    color: white;
    text-align: right;
    padding: 15px 20px;
    font-size: 12px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.heart {
    color: red;
}

/* Responsive footer */
@media (max-width: 480px) {
    .footer {
        text-align: center;
        padding: 10px 15px;
        font-size: 11px;
    }
}
