body{
    margin:0;
    font-family:Arial;
}

.sidebar{
    width:250px;
    height:100vh;
    background:#2c3e50;
    position:fixed;
    color:white;
    padding:20px;
}

.content{
    margin-top: 70px;
    margin-left:290px;
    padding:20px;
}

.dropdown-btn{
    width:100%;
    padding:10px;
    background:#34495e;
    color:white;
    border:none;
    cursor:pointer;
    text-align:left;
}

.dropdown-container{
    display:none;
    background:#3b536b;
}

.dropdown-container a{
    display:block;
    color:white;
    padding:10px;
    text-decoration:none;
}

.dropdown-container a:hover{
    background:#4a6785;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:10px;
    margin-bottom:5px;
    border-radius:5px;
}

.sidebar a:hover{
    background:#34495e;
}

body {
    margin: 0;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #000;
    border-right: 3px solid #ff2b2b;
    overflow-y: auto;
}

.logo {
    text-align: center;
    padding: 20px;
}

.logo img {
    width: 180px;
}

.menu {
    padding: 10px;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.menu a:hover {
    background: #ff2b2b;
}

.main-content {
    margin-top: 70px;
    margin-left: 280px;
    padding: 20px;
}

/* Страница авторизации */

.login-page {
    margin: 0;
    padding: 0;

    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #000000;

    font-family: Arial, sans-serif;
}

.login-box {
    width: 350px;

    background: #c40000;

    padding: 40px;

    border-radius: 15px;

    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);

    text-align: center;
}

.login-box h2 {
    margin-bottom: 25px;
    color: white;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;

    background: #1a1a1a;
    color: white;

    border: 1px solid #444;
    border-radius: 8px;

    box-sizing: border-box;
}

.login-box input::placeholder {
    color: #bbbbbb;
}

.login-box button {
    width: 100%;
    padding: 12px;

    background: #000000;
    color: white;

    border: 1px solid white;
    border-radius: 8px;

    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.login-box button:hover {
    background: #222222;
}

.cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card {
    background: #1f1f1f;
    color: white;
    border-left: 5px solid #c00000;
    padding: 20px;
    border-radius: 10px;
    min-width: 250px;
    box-shadow: 0 0 15px rgba(255,0,0,0.3);
}

.card h3 {
    margin: 0;
    color: #ff4d4d;
}

.card h1 {
    margin-top: 10px;
    font-size: 40px;
}

.sidebar a {
    display: block;
    padding: 10px 15px;
    margin: 5px 10px;
    color: white;
    background-color: #d32f2f; /* красный */
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar a:hover {
    background-color: #b71c1c;
}

.sidebar a {
    display: block;
    padding: 10px 15px;
    margin: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    background: #c62828;
    transition: all .25s ease;
}

.sidebar a:hover {
    background: #e53935;
    transform: translateX(5px);
}

.sidebar a.active {
    background: #ff1744;
    box-shadow:
        0 0 8px rgba(255,23,68,.7),
        0 0 18px rgba(255,23,68,.5),
        0 0 30px rgba(255,23,68,.3);

    font-weight: bold;
}

.topbar{
    z-index: 9999;
    position: fixed;
    top:0;
    left:250px;          /* если ширина sidebar = 250px */
    right:0;
    height:60px;

    background:#111;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 30px;

    border-bottom:2px solid #ff1a1a;

    box-shadow:
        0 0 10px rgba(255,0,0,.4),
        0 0 25px rgba(255,0,0,.2);

    z-index:1000;
}

.logo{

    color:white;

    font-size:24px;

    font-weight:bold;

    letter-spacing:1px;

    text-shadow:
        0 0 5px #ff2d2d,
        0 0 12px #ff2d2d;

}

.user-name{

    color:white;

    font-size:17px;

    padding:10px 18px;

    border-radius:8px;

    background:#c62828;

    box-shadow:
        0 0 10px rgba(255,0,0,.45);

}

@keyframes glow{

    0%{
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff0000;
    }

    50%{
        text-shadow:
            0 0 12px #ff4444,
            0 0 30px #ff4444;
    }

    100%{
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff0000;
    }

}

.logo{

    animation:glow 2s infinite;

}

body{
    background:#111;
    font-family:Arial, sans-serif;
}

.client-header{
    background:#181818;
    color:white;
    text-align:center;
    padding:30px;
    border-bottom:3px solid #ff1f3d;
    box-shadow:0 0 20px rgba(255,0,0,.4);
}

.client-header h1{
    color:#ff2b2b;
    text-shadow:
        0 0 8px #ff0000,
        0 0 20px #ff0000;
    margin-bottom:10px;
}

.container{
    margin-top:40px;
    background:white;
    padding:35px;
    border-radius:15px;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
}

.btn-success{

    background:#d91f26;
    border:none;
    width:100%;
    font-size:20px;
    padding:14px;
    border-radius:10px;

    transition:.25s;
}

.btn-success:hover{

    background:#ff1d25;

    transform:scale(1.02);

    box-shadow:
        0 0 15px red,
        0 0 30px red;

}

.form-control{

    border-radius:8px;

    padding:12px;

    border:1px solid #ccc;

}

.form-control:focus{

    border-color:#ff1d25;

    box-shadow:0 0 10px rgba(255,0,0,.35);

}

.sidebar-logo{
    width:150px;
    display:block;
    margin:10px auto 25px;
}

.welcome-glow {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000;
    animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
    0% {
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 20px #ff0000;
    }

    50% {
        text-shadow:
            0 0 10px #ff3333,
            0 0 25px #ff0000,
            0 0 50px #ff0000;
    }

    100% {
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 20px #ff0000;
    }
}

.welcome-glow {
    letter-spacing: 1px;
    font-family: "Segoe UI", sans-serif;
}

.user-profile {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #b30000;
    box-shadow: 0 0 10px rgba(255,0,0,0.4);
    transition: 0.3s;
}

.user-profile:hover {
    background: #ff0000;
    box-shadow: 0 0 15px rgba(255,0,0,0.8);
}

.profile-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 400px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid red;
    margin-bottom: 15px;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid red;
    object-fit: cover;
}

.top-avatar {
    display: block;
    background: none !important;
    box-shadow: none !important;
}

.top-user img {
    background-color: transparent !important;
    border-radius: 50%;
    overflow: hidden;
}

.top-user {
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.topbar-right,
.user-profile,
.top-user {
    background: transparent;
    box-shadow: none;
    border: none;
}

.user-profile {
    background: #b30000;
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 8px rgba(255,0,0,0.4);
}

.top-avatar {
    border: 2px solid white;
    background: #fff;
}

.users-sidebar {
    position: fixed;
    right: 0px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #111;
    color: white;
    padding: 15px;
    transition: 0.3s;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.users-sidebar.open {
    right: 0;
}

.users-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: red;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #333;
}

.user-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-work { background: green; }
.status-vacation { background: orange; }
.status-off { background: red; }

.users-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.users-sidebar {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: #111;
    transition: 0.3s;
    z-index: 9999;
}

.users-sidebar.open {
    right: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-item {
    padding: 10px;
    border-bottom: 1px solid #333;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid red;
}

/* Правая панель пользователей */
.users-sidebar{
    position: fixed;
    top: 60px;      /* если шапка 60px */
    right: -280px;
    width: 280px;
    height: calc(100vh - 60px);

    background: #111;
    border-left: 2px solid #ff2a2a;

    transition: .35s;
    z-index: 999;
    overflow-y: auto;
}

.users-sidebar.open{
    right:0;
}

/* Стрелка */
.users-toggle{
    position: fixed;
    top: calc(50% + 30px);   /* половина высоты шапки */
    right:0;
    transform:translateY(-50%);
    width:28px;
    height:80px;

    background:#d40000;
    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:20px;
    font-weight:bold;

    border-radius:12px 0 0 12px;

    transition:.35s;

    z-index:1001;

    box-shadow:0 0 10px red;
}

/* Когда панель открыта */
.users-sidebar.open + .users-toggle{
    right:280px;
}

/* Меняем направление стрелки */
.users-sidebar.open + .users-toggle::before{
    content:"❯";
}

.users-toggle::before{
    content:"❮";
}

.user-modal{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.7);

    justify-content:center;
    align-items:center;

    z-index:9999;

}

.user-modal-content{

    width:420px;

    background:#1b1b1b;

    border:2px solid red;

    border-radius:12px;

    padding:25px;

    color:white;

    box-shadow:0 0 25px red;

}

.close-modal{

    float:right;

    font-size:28px;

    cursor:pointer;

    color:red;

}

.delete-user-btn{

    display:inline-block;

    margin-top:8px;

    padding:6px 12px;

    font-size:13px;

    border-radius:8px;

    white-space:nowrap;

}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d00000;
    box-shadow: 0 0 10px rgba(255,0,0,0.4);
}

.avatar-modal{

    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.85);
    justify-content:center;
    align-items:center;
    z-index:9999;

}

.avatar-preview{

    max-width:80%;
    max-height:80%;
    border-radius:15px;
    border:4px solid #d00000;
    box-shadow:0 0 30px red;

}

.sidebar-avatar{

    cursor:pointer;
    transition:.2s;

}

.sidebar-avatar:hover{

    transform:scale(1.08);

}
