:root {
    --bg-dark: #fff;
    --bg-black: #f4f4f5;
    --green-primary: #ff5f1f;
    --green-dim: #ee4e0e;
    --red-primary: #ef4444;
    --text-gray: #9ca3af;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base Layout */
.page-wrapper {
    background-color: var(--bg-dark);
    color: white;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    font-family: var(--font-mono);
    display: flex;
    justify-content: center;
}

.scanner-card {
    width: 100%;
    max-width: 42rem;
    border: 2px solid #333;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: var(--bg-dark);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    height: fit-content;
}

.scanner-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ee4e0e;
}

/* Input Styles */
.input-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .input-row {
        flex-direction: row;
    }
}

.terminal-input {
    flex: 1;
    background: var(--bg-black);
    border: 1px solid var(--green-dim);
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: var(--green-primary);
    outline: none;
    transition: border-color 0.2s;
}

.terminal-input::placeholder {
    color: #ee4e0e;
}

.terminal-input:focus {
    border-color: var(--green-primary);
}

/* Buttons */
.btn-scan {
    background: var(--green-dim);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-scan:hover {
    background: var(--green-primary);
}

.btn-scan:active {
    transform: scale(0.95);
}

/* Password Section */
.password-section {
    margin-top: 1rem;
    border-top: 1px solid rgba(22, 101, 52, 0.3);
    padding-top: 1rem;
}

.section-label {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.password-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    font-size: 0.75rem;
    border-color: var(--green-dim);
    color: var(--red-primary);
    padding-right: 2.5rem;
}

.password-input:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.eye-toggle {
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.eye-toggle:hover {
    color: var(--green-primary);
}

/* Strength Meter */
.strength-meter {
    width: 100%;
    height: 4px;
    background: #767667;
    margin-top: 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

.strength-label {
    font-size: 9px;
    text-transform: uppercase;
    margin-top: 0.25rem;
    color: #4b5563;
}

/* Results Area */
.hidden {
    display: none;
}

.results-container {
    margin-top: 1rem;
}

.score-display {
    text-align: center;
    padding: 1rem;
    border: 1px solid #374151;
    border-radius: 0.25rem;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
}

.breach-log {
    font-size: 0.875rem;
    color: #f87171;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.guide-box {
    background: #1f2937;
    padding: 1rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-top: 1rem;
}

.guide-title {
    color: var(--green-primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.guide-list {
    list-style: disc;
    padding-left: 1rem;
}

/* OSINT Panel */
.osint-panel {
    background: rgba(22, 101, 52, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.osint-title {
    color: var(--green-primary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.osint-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .osint-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn-osint {
    background: #333;
    border: 1px solid var(--green-dim);
    color: white;
    font-size: 10px;
    padding: 0.5rem;
    cursor: pointer;
}

.btn-osint:hover {
    background: #ff5f1f;
}

.btn-osint.warn {
    color: #fff;
}

.btn-osint.info {
    color: #fff;
}