*{
    box-sizing:border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

#gradient {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: #000;
    color: white;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px 40px 50px;
}

h1{
    text-align: center;
    color: #d4a900;
    margin: 15px 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    text-align: center;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #515151;
    color: white;
    font-size: 21px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.form-group,
.form-group2,
.inputSettings,
.customSettings,
.customOutputFile,
.outputSettings {
    padding-top: 8px;
    padding-bottom: 12px;
    padding-left: 22px;
    padding-right: 22px;
    margin: 0;
    background: 
        linear-gradient(
            145deg,
            rgba(25, 28, 31, 0.65),
            rgba(14, 16, 18, 0.65)
        );
    border: 1px solid #515151;
    border-radius: 10px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.form-group:hover,
.form-group2:hover,
.inputSettings:hover,
.outputSettings:hover {
    background: 
        linear-gradient(
            145deg,
            rgba(29, 32, 35, 0.96),
            rgba(16, 18, 20, 0.96)
        );
    border-color:#ffea009e;
    transform: translateY(-1px);
}

h4, label {
    display: block;
    margin-top: 10px;
    margin-bottom: 9px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

h4:not(:first-child) {
    margin-top: 18px;
}

input[type="text"],
input[type="file"],
select {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    background: #181b1f;
    color: white;
    border: 1px solid #515151;
    border-radius: 7px;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    margin-bottom: 4px;
}
input[type="text"]:hover,
input[type="file"]:hover,
select:hover {
    border-color: #ffea009e;
    background: #1c2024;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #d4a900;
    box-shadow: 
        0 0 0 2px rgba(212, 169, 0, 0.12),
        0 0 12px rgba(212, 169, 0, 0.08);
        background: #1b1e22;
}

input[type="file"] {
    cursor: pointer;
    padding: 7px;
}

select {
    cursor: pointer;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: #d4a900;
    vertical-align: middle;
    cursor: pointer;
}

.hiddenPanel {
    background: 
        linear-gradient(
            145deg,
            rgba(25, 28, 31, 0.65),
            rgba(14, 16, 18, 0.65)
        );
    border: 1px solid #515151;
    border-left: 3px solid #d4a900;
    padding: 20px;
    border-radius: 10px;
    margin-top: 18px;
}

.hiddenPanel:hover{
    background: 
        linear-gradient(
            145deg,
            rgba(29, 32, 35, 0.96),
            rgba(16, 18, 20, 0.96)
        );
    border-color:#ffea009e;
    transform: translateY(-1px);
}

.hiddenPanel h2 {
    margin-top: 0;
    border-bottom: 1px solid #515151;
    font-size: 18px;
}

button {
    display: block;
    width: min(500px, 90%);
    padding: 15px 20px;
    margin: 30px auto;
    background: 
        linear-gradient(
            180deg,
            #098d13,
            #087a12
        );
    border: 1px solid #0ca518;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: 
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background:
        linear-gradient(
            180deg,
            #0ba719,
            #0b9418
        );
    box-shadow: 0 0 20px rgba(8, 148, 24, 0.25);
    color: #fff365;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
    box-shadow: none;
}

.terminal-container {
    margin-top: 25px;
    padding: 18px;
    background: 
        linear-gradient(
            145deg,
            #111416,
            #0b0d0f
        );
    border: 1px solid #515151;
    border-radius: 10px;
}

.terminal-container h4 {
    color: #d4a900;
    margin-bottom: 12px;
}

#terminalOutput {
    min-height: 250px;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    padding: 16px;
    background: #050607;
    border: 1px solid #22262a;
    border-radius: 7px;
    color: #24d900;
    font-family: 
        "Cascadia Mono",
        "Consolas",
        "Courier New",
        monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    transition: max-height 0.2s ease;
}

#terminalOutput.expanded{

    max-height: 7500px;
}

.view-more-btn{
    display: block;
    width: min(260px, 70%);
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: whitesmoke;
    cursor: pointer;
    background: transparent;
    border: none;
    box-shadow: none;
}

.view-more-btn:hover{
    background: transparent;
    border: none;
    box-shadow: none;
    transform: translateY(-1px);
    color: #a40000;
}

#errorBox {
    margin-top: 15px;
    padding: 10px;
    border-radius: 7px;
    color: white;
    font-weight: bold;
}

h6 {
    color: white;
    text-align: center;
    margin: 15px auto;
    max-width: 1100px;
    font-style: italic;
    line-height: 1.5;
}

.download-option {
    margin-top: 0px;
    margin-bottom: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid #515151;
}

.download-option label {
    display: flex;
    align-items: center;
    margin: 0;
    color: #9a9da1;
    font-weight: 400;
    cursor: pointer;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #444;
    border-radius: 24px;
    transition: 0.25s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
    background: rgb(146, 146, 146);
    border-radius: 50%;
    transition: 0.25s;
}

.switch input:checked + .slider {
    background: #878400;
}
.switch input:checked + .slider::before {
    transform: translateX(22px);
    background: rgb(255, 255, 255);
}

input[type="textarea"],
input[type="text"],
input[type="file"],
select,
textarea{
    width: 100%;
    padding: 10px 12px;
    background: #181b1f;
    color: white;
    border: 1px solid #515151;
    border-radius: 7px;
    font-size: 14px;
    transition: 
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    margin-bottom: 4px;
    font-family: "Segoe UI", Arial, sans-serif;
}

input[type="text"],
input[type="file"],
select{
    height: 44px;
}

textarea{
    min-height: 120px;
    max-height: 7500px;
    overflow-y: auto;
    margin: 0;
    padding: 16px;
    background: #050607;
    border: 1px solid #22262a;
    border-radius: 7px;
    font-family: 
        "Cascadia Mono",
        "Consolas",
        "Courier New",
        monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

input[type="text"]:hover,
input[type="file"]:hover,
select:hover,
textarea:hover{
    border-color: #ffea009e;
    background: #1c2024;
}
input[type="file"] {
    cursor: pointer;
    padding: 7px;
}

select{
    cursor: pointer;
}
input[type="checkbox"]{
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: #d4a900;
    vertical-align: middle;
    cursor: pointer;
}

.text-input-toggle{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: 
        linear-gradient(
            145deg,
            rgba(25, 28, 31, 0.65),
            rgba(14, 16, 18, 0.65)   
        );
    border: 1px solid #515151;
    border-radius: 10px;
    margin-bottom: 12px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.text-input-toggle:hover {
    background: 
        linear-gradient(
            145deg,
            rgba(29, 32, 35, 0.96),
            rgba(16, 18, 20, 0.96)
        );
    border-color: #ffea009e;
    transform: translateY(-1px);
}
.text-input-toggle span{
    color: white;
    font-weight: 400;
    cursor: pointer;
}
