:root {
    --bg: #000000;
    --blurple: #5865f2;
    --blurple-hover: #6d78f7;
    --text: #f5f5f5;
    --muted: #b8b8b8;
    --wheat: wheat;
}

* {
    box-sizing: border-box;
    font-family: nasalization, Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: nasalization, Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body {
    position: relative;
    overflow: hidden;
}

@font-face {
    font-family: nasalization;
    src: url('./nasalization-rg.otf');
}

.brand {
    position: fixed;
    top: 18px;
    left: 22px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    user-select: none;
    font-weight: bold;
    letter-spacing: -.1px;
    font-family: nasalization;
}

quicknotedot::before {
    content: 'quicknote';
    color: var(--wheat);
}

quicknotedot::after {
    content: '.';
    color: var(--default_darker);
}

aggiczyhu::before {
    content: 'aggiczy';
    color: var(--blurple);
}

aggiczyhu::after {
    content: '.hu';
    color: var(--default_darker);
}

.container {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(92vw, 760px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

textarea {
    width: 100%;
    min-height: 160px;
    max-height: 70vh;
    resize: vertical;
    border: 1px solid rgba(88, 101, 242, 0.5);
    background: #0d0d0d;
    color: var(--text);
    padding: 16px;
    font-size: 1rem;
    line-height: 1.45;
    outline: none;
    transition: all .3s ease-in-out;
    border-radius: 30px 30px 10px 10px;
}

/*filled textarea*/

textarea:not(:placeholder-shown) {
    font-family: monospace;
}

textarea:hover {
    border-color: rgba(88, 101, 242, 0.75);
    border-radius: 20px;
}

textarea:focus {
    border-color: var(--blurple);
    border-radius: 10px;
}

textarea:disabled {
    background: #0a0a0a;
    color: var(--muted);
}

.status {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    justify-items: center;
    min-height: 1.2em;
}
.status p {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.btn {
    width: 100%;
    border: none;
    font-weight: 800;
    font-size: .95rem;
    padding: 12px 18px;
    cursor: pointer;
    transition: all .3s ease-in-out;
}
.btn:nth-child(1) {
    border-radius: 5px 5px 5px 15px;
}
.btn:nth-child(2) {
    border-radius: 5px;
}
.btn:nth-child(3) {
    border-radius: 5px 5px 15px 5px;
}

.btn:hover {
    filter: brightness(1.1);
    border-radius: 10px;
}

.btn:active {
    filter: brightness(1.2);
    border-radius: 5px;
    transform: translateY(-3px);
}

.btn:disabled {
    filter: brightness(0.6) !important;
    cursor: wait;
}

.btn-discord {
    background: var(--blurple);
    color: white;
}

.btn-d1 {
    background: var(--wheat);
    color: #111;
}

.btn-both {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--blurple) 72%, #000 28%) 0%,
        color-mix(in srgb, var(--wheat) 72%, #000 28%) 100%
    );
    color: white;
}

#status {
    margin: 0;
    min-height: 1.2em;
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 520px) {
    .actions {
        grid-template-columns: 1fr;
    }
}

.attachment-section {
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.btn-attach {
    background: #1a1a1a;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    width: max-content;
    font-size: 0.85rem;
    width: 100%;
}

.btn-attach:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.3);
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0px;
    column-gap: 8px;
    justify-content: space-evenly;
}

.file-chip {
    background: #222;
    border: 1px solid #333;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.file-chip span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

.file-remove {
    cursor: pointer;
    color: #ff4a4a;
    font-weight: bold;
    transition: all .2s ease-in-out;
}

.file-remove:hover {
    color: #ff7070;
}