body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #f5f7fb;
}

.wrapper {
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: auto;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

h2 {
    margin-bottom: 20px;
    color: #1976d2;
}

label {
    font-size: 13px;
    color: #555;
    margin-top: 15px;
    display: block;
}

input, textarea, select {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    font-size: 14px;
    transition: 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.row {
    display: flex;
    gap: 15px;
}

.row > div {
    flex: 1;
}

.btn-group {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

button {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-secondary {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-secondary:hover {
    background: #bbdefb;
}

.output {
    background: #f8fafc;
}

/* Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
}

.dialog-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.dialog-box h3 {
    margin-top: 0;
    color: #d32f2f;
}

.dialog-box p {
    font-size: 14px;
    color: #555;
}

.dialog-box button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: #1976d2;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.output-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    background: #1976d2;
    color: white;
    cursor: pointer;
}

.copy-btn:hover {
    background: #1565c0;
}

.copy-msg {
    font-size: 12px;
    color: #2e7d32;
    margin-top: 5px;
    display: inline-block;
}