body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a2e; /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #e0e0e0; /* Light text for readability */
}

.container {
    background-color: #24243e; /* Slightly lighter dark for container */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Deeper shadow */
    width: 100%;
    max-width: 700px;
    border: 1px solid #3c3c5c; /* Subtle border */
}

h1 {
    text-align: center;
    color: #00bcd4; /* Cyan accent for title */
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5); /* Glowing effect */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #b0b0b0;
}

/* --- Input Section Styling --- */
.url-input-group {
    display: flex;
    gap: 8px; /* Increased gap for better spacing */
    margin-bottom: 30px;
}

#urlInput {
    flex-grow: 1;
    padding: 12px 15px; /* Slightly more padding */
    border: 1px solid #3c3c5c;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #16162a; /* Darker input background */
    color: #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#urlInput:focus {
    border-color: #00bcd4; /* Cyan focus border */
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5); /* Cyan glow on focus */
    outline: none;
}

.icon-btn {
    padding: 10px 14px; /* Adjusted padding */
    background-color: #00bcd4; /* Cyan accent for buttons */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    font-size: 18px; /* Larger icons */
    line-height: 1;
}

.icon-btn:hover {
    background-color: #00acc1; /* Darker cyan on hover */
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.7);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* --- Output Section Styling --- */
.output-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #3c3c5c;
    border-radius: 8px;
    background-color: #1a1a2e; /* Darker background for output box */
}

h2 {
    color: #00bcd4; /* Cyan accent for subtitle */
    border-bottom: 1px solid #3c3c5c; /* Subtle divider */
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.output-group {
    margin-bottom: 20px;
}

.output-field {
    position: relative;
    display: flex;
}

textarea {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #3c3c5c;
    border-radius: 6px;
    box-sizing: border-box;
    resize: none;
    background-color: #16162a; /* Darker textarea background */
    font-size: 14px;
    line-height: 1.5;
    color: #a0a0a0; /* Slightly muted text color */
    margin-right: 50px;
    transition: border-color 0.3s;
}

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

.copy-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background-color: #4CAF50; /* Green for copy */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 14px;
}

.copy-btn:hover {
    background-color: #45a049; /* Darker green on hover */
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
}

.note {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
    margin-top: 15px;
}
