body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 32px 40px 28px 40px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.container.dashboard {
    max-width: 700px;
    padding: 36px 48px 32px 48px;
}

h1, h2, h3, h4 {
    color: #2d3a4b;
    margin-bottom: 18px;
    font-weight: 600;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

input, button, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #dbe2ef;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f7fafd;
    transition: border 0.2s;
}

input:focus, textarea:focus {
    border: 1.5px solid #007bff;
    outline: none;
    background: #fff;
}

button {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
    transform: translateY(-2px) scale(1.03);
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.errors {
    background: #ffe6e6;
    color: #c0392b;
    padding: 12px;
    border: 1px solid #ffb3b3;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.98rem;
    text-align: left;
}

.errors p { margin: 0; }
.success {
    color: #27ae60;
    background: #eafaf1;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.dashboard .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.dashboard .header a {
    font-size: 0.98rem;
    padding: 7px 18px;
    border-radius: 5px;
    background: #f7fafd;
    border: 1px solid #dbe2ef;
    color: #2d3a4b;
    transition: background 0.2s, color 0.2s;
}

.dashboard .header a:hover {
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.cipher-box {
    text-align: left;
    margin-top: 24px;
    background: #f7fafd;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.05);
}

label {
    font-size: 0.98rem;
    color: #2d3a4b;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.result {
    background: #e9ecef;
    padding: 12px;
    border-radius: 6px;
    word-wrap: break-word;
    font-size: 1.05rem;
    margin-top: 8px;
    color: #2d3a4b;
    border: 1px solid #dbe2ef;
}

@media (max-width: 600px) {
    .container, .container.dashboard {
        padding: 18px 8px;
        max-width: 98vw;
    }
    .cipher-box {
        padding: 12px 6px;
    }
}