* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

.textbox-container {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.textbox-wrapper {
    flex: 1;
    position: relative;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea:disabled {
    background-color: #f9f9f9;
    color: #555;
}

.add-button {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    align-self: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.add-button:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.add-button:active:not(:disabled) {
    transform: translateY(0);
}

.add-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.options-popup {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    z-index: 10;
    display: none;
    width: 200px;
}

.option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: #f5f7fa;
}

/* .option-icon {
    margin-right: 10px;
    font-size: 18px;
} */

.chain-line {
    position: absolute;
    left: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: #3498db;
}

.textbox-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.textbox-label {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.input-type {
    background-color: #e8f4fc;
    color: #3498db;
}

.middle-type {
    background-color: #fff8e1;
    color: #f39c12;
}

.output-type {
    background-color: #e8f5e9;
    color: #27ae60;
}

.textbox-count {
    font-size: 14px;
    color: #3498db;
    background-color: #e1f0fa;
    padding: 2px 8px;
    border-radius: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.copy-button, .delete-button {
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button {
    background-color: #27ae60;
    color: white;
}

.copy-button:hover {
    background-color: #219653;
}

.delete-button {
    background-color: #e74c3c;
    color: white;
}

.delete-button:hover {
    background-color: #c0392b;
}

.instructions {
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    color: #34495e;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    .textbox-container {
        flex-direction: column;
    }
    
    .add-button {
        margin-left: 0;
        margin-top: 15px;
        align-self: flex-end;
    }
    
    .options-popup {
        right: 0;
        top: 100%;
        transform: none;
        margin-top: 10px;
    }
}