/* Custom styles for Django admin */

/* Admin navbar customization */
#header {
    background: linear-gradient(to right, #417690, #205070);
    position: relative;
}

/* User tools container */
#user-tools-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 0;
    margin: 0;
    position: relative;
    min-height: 48px;
}

/* Spacer between navbar text and user tools */
.spacer {
    flex: 0.5;
    min-width: 20px;
}

/* Custom navbar text */
.navbar-text {
    text-align: center;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    position: relative;
    display: block;
    margin: 8px auto;
    white-space: nowrap;
    z-index: 10;
    background-color: #205070;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    max-width: 80%;
    width: fit-content;
}

/* User tools positioning */
#user-tools {
    text-align: right;
    padding: 8px 15px;
    position: absolute;
    right: 15px;
    white-space: nowrap;
    z-index: 10;
}

/* Enhance the admin branding */
#branding {
    float: left;
    width: 50%;
    min-width: 350px;
}

#branding h1 {
    font-weight: bold;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: visible;
}

#branding h1 .subtitle {
    color: #ddd;
    font-size: 0.8em;
    font-weight: normal;
    display: block;
    margin-top: 5px;
    line-height: 1.2;
}

/* Make sure the navbar text doesn't overlap with branding on small screens */
@media (max-width: 1024px) {
    .navbar-text {
        position: static;
        transform: none;
        text-align: center;
        padding: 5px;
        margin: 10px auto;
        width: 80%;
    }
    
    #user-tools-container {
        flex-direction: column;
    }
    
    #user-tools {
        position: static;
        text-align: center;
        margin: 5px auto;
    }
}
