body {
    font-family: Arial;
    padding: 20px;
    background: #fafaf8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #ffd700;
    position: relative;
}

.logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    opacity: 0.85;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.controls {
    text-align: center;
    margin: 20px 0;
}

.options {
    text-align: right;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #ffd700;
}

button {
    width: 100%;
    padding: 16px 48px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
}

button:hover {
    background: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

button:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

button:active {
    transform: translateY(0);
}

.output {
    background: #f5f5f5;
    padding: 15px;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    border: 2px solid #e0e0e0;
    border-left: 4px solid #ffd700;
    border-radius: 4px;
    font-size: 14px;
}

.error {
    background: #ffebee;
    color: #c62828;
}

/* Whitespace visualization */
.ws_space,
.ws_tab,
.ws_newline {
    position: relative;
}

.ws_space.ws_vis::before {
    content: '·';
    color: #999;
    position: absolute;
}

.ws_tab.ws_vis::before {
    content: '→';
    color: #999;
    position: absolute;
}

.ws_newline.ws_vis::before {
    content: '↵';
    color: #999;
    position: absolute;
}

label {
    margin-left: 10px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Custom checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: white;
}

input[type="checkbox"]:hover {
    border-color: #ffd700;
}

input[type="checkbox"]:checked {
    background: #ffd700;
    border-color: #ffd700;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

input[type="checkbox"]:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

h1 {
    color: #333;
    margin-top: 0;
}

h3 {
    color: #555;
    margin-bottom: 8px;
}

.footer {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    position: relative;
    padding-top: 10px;
    overflow: visible;
}

.chicken-parade {
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    height: 50px;
    pointer-events: none;
}

.chicken-head {
    position: absolute;
    width: 35px;
    height: 35px;
    opacity: 0.85;
    bottom: 0;
}

.chicken-head:nth-child(1) { width: 38px; height: 38px; }
.chicken-head:nth-child(2) { width: 32px; height: 32px; bottom: -3px; }
.chicken-head:nth-child(3) { width: 40px; height: 40px; bottom: 2px; }
.chicken-head:nth-child(4) { width: 35px; height: 35px; }
.chicken-head:nth-child(5) { width: 42px; height: 42px; bottom: 4px; }
.chicken-head:nth-child(6) { width: 33px; height: 33px; bottom: -2px; }
.chicken-head:nth-child(7) { width: 37px; height: 37px; bottom: 1px; }
.chicken-head:nth-child(8) { width: 36px; height: 36px; }

.footer .separator {
    margin: 0 8px;
    color: #ccc;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffb700;
    text-decoration: underline;
}

.version {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 12px;
}

/* Whitespace visualization */
.ws_space, .ws_tab, .ws_newline {
    position: relative;
}

.ws_space.ws_vis::before {
    content: '·';
    color: #999;
    position: absolute;
}

.ws_tab.ws_vis::before {
    content: '→';
    color: #999;
    position: absolute;
}

.ws_newline.ws_vis::after {
    content: '↵';
    color: #999;
}
