* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    display: flex;
    background: #f5f5f5;
}

.left-panel {
    width: 50%;
    padding: 2rem;
    background: white;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.right-panel {
    width: 50%;
    padding: 2rem;
    background: #fafafa;
    overflow-y: auto;
    position: relative;
}

.output-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #333;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

select,
input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

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

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.info-box {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #90caf9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #1565c0;
}

.info-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.info-box-header:hover {
    opacity: 0.8;
}

.info-box strong {
    display: block;
    margin-bottom: 0;
    color: #2a64b9;
    font-size: 1rem;
}

.info-toggle {
    color: #2a64b9;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

.info-list {
    margin-left: 0;
    padding-left: 2rem;
    margin-top: 0.75rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.info-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.info-box li {
    margin-bottom: 0.75rem;
}

.output-container {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-height: 300px;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.output-container li {
    margin-left: 2rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.output-bold {
    font-weight: bold;
}

.output-static {
    font-style: italic;
}

.output-dynamic {
    font-style: normal;
}

.copy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #45a049;
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-feedback {
    display: inline-block;
    margin-left: 1rem;
    color: #4CAF50;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

.required {
    color: #d32f2f;
}