/* Model profile responsive layout */
/* Force side-by-side layout on all screen sizes */
.model-profile-header .row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.model-profile-header .col-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

.model-profile-header .col-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
}

/* Secondary navbar styling */
.model-secondary-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.model-secondary-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.model-secondary-nav .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--color-muted, #6c757d);
    font-weight: bold;
}

.model-secondary-nav .breadcrumb-item a {
    color: var(--color-accent, #007bff);
    text-decoration: none;
    transition: color 0.2s ease;
}

.model-secondary-nav .breadcrumb-item a:hover {
    color: var(--color-primary, #0056b3);
    text-decoration: underline;
}

.model-secondary-nav .breadcrumb-item.active {
    color: var(--color-muted, #6c757d);
}

@media (max-width: 767px) {
    
    /* Adjust profile image size for small screens */
    .model-profile-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Adjust keylock overlay size for smaller profile image */
    .model-profile-image + .keylock-overlay {
        width: 50px !important;
        height: 50px !important;
    }
    
    .model-profile-image + .keylock-overlay i {
        font-size: 20px !important;
    }
    
    /* Adjust text sizes for better readability */
    .model-profile-header h1 {
        font-size: 1.8rem !important;
    }
    
    .model-profile-header .lead {
        font-size: 1rem !important;
    }
    
    /* Ensure proper spacing */
    .model-profile-header .col-md-4 {
        padding-right: 15px;
    }
    
    .model-profile-header .col-md-8 {
        padding-left: 15px;
    }
    
    /* Secondary navbar responsive adjustments */
    .model-secondary-nav .d-flex {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    .model-secondary-nav .breadcrumb {
        font-size: 0.9rem;
    }
    
    .model-secondary-nav .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    /* Extra small screens - make profile image even smaller */
    .model-profile-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .model-profile-image + .keylock-overlay {
        width: 40px !important;
        height: 40px !important;
    }
    
    .model-profile-image + .keylock-overlay i {
        font-size: 16px !important;
    }
    
    /* Adjust heading size */
    .model-profile-header h1 {
        font-size: 1.5rem !important;
    }
    
    /* Make badges smaller */
    .model-profile-header .badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    /* Adjust button size */
    .model-profile-header .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Secondary navbar extra small adjustments */
    .model-secondary-nav .breadcrumb {
        font-size: 0.8rem;
    }
    
    .model-secondary-nav .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Ensure breadcrumbs don't wrap awkwardly */
@media (max-width: 767px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.3rem;
    }
}
