﻿body {
    margin: 0;
    padding: 0;
    background: #eceffc;
}
.page-login,
.page-register {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-users {
    display: block; /* отменяет flex, если было унаследовано */
    min-height: 100vh;
    background: #eceffc;
}

/* Добавим отступ сверху, чтобы таблица не прилипала к краю */
.page-users .user-panel {
    margin-top: 30px;
}
.text-success {
    color: #28a745;
    font-weight: bold;
}

.text-danger {
    color: #dc3545;
    font-weight: bold;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 40px;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 0.4px 0.4px rgba(128, 128, 128, 0.109), 0 1px 1px rgba(128, 128, 128, 0.155), 0 2.1px 2.1px rgba(128, 128, 128, 0.195), 0 4.4px 4.4px rgba(128, 128, 128, 0.241), 0 12px 12px rgba(128, 128, 128, 0.35);
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-form input.form-control-material {
    background-color: transparent;
    color: white !important;
    border-bottom: 1px solid white;
}

/* Стилизация label */
.login-form label {
    color: white !important;
}

/* Стилизация текста плейсхолдера, если он используется */
.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

    .login-form h1 {
        margin-bottom: 24px;
    }

.form-input-material {
    margin: 12px 0;
    width: 100%;
}

.form-control-material {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    color: white;
    font-size: 16px;
    outline: none;
}

    .form-control-material::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

label {
    color: white;
}

.btn {
    width: 100%;
    margin: 18px 0 9px 0;
    padding: 8px 20px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

    .btn::before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, var(--primary-color), transparent);
        transform: translateX(-100%);
        transition: 0.6s;
    }

    .btn:hover {
        background: transparent;
        box-shadow: 0 0 20px 10px hsla(204, 70%, 53%, 0.5);
    }

        .btn:hover::before {
            transform: translateX(100%);
        }

.link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}


.forgot-password-inside,
.have-account {
    width: auto;
}

.forgot-password-inside a,
.have-account a {
    color: #7abaff;
    font-size: 14px;
    text-decoration: none;
}

.forgot-password-inside a:hover,
.have-account a:hover {
    text-decoration: underline;
}
.user-panel {
    margin-top: auto;
    align-self: flex-start;
}
.page-wrapper {
    align-self: flex-start;
    width: 100%;
}



#toolbar .btn {
    padding: 4px 10px; 
    font-size: 13px; 
    width: auto;
    border-radius: 4px;
    box-shadow: none;
    margin: 0;
    flex-grow: 0; 
    min-width: 80px; 
}



#toolbar .btn {
    padding: 6px 12px;
    font-size: 14px;
    width: auto;
    border-radius: 4px;
    box-shadow: none;
    margin: 0;
    flex-grow: 1;
    min-width: 120px; 
}


#toolbar .btn i {
    margin-right: 6px;
}

@media (max-width: 600px) {
#toolbar {
    flex-direction: column;
    align-items: stretch;
}

#toolbar .btn {
    width: 100%;
}
}

.table-wrapper {
    padding: 20px;
    overflow-x: auto;
}


.table {
    width: 100%;
  
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 16px;
    min-width: 600px;
}
.table td {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px; 
}
.table tr {
    margin: 0;
    padding: 0;
}
.table td,
.table th {
    line-height: 1.2;
    padding: 8px 12px;
}


.table thead th {
    background-color: #343a40;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
}

.table tbody tr:hover {
    background-color: #f1f1f1;
}

#selectAll {
    transform: scale(1.2);
}


@media (max-width: 768px) {
.table {
    font-size: 14px;
    min-width: 100%;
}



.table-wrapper {
    padding: 10px;
}
}
