/* RESET + BASE */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #141e30, #243b55);
    color: white;
    text-align: center;
    min-height: 100vh;
}

/* MAIN CONTAINER (USED IN OLD PAGES) */
.container {
    max-width: 800px;
    margin: 60px auto;
}

/* TITLE */
.title {
    margin-bottom: 20px;
}

/* FORM BOX (INDEX + MULTI) */
.form-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* INPUT */
.input-field {
    width: 70%;
    padding: 14px;
    border-radius: 30px 0 0 30px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* PRIMARY BUTTON */
.btn-primary {
    padding: 14px 25px;
    border: none;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e676, #69f0ae);
}

/* ACTION BUTTONS */
.actions {
    margin: 20px 0;
}

.btn-secondary,
.btn-download {
    padding: 10px 20px;
    border-radius: 25px;
    margin: 5px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-secondary {
    background: #2962ff;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #448aff;
}

.btn-download {
    background: #00c853;
    color: white;
}

.btn-download:hover {
    background: #00e676;
}

/* TERMINAL OUTPUT */
.terminal {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.terminal a {
    color: #00ff88;
    display: block;
    margin: 5px 0;
    text-decoration: none;
}

/* ERROR */
.error {
    color: red;
    margin-top: 10px;
}

.error-box {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff5252;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* SUCCESS */
.success {
    color: #00ff88;
    margin-top: 20px;
}

/* TEXTAREA (GLOBAL) */
textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    resize: vertical;
    border: none;
    outline: none;
}

/* ========================= */
/* 🔄 LOADER */
/* ========================= */

#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 30, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

#loaderOverlay.active {
    visibility: visible;
    opacity: 1;
}

.loader {
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #00ff88;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loaderOverlay p {
    color: #00ff88;
    font-size: 16px;
}

/* ========================= */
/* ✨ MODERN CARD UI (NEW PAGE) */
/* ========================= */

.main-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    width: 520px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* INLINE FORM (LIST EXTRACTOR) */
.form-inline {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 5px;
}

/* INLINE INPUT */
.form-inline input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 14px;
}

/* INLINE BUTTON */
.form-inline button {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.form-inline button:hover {
    background: linear-gradient(135deg, #00e676, #69f0ae);
}

/* INPUT FOCUS EFFECT */
.form-inline input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* RESULT BOX */
.result-box {
    margin-top: 20px;
    text-align: left;
}

.result-box textarea {
    background: rgba(0,0,0,0.4);
    color: #00ffcc;
}

/* 🔥 MODERN FORM FIX */
.modern-form {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 40px;
    overflow: hidden;
    width: 70%;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

/* input inside modern form */
.modern-form .input-field {
    flex: 1;
    border-radius: 0;
    background: transparent;
    color: white;
    padding-left: 20px;
}

/* button inside modern form */
.modern-form .btn-primary {
    border-radius: 0;
    padding: 14px 30px;
}

/* focus glow */
.modern-form .input-field:focus {
    box-shadow: inset 0 0 10px rgba(0,255,136,0.5);
}