body {
    margin: 0;
    background-image: url('/media/background.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
}

header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgb(19 83 147);
    color: white;
}

footer {
    margin-top: auto;
    background: rgb(19 83 147);
    color: white;
}

footer > .container {
    padding: 15px;
}

.btn-outline-light {
    --bs-btn-hover-color: #9b9b9b;
}

@media (min-width: 600px) {
    txt {
        font-size: 4vw;
    }

    txt > txt {
        font-size: 3vw;
    }
}

/* Стили виджета профиля */
.profile-widget-container {
    position: relative;
}

.profile-avatar {
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.profile-widget {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
    margin-top: 10px;
}

.profile-widget.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    background: linear-gradient(0deg, #135393 0%, #1e6bc5 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-details h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.user-details p {
    margin: 4px 0 0;
    opacity: 0.9;
    font-size: 13px;
}

.user-department {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
}

.profile-menu {
    padding: 10px 0;
    background-color: white;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #135393;
    font-size: 16px;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.menu-badge {
    background-color: #eef2ff;
    color: #135393;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.profile-footer {
    padding: 15px 20px;
    background-color: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
}

.footer-action {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-action:hover {
    color: #135393;
}

.footer-icon {
    margin-right: 6px;
    font-size: 14px;
}

.logout-btn {
    color: #ff3b30;
    border-color: aliceblue;
}

.logout-btn:hover {
    color: #d32f2f;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #4cd964;
    border-radius: 50%;
    border: 2px solid white;
}

.offcanvas .profile-header {
    border-radius: 0;
}

.offcanvas .offcanvas-body {
    padding: 0;
}
