
* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #202020;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

input[type="text"], input[type="password"], button {
    appearance: none;
    outline: none;
    border: none;
    background-color: #292929;
    height: 25px;
    color: #ffffff;
    margin: 5px;
    border-radius: 5px;
    padding: 5px;
}

.password-popup, .loader-container {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.password-popup {
    pointer-events: none;
}

.password-popup > * {
    pointer-events: all;
}

.loader-container {
    background-color: #00000067;
    z-index: 21;
}

.password-dialogue {
    background-color: #242424;
    width: 350px;
    height: 230px;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.change-pass-dialogue {
    height: 280px !important;
}

.password-dialogue input:not([type="checkbox"]), .password-dialogue button, .add-entry-button, .toggle-options-button {
    appearance: none;
    outline: none;
    border: none;
    width: 250px;
    height: 35px;
    background-color: #1d1d1d;
    color: #ffffff;
    margin: 5px;
    border-radius: 12px;
    cursor: pointer;
}

.password-dialogue input:not([type="checkbox"]) {
    padding-left: 8px;
    padding-right: 8px;
}

.password-dialogue input:not([type="checkbox"]):focus {
    border: 1px solid #ffffff;
}

.entry {
    box-sizing: border-box;
    width: 100%;
    background-color: #333333;
    margin: 0;
    border-top: 2px solid #2e2e2e;
    padding: 20px;
    padding-top: 35px;
    position: relative;
}

.date {
    color: #858585;
    position: absolute;
    top: 10px;
    right: 10px;
}

.header {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.toggle-options-button {
    font-size: medium;
    width: max-content;
    padding-left: 12px;
    padding-right: 12px;
    float: right;
}

textarea {
    box-sizing: border-box;
    resize: none;
    width: 100%;
    outline: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 5px;
    background-color: #2b2b2b;
    color: #ffffff;
    border: none;
    margin-bottom: 40px
}

.editing-save-button {
    float: right;
    width: 100px;
    margin-top: -30px;
    background-color: #2b2b2b;
}

.entry-action {
    cursor: pointer;
    color: #7d7c96;
}

.loader {
    border: 15px solid #4e4e4e; 
    border-top: 15px solid #858585;
    border-bottom: 15px solid #5c5c5c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

body:has(input#is-editor[type="checkbox"]:checked) .editor-pass {
    display: block !important;
}

body:has(input#is-editor[type="checkbox"]:checked) .password-dialogue {
    height: 310px;
}

#iseditor-boxandlabel, .showpass-boxandlabel {
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 5px;
    width: 18px;
    height: 18px;
    color: #333333;
    cursor: pointer;
    background-color: #3b3b3b;
    border-radius: 5px;
    border: 1px solid #4e4e4e;
}

input[type="checkbox"]:checked {
    background-color: #9b9b9b;
}

.sse-selection-label {
    margin: 5px;
    display: flex;
    align-items: center;
    float: left;
    margin-top: -20px;
}

.sse-selection-label > input[type="checkbox"] {
    margin-right: 6px;
}

body:has(input#issse[type="checkbox"]:checked) #sse-create-pass {
    display: block !important;
}

#editor-options-container {
    display: flex;
    flex-direction: column;
    background-color: #272727;
    padding: 10px;
    border-radius: 20px;
    position: absolute;
    right: 10px;
    top: 65px;
    z-index: 2;
}

.upload-error {
    font-size: smaller;
    color: crimson;
    margin-left: 8px;
}