/* Dead Drop Messenger - basic stylesheet */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #1a1a2e;
    color: #e8e8f0;
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: #25253d;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h1 {
    margin-top: 0;
    color: #ffffff;
    border-bottom: 1px solid #3a3a55;
    padding-bottom: 0.5rem;
}

h2 {
    color: #ffffff;
    margin-top: 0;
}

p {
    line-height: 1.6;
    color: #c0c0d0;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #ffffff;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #3a3a55;
    border-radius: 4px;
    background: #1a1a2e;
    color: #e8e8f0;
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6c7ce0;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button {
    margin-top: 1.2rem;
    padding: 0.7rem 1.4rem;
    background: #6c7ce0;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

button:hover {
    background: #5a6acf;
}

.error {
    background: #5a2530;
    border: 1px solid #8a3a48;
    color: #ffd0d8;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.result {
    background: #1f3a2e;
    border: 1px solid #3a6a4a;
    padding: 1.2rem;
    border-radius: 6px;
}

.result input[type="text"] {
    background: #0f1a14;
    margin-top: 0.5rem;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 0.9rem;
}

.message-box {
    background: #1a1a2e;
    border: 1px solid #3a3a55;
    padding: 1.2rem;
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1.05rem;
    line-height: 1.5;
}

.note {
    color: #a0a0b0;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

a {
    color: #8a9ce8;
}

a:hover {
    color: #a8b6f0;
}

#countdown-wrapper {
    font-size: 1rem;
    font-weight: normal;
    color: #a0a0b0;
    margin-left: 0.5rem;
}

#countdown {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-weight: 600;
    color: #8a9ce8;
    transition: color 0.2s ease;
}

#countdown.countdown-warning {
    color: #ff6b7a;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.message-box.destroyed {
    text-align: center;
    color: #a0a0b0;
    font-style: italic;
    font-size: 1.1rem;
    padding: 2rem;
}
