/* Общие стили страниц (user/*.html): правила, одинаковые во многих шаблонах (вынесены автоматически).
   Подключается до собственного <style> страницы, поэтому особые правила страниц его переопределяют. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(145deg, #f0f4ff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg span {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(0, 64, 128, 0.03);
    border-radius: 50%;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) scale(1.5) rotate(360deg); opacity: 0; }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0.5rem;
}

.user-avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6f0ff, #b8d1ff);
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,55,110,0.2);
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: #002856;
    font-size: 0.95rem;
}

.logout-btn {
    background: transparent;
    border: 2px solid #0057a3;
    color: #0057a3;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: #0057a3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 80, 160, 0.3);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
