.modal {
    display: none;
    position: fixed;
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75); 
    animation: pulseBackground 5s infinite alternate;
}


.modal-content {
    position: relative;
    background-color: #111;
    margin: 2.5% auto; 
    padding: 30px; 
    border: 1px solid #888;
    width: 100%; 
    max-width: 750px; 
    height: auto; 
    min-height: 50%; 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 30px rgba(255, 0, 255, 0.7), 0 0 40px rgba(0, 255, 0, 0.7);
    animation: neonGlow 1.5s ease-in-out infinite alternate;
    background: linear-gradient(135deg, rgba(255, 0, 150, 0.8), rgba(0, 191, 255, 0.8), rgba(0, 255, 150, 0.8)); 
    color: #fff; 
}


.close {
    color: #ccc;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


.reload-notes, .download-notes, .download-notes-and-clear, .send-bug-email {
    display: inline-block;
    margin: 20px auto;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.5s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    font-family: Arial, sans-serif;
    border: none;
    outline: none;
}

.reload-notes {
    background-color: #ff4500;
    box-shadow: 0 0 5px #ff4500, 0 0 10px #ff4500, 0 0 15px #ff4500, 0 0 20px #ff4500;
}

.download-notes, .download-notes-and-clear, .ok {
    background-color: #1e90ff;
    box-shadow: 0 0 5px #1e90ff, 0 0 10px #1e90ff, 0 0 15px #1e90ff, 0 0 20px #1e90ff;
}

.send-bug-email {
    background-color: green;
    box-shadow: 0 0 5px green, 0 0 10px green, 0 0 15px green, 0 0 20px green;
}

.reload-notes:hover, .download-notes:hover, .download-notes-and-clear:hover, .send-bug-email:hover, .ok:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    color: #111;
}

.reload-notes.disabled {
    pointer-events: none;
    color: #999999;
    text-shadow: none;
    filter: none;
    animation: none;
}

.reload-notes.disabled::after {
    content: "(reload notes coming soon)";
    font-size: 1rem; 
    position: absolute;
    transform: translate(-50%, -100%);
    white-space: nowrap;
    color: red; 
    left: -5px;
    animation: text-rainbow 1s linear infinite; 
}

.reload-notes.disabled::before {
    content: "🚫";
    position: absolute;
    left: -10px;
}

.public-post-modal-content {
    box-sizing: border-box;
}

.public-note-meta,
.public-wallet-state,
.public-post-status {
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
}

.public-wallet-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.public-wallet-toolbar .download-notes {
    margin: 0;
}

.public-post-label {
    display: block;
    margin-bottom: 0.5rem;
}

#publicPostModalInput {
    box-sizing: border-box;
    width: 100%;
    min-height: 120px;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: #1d1d1d;
    color: #fff;
}

#submitPublicPost:disabled,
#connectPublicWallet:disabled {
    cursor: wait;
    opacity: 0.65;
}

.public-post-status {
    min-height: 1.25rem;
}

.public-post-status[data-kind="success"] {
    color: #d8ffd8;
}

.public-post-status[data-kind="warning"],
.public-post-status[data-kind="error"],
.public-posts-error {
    color: #ffe2a8;
}

.public-posts-section {
    margin-top: 1.5rem;
}

.public-posts {
    max-height: 16rem;
    overflow-y: auto;
    padding-left: 1.25rem;
}

.public-posts li {
    margin-bottom: 0.6rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@keyframes neonGlow {
    0% { box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500; }
    50% { box-shadow: 0 0 15px #1e90ff, 0 0 25px #1e90ff; }
    100% { box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500; }
}

@keyframes pulseBackground {
    0% { background-color: rgba(0, 0, 0, 0.75); }
    50% { background-color: rgba(0, 0, 0, 0.65); }
    100% { background-color: rgba(0, 0, 0, 0.75); }
}


@media (max-width: 768px) {
    .modal-content {
        width: 90%; 
        margin: 10px auto; 
        padding: 20px; 
        max-width: none; 
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px; 
    }
}
