/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f8f9fa, #e8f5e9);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Container */
.container {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Header */
.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #4cb454;
    margin: 0;
}

/* Navigation Modes */
.tool-modes {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.slider-container label {
    font-size: 1.2em;
    font-weight: bold;
    color: #4cb454;
    margin-right: 10px;
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background-color 0.3s ease;
}

input[type="range"]:hover {
    background-color: #ccc;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4cb454;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Main Content */
.tool-main {
    display: flex;
    flex: 1;
    gap: 30px;
    height: 700px;
}

/* Input and Output Areas */
.input-area, .output-area {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

textarea {
    width: 100%;
    border: none;
    background: none;
    font-size: 1.2em;
    resize: none;
    height: 100%;
    outline: none;
    color: #333;
    padding: 10px;
    box-sizing: border-box;
}

textarea::placeholder {
    color: #aaa;
}

/* Button Group (Humanize, Copy, Clear) */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.paraphrase-btn {
    background: linear-gradient(to right, #4cb454, #3a993d);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.paraphrase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to right, #3a993d, #4cb454);
}

.paraphrase-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
}

.action-btn {
    background: #ffffff;
    color: #4cb454;
    border: 2px solid #4cb454;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.action-btn:hover {
    background: #4cb454;
    color: #fff;
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Footer */
.tool-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.tool-footer p {
    margin: 0;
    font-size: 1em;
    color: #666;
}
