:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #a855f7;
    --success: #10b981;
    --danger: #ef4444;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    background: rgba(11, 15, 25, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

h1 {
    font-size: 1.35rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

main {
    flex: 1;
    padding: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* Glass Container Styling */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.15rem;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Left Sidebar: Controls */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: fit-content;
}

/* Section Titles */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.section-title svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--primary);
}

/* File Upload */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.drop-zone svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.drop-zone:hover svg {
    color: var(--primary);
    transform: translateY(-3px);
}

.drop-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.drop-zone span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.file-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    display: none;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.file-info-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--success);
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.remove-file {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 0.25rem;
}

.remove-file:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Form Inputs */
.input-group {
    margin-bottom: 0.75rem;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Right Content Panel */
.content-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Welcome Card (when empty) */
.welcome-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 450px;
}

.welcome-icon {
    width: 4rem;
    height: 4rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.welcome-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.welcome-card p {
    color: var(--text-muted);
    max-width: 480px;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Tab Navigation */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Editor Section Styles */
.editor-container {
    display: none; /* Shown dynamically */
    animation: fadeIn 0.3s ease;
}

.editor-container.active {
    display: block;
}

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

/* Form Visual Editor Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* Cards inside Visual Editor */
.config-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.95rem;
    margin-bottom: 1rem;
}

.config-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.config-card-title svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* Switches & Toggles */
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toggle-title {
    font-size: 0.85rem;
    font-weight: 500;
}

.toggle-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Custom Toggle Switch CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .2s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #9ca3af;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    background-color: #fff;
    transform: translateX(20px);
}

/* JSON Text Editor */
.json-editor-wrapper {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: #060911;
}

.json-textarea {
    width: 100%;
    height: 480px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1rem;
    resize: vertical;
    outline: none;
    tab-size: 4;
}

/* JSON Validation Banner */
.validation-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

.validation-banner.valid {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.validation-banner.invalid {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Global Status Banner / Toast Alert */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.toast {
    min-width: 300px;
    max-width: 450px;
    padding: 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid;
}

.toast.success {
    background: rgba(6, 78, 59, 0.85);
    border-color: rgba(16, 185, 129, 0.3);
    color: #ecfdf5;
}

.toast.error {
    background: rgba(153, 27, 27, 0.85);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fef2f2;
}

.toast.info {
    background: rgba(30, 58, 138, 0.85);
    border-color: rgba(59, 130, 246, 0.3);
    color: #eff6ff;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    padding: 0.1rem;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%) translateY(20px); opacity: 0; }
    to { transform: translateX(0) translateY(0); opacity: 1; }
}

/* Action footer inside Editor card */
.editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1.25rem;
}

.editor-footer .btn {
    width: auto;
    min-width: 160px;
}

/* Loading Spinner */
.spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .spinner {
    display: inline-block;
}
.btn.loading span {
    display: none;
}

/* Modal Dialog Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}
.modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}
.radio-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.radio-option:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}
.radio-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}
.radio-option input[type="radio"] {
    margin-top: 0.2rem;
    accent-color: var(--primary);
    cursor: pointer;
}
.radio-label-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    cursor: pointer;
    flex: 1;
}
.radio-main-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}
.radio-sub-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Brute Force additions */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 1rem 0;
}
.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.or-divider:not(:empty)::before {
    margin-right: .5em;
}
.or-divider:not(:empty)::after {
    margin-left: .5em;
}

.brute-progress-panel {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}
.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100%;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px var(--primary-glow);
}
.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.progress-speed {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Security Lockscreen & Bypass Configuration */
/* Security Lockscreen & Premium Login Configuration */
.lockscreen-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0b0f19;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 40%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Background animated glowing meshes */
.lockscreen-overlay::before,
.lockscreen-overlay::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    animation: floatingMesh 12s infinite alternate ease-in-out;
}
.lockscreen-overlay::before {
    top: 20%; left: 25%;
}
.lockscreen-overlay::after {
    bottom: 20%; right: 25%;
    animation-delay: -6s;
    background: linear-gradient(45deg, #10b981, #3b82f6);
}

@keyframes floatingMesh {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.2); }
}

.lockscreen-card {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.lock-badge-logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    overflow: hidden;
    padding: 2px;
    transition: transform 0.5s ease;
}
.lock-badge-logo:hover {
    transform: rotate(360deg) scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.lock-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.lock-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(to right, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.lock-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Tab login switcher */
.login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}
.login-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.login-tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.login-tab-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* Form styling updates */
.login-input-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.login-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
}

.login-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem 0.75rem 2.6rem !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.login-input:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.login-input:focus + .login-input-icon {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.85rem !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
    background: linear-gradient(135deg, #4f46e5, #9333ea) !important;
}

.login-btn:active {
    transform: translateY(0);
}

.login-shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Secret update drawer config */
.bypass-card {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: none;
    animation: fadeIn 0.3s ease;
}

.bypass-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────
   Biometric Matching & Processing Simulator Styles
   ───────────────────────────────────────────────────────────── */
.bio-canvas-card canvas {
    background-color: #000;
    transition: box-shadow 0.3s ease;
}

.bio-canvas-card:hover canvas {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.scan-bar {
    animation: scanAnimation 2.5s ease-in-out infinite;
}

@keyframes scanAnimation {
    0%, 100% {
        top: 0%;
        opacity: 0.8;
    }
    50% {
        top: 100%;
        opacity: 0.3;
    }
}

/* Styled Markdown Typography for Biometric Report Reader */
.bio-report-content {
    line-height: 1.65;
    color: #d1d5db;
}

.bio-report-content h1, 
.bio-report-content h2, 
.bio-report-content h3 {
    color: #fff;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.bio-report-content h1 {
    font-size: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio-report-content h2 {
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.35rem;
    color: #e9d5ff;
}

.bio-report-content h3 {
    font-size: 0.95rem;
    color: #a5b4fc;
}

.bio-report-content p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.bio-report-content code {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #f472b6;
}

.bio-report-content pre {
    background: #04070d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

.bio-report-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #c7d2fe;
    font-size: 0.78rem;
}

.bio-report-content ul, 
.bio-report-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.bio-report-content li {
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.7);
}

.bio-report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.01);
    border-radius: 0.5rem;
    overflow: hidden;
}

.bio-report-content th, 
.bio-report-content td {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.bio-report-content th {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 600;
}

.bio-report-content tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.bio-report-content blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(99, 102, 241, 0.05);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0.35rem;
}

.bio-report-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: #c7d2fe;
}

/* Alert styles matching markdown parser spec */
.bio-report-content .alert-note {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin: 1.25rem 0;
}

.bio-report-content .alert-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a5b4fc;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bio-report-content .svg-flowchart {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Print styles for A4 Report printing */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt !important;
    }
    header, 
    .sidebar, 
    .tab-bar, 
    .bio-control-bar, 
    .btn, 
    .toast-container,
    .logo-container,
    #welcome-state,
    .matcher-panel button,
    h4 {
        display: none !important;
    }
    main {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .content-panel {
        display: block !important;
        width: 100% !important;
    }
    .glass-card {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .editor-container {
        display: block !important;
    }
    /* Hide all other tabs except the active tab pane-biometric */
    .editor-container:not(#pane-biometric) {
        display: none !important;
    }
    .config-card {
        background: none !important;
        border: 1px solid #cbd5e1 !important;
        padding: 1.5rem !important;
        color: #000000 !important;
    }
    .config-card-title {
        color: #0f172a !important;
        border-bottom: 2px solid #0f172a !important;
        font-size: 15pt !important;
        font-weight: bold !important;
    }
    /* Canvases styling for print */
    .bio-canvas-grid {
        display: flex !important;
        justify-content: space-around !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
        page-break-inside: avoid !important;
    }
    .bio-canvas-card {
        background: none !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
        padding: 0.5rem !important;
        width: 130px !important;
        border-radius: 0.35rem !important;
    }
    .bio-canvas-card canvas {
        filter: invert(1) hue-rotate(180deg) !important; /* Make canvas print clean on white background */
    }
    .matcher-panel {
        display: grid !important;
        grid-template-columns: 1.2fr 1fr !important;
        gap: 1.5rem !important;
        margin-top: 1.5rem !important;
        page-break-inside: avoid !important;
    }
    #canvas-overlay {
        border: 1px solid #cbd5e1 !important;
    }
    .score-container {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
    }
    #bio-serialized-hex {
        border: 1px solid #cbd5e1 !important;
        background: #f8fafc !important;
        color: #0f172a !important;
        font-size: 7.5pt !important;
        page-break-inside: avoid !important;
    }
    /* Add signature lines */
    .print-signatures {
        display: flex !important;
        justify-content: space-between !important;
        margin-top: 3.5in !important;
        font-size: 10pt !important;
    }
    .signature-box {
        border-top: 1px solid #000000 !important;
        width: 200px !important;
        text-align: center !important;
        padding-top: 0.5rem !important;
    }
}

/* Custom Select Styling to override white GTK host theme */
select.text-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 0.75rem !important; /* override the 2.2rem padding for icons */
    padding-right: 2rem !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem !important;
    background-color: rgba(17, 24, 39, 0.95) !important;
    color: #fff !important;
}

select.text-input option {
    background-color: #111827 !important;
    color: #fff !important;
}

