*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: radial-gradient(ellipse at 50% 50%, white, #cbc3e3);
    background-repeat: no-repeat;
    font-family: 'Segoe UI', 'Roboto', 'Arial Narrow', 'Trebuchet MS', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.color-tool{
    background: rgba(93, 63, 211, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.08), 0 10px 25px rgba(90, 60, 30, 0.12);
    padding: 40px 35px;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: all 0.2s ease;
    border: 1px solid rgba(93, 63, 211, 0.2);
}

h2 {
    font-weight: 500;
    font-size: 27px;
    color: #5d3fd3;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -4.8px;
}

h2 span {
    background: #cf9fff;
    padding: 3px 11px;
    border-radius: 48px;
    font-size: 16px;
    font-weight: 500;
    color: #1a120c;
    margin-left: 3px;
}

span {
    font-size: 16px;
}

.input-group{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

label {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f00ff;
    margin-left: 4px;
}

.text-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-input-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(93, 63, 211, 0.1);
    border: 1px solid rgba(93, 63, 211, 0.2);
    border-radius: 40px;
    padding: 3px;
    box-shadow: inset 0 2px 6px rgba(204, 84, 255, 0.02);
    transition: border 0.2s, box-shadow 0.2s;
}

.text-input-wrapper:focus-within {
    border-color: #702963;
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.2);
}

#textInput {
    flex: 1;
    border: none;
    padding: 14px 19px;
    font-size: 17px;
    background: transparent;
    color: #000000;
    outline: none;
    border-radius: 40px;
    font-weight: 450;
    width: 100%;
}

#textInput::placeholder {
    color: #686868;
    font-weight: 350;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
}

.color-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #cbc3e3;
    border-radius: 40px;
    padding: 8px 12px 8px 24px;
    border: 1px solid #cbc3e3; /* Must Be Text Input Wrapper */
    flex-wrap: wrap;
    gap: 12px;
}

.color-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    color: #7f00ff;
    font-size: 16px;
}

input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 50px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(146, 106, 66, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

input[type="color"]:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(140, 100, 60, 0.1);
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 50%;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.submit-button {
    background: #180872;
    border: none;
    color: #effbff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 48px;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.8px;
    background: linear-gradient(165deg, #5300a5, #461bf3);
    border: 1px solid #4b2db8;
    color: #effbff;
    box-shadow: 0 10px 18px -8px rgba(93, 63, 211, 0.4);
}

.submit-button:hover {
    background: linear-gradient(165deg, #7200e4, #4a1dff);
    border: 1px solid #a14dff;
    box-shadow: 0 12px 22px -8px rgba(127, 0, 255, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.submit-button:active{
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 6px 12px -8px rgba(80,50,20,0.4);
}

.output-terminal{
    background: #effbff;
    border-radius: 26px;
    border: 1px solid #cbc3e3;
    padding: 25px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: background 0.2s, border 0.2s;
    min-height: 90px;
    display: flex;
    word-break: break-word;
}

.output-text{
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: #2a2a2a;
    transition: color 0.2s ease;
    width: 100%;
    padding: 3.2px 0;
    letter-spacing: -0.3px;
}

.placeholder-dim{
    color: #686868;
    font-style: italic;
    font-weight: 400;
    font-size: 21px;
}

.reset-hint{
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
    color: #7f00ff;
    margin-top: -13px;
    margin-bottom: -3.2px;

}

.reset-hint button{
    background: none;
    border: none;
    text-decoration: underline;
    color: #7f00ff;
    cursor: pointer;
    text-underline-offset: 2px;
    font-weight: 500;
    margin-left: 4px;
}

footer{
    text-align: center;
    padding: 30px 20px;
    color: #6e72a0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    font-weight: 500;
    margin-left: 50px;
}
