/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.twoexe-container {
    --bg-primary: #121214;
    --bg-secondary: #1e1e24;
    --border-color: #313138;
    --text-primary: #f3f3f4;
    --text-secondary: #a0a0a5;
    --accent: #f97316; /* Orange accent for 2exe */
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.3);
    --success: #10b981;
    --error: #ef4444;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.twoexe-container * { box-sizing: border-box; }

.te-header { text-align: center; margin-bottom: 40px; }
.te-header h1 {
    font-size: 2.5rem; font-weight: 700; margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fdba74 0%, #ea580c 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.te-header p { color: var(--text-secondary); font-size: 1.1rem; margin: 0; }

.te-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.te-form-group { margin-bottom: 24px; }
.te-form-group label {
    display: block; font-size: 0.9rem; font-weight: 500;
    margin-bottom: 8px; color: var(--text-primary);
}

.optional { color: var(--text-secondary); font-size: 0.8rem; font-weight: 400; }

.te-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
}
@media (max-width: 600px) { .te-grid-2 { grid-template-columns: 1fr; } }

input[type="text"], input[type="password"] {
    width: 100%; background: var(--bg-primary); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 12px 16px; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; transition: var(--transition);
}
input[type="text"]:focus, input[type="password"]:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
input[type="text"]::placeholder, input[type="password"]::placeholder { color: #55555c; }

.cert-password-group { display: none; margin-top: -12px; margin-bottom: 24px; }

.te-radio-group {
    display: flex; gap: 16px; background: var(--bg-primary);
    padding: 12px; border-radius: 8px; border: 1px solid var(--border-color);
}
.te-radio {
    display: flex; align-items: center; cursor: pointer; gap: 8px; font-size: 0.95rem;
}
.te-radio input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

.te-file-drop {
    position: relative; border: 2px dashed var(--border-color);
    background: var(--bg-primary); border-radius: 8px; padding: 40px 20px;
    text-align: center; transition: var(--transition); cursor: pointer; overflow: hidden;
}
.te-file-drop:hover, .te-file-drop.dragover { border-color: var(--accent); background: rgba(249, 115, 22, 0.05); }
.te-file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.te-drop-text { display: block; color: var(--text-secondary); font-size: 0.95rem; pointer-events: none; }
.te-drop-text span { color: var(--accent); font-weight: 500; }
.te-file-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-glow); }
.te-file-drop.has-file .te-drop-text { color: var(--text-primary); font-weight: 600; }

.te-btn-submit {
    display: block; width: 100%; background: var(--accent); color: white; border: none;
    padding: 14px 24px; font-size: 1.05rem; font-weight: 600; border-radius: 8px;
    cursor: pointer; transition: var(--transition); margin-top: 32px; font-family: inherit;
}
.te-btn-submit:hover { background: var(--accent-hover); box-shadow: 0 8px 20px var(--accent-glow); transform: translateY(-1px); }
.te-btn-submit:active { transform: translateY(1px); }
.te-btn-submit:disabled { background: var(--border-color); color: var(--text-secondary); cursor: not-allowed; transform: none; box-shadow: none; }

.te-status {
    margin-top: 24px; padding: 16px; border-radius: 8px; font-size: 0.95rem;
    text-align: center; font-weight: 500; display: none; animation: fadeIn 0.3s ease-in-out;
}
.te-status.success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.te-status.error { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.spinner {
    display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite;
    vertical-align: text-bottom; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

#ps1-options { display: none; }
