html * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
:root{
    --transition: all 0.2s ease-in-out;
    --shadow: 0 0 10px gray;
    --dark_shadow: 0 0 10px rgb(90, 90, 90);
    --back_color: white;
    --text-color: black;
    --back_color_invert: gray;
    --text-color_invert: white;
    --bright_shadow: 5px 5px 3px rgb(51, 51, 51);
}

[data-theme="dark"] {
    --transition: all .2s ease-in-out;
    --shadow: 0 0 10px white;
    --dark_shadow: 0 0 10px rgb(58, 58, 58);
    --back_color: rgb(46, 46, 46);
    --text-color: white;
    --back_color_invert: white;
    --text-color_invert: gray;
    --bright_shadow: 5px 5px 3px rgb(128, 128, 128);
}

a{
    text-decoration: none;
    color: inherit;
}
input{
    outline: none; /* Убирает обводку при фокусе */
}
body{
    background-color: var(--back_color);
    position: relative;
    min-width: 100vw;
    min-height: 100vh;
}
.menu_button{
    margin: 8px;
    height: 60px;
    filter: invert(--back_color);
    box-shadow: var(--bright_shadow);
}
.navigation{
    color: var(--text-color);
    background-color: var(--back_color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 75px;
}
.navigation button{
    min-width: 100px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    font-size: 20px;
    border: 1px solid var(--text-color);
    padding: 8px;
    color: var(--text-color);
    background-color: var(--back_color);
    transition: var(--transition);
}
.navigation button:hover{
    background-color: var(--back_color_invert);
    color: var(--text-color_invert);
    transition: var(--transition);
}
.navigation .buttons{
    display: flex;
}
.authenticate{
    color: var(--text-color);
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.login_form{

    display: flex;
    flex-direction: column;
    font-size: 18px;
    
}
.login_form *{
    margin: 4px 0 ;
}
.login_form p{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}
.login_form input,
.login_form button{
    background-color: var(--back_color);
    color: var(--text-color);
    width: 100%;
    margin: 16px 0;
    font-size: 20px;
    border: none;
    box-shadow: var(--bright_shadow);
    border: 1px solid var(--text-color);
    
}
.login_form button{
    transition: var(--transition);
    padding: 8px;
}
.login_form button:hover{
    color: var(--text-color_invert);
    background-color: var(--back_color_invert);
    transition: var(--transition);
}
.login_form input{
    padding: 2px 8px;
    width: 70%;
}

.document{
    position: absolute;
    display: flex;
    justify-content: center;
    left: 35%;
    bottom: 35%;
}

.document_form{
    color: var(--text-color);
    min-width: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.document_form p{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document_form select,
.document_form input,
.document_form button{
    color: var(--text-color);
    background-color: var(--back_color);
    width: 60%;
    margin: 8px 0;
    font-size: 20px;
    border-radius: 8px;
    border: none;
    border: 1px solid var(--text-color);
    box-shadow: var(--bright_shadow);
    padding: 8px;
}
.document_form button{
    width: 100%;
}

.home{
    color: var(--text-color);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.documents_from_base_parent{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.documents_card_head{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.documtn_card_main{
    font-weight: bold;
    text-align: center;
    width: 90%;
    
}
.document_delete{
    cursor: pointer;
    width: 10%;
    font-size: 20px;
    font-weight: 900;
    background: none;
    color: var(--text-color);
    border: none;
}

.documents_from_base{
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    font-size: 18px;
    border: 1px solid var(--text-color);
    box-shadow: var(--bright_shadow);
    margin: 16px 0;
    width: 300px;
    height: 350px;
    margin: 16px;
}

.documents_from_base *{
    flex-grow: 1;
}
.documents_from_base p,
.documents_from_base p strong{
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}
.document_interaction{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.document_interaction p{
    width: auto;
    text-align: center;
}

h1, h2, h3, h4, h5, h6{
    text-align: center;
}
.t-l{
    text-align: left;
}
.t-c{
    text-align: center;
}
.t-r{
    text-align: right;
}
.mg-h-8{
    margin: 8px 0;
}






#modal{
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
}
#modal_inner{
    width: 100%;
    height: 100%;
    position: relative;
}
#modal_close_back_button{
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(211, 211, 211, 0.5);
}
#modal_window {
    color: var(--text-color);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Центрирование */
    z-index: 2;
    width: 30%;
    height: 30%;
    background-color: var(--back_color);
    border: 1px solid var(--text-color);
    box-shadow: var(--bright_shadow);
}
#modal_head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    height: 15%;
}
#modal_close_cancel,
#modal_close_x{
    cursor: pointer;
}
#modal_body{
    box-sizing: border-box;
    width: 100%;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
}
#modal_operation_buttons{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
#modal_operation_buttons > div{
    width: auto;
    text-align: center;
    padding: 8px;
}

#id_file{
    display: none;
}
label[for="id_file"] {
    padding: 10px 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    box-shadow: var(--bright_shadow);
    margin: 8px 0;
}