:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --danger: #ef4444;
    --success: #10b981;
    --text: #0f172a;
    --text-muted: #475569;
    --background: #ffffff;
    --glass: rgba(255, 255, 255, 0.98);
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --background: #0f172a;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.9);
    --border: rgba(148, 163, 184, 0.3);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Container */
.header-container {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.header-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Container */
.tool-container {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.input-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.dark-input {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 1rem;
}

.dark-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.scan-btn {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.scan-btn:hover {
    background: var(--primary-hover);
}

/* Results Container */
.results-container {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.results-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.result-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.status-item {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
}

[data-theme="dark"] .status-item {
    background: rgba(255, 255, 255, 0.05);
}

.secure {
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.vulnerable {
    border-left: 4px solid var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .header-container,
    .tool-container,
    .results-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        position: static;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .header-icon {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}