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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1em;
}

.textarea-container {
    margin-bottom: 30px;
}

#inputText {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

#inputText:focus {
    outline: none;
    border-color: #667eea;
}

.button-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 20px;
}

.section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.btn {
    padding: 12px 24px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
}

.btn-case {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-case:hover {
    background: linear-gradient(135deg, #3e9bed 0%, #00e1ed 100%);
}

.btn-copy {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #32d86a 0%, #27e8c6 100%);
}

.btn-paste {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.btn-paste:hover {
    background: linear-gradient(135deg, #e95f89 0%, #edd02f 100%);
}

.btn-clear {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-clear:hover {
    background: linear-gradient(135deg, #ee5a5a 0%, #dd495e 100%);
}

.status {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 3px;
    }

    #inputText {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 0.9em;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }
}
