/* ===============================================
   PASSWORD GENERATOR - USING MODERNTOOLS UNIFIED THEME
   =============================================== */

/* Use modern tools color scheme */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --accent-color: #8B5CF6;
    --text-color: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #6B7280;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-base: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Password Generator specific colors */
    --password-primary: #3B82F6;
    --password-primary-hover: #2563EB;
    --password-secondary: #F3F4F6;
    --password-success: #10B981;
    --password-warning: #F59E0B;
    --password-error: #EF4444;
    --password-weak: #EF4444;
    --password-medium: #F59E0B;
    --password-strong: #10B981;
      /* Component Variables */
    --card-background: var(--bg-primary, #FFFFFF);
    --background-color: var(--bg-primary, #FFFFFF);
    --background-light: var(--bg-secondary, #F9FAFB);
    --border-light: var(--bg-tertiary, #F3F4F6);
    --surface-color: var(--bg-secondary, #F9FAFB);
    
    /* Gradients */
    --password-gradient: linear-gradient(135deg, var(--password-primary) 0%, #6366F1 100%);
    --strength-gradient-weak: linear-gradient(90deg, var(--password-weak) 0%, #FCA5A5 100%);
    --strength-gradient-medium: linear-gradient(90deg, var(--password-warning) 0%, #FCD34D 100%);
    --strength-gradient-strong: linear-gradient(90deg, var(--password-success) 0%, #34D399 100%);
    
    /* Aliases for compatibility */
    --brand-primary: var(--primary-color);
    --brand-secondary: var(--secondary-color);
    --text-primary: var(--text-color);
}

/* Dark theme using exact same colors as percentage calculator */
[data-theme="dark"] {
    --text-color: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    
    --card-background: var(--bg-primary, #111827);
    --background-color: var(--bg-primary, #111827);
    --background-light: var(--bg-secondary, #1F2937);
    --border-light: var(--bg-tertiary, #374151);
    --surface-color: var(--bg-secondary, #1F2937);
    
    /* Aliases for compatibility */
    --brand-primary: var(--primary-color);
    --brand-secondary: var(--secondary-color);
    --text-primary: var(--text-color);
}

/* Theme-aware background support */
body {
    background: var(--bg-primary);
}

/* Dark theme override for body */
[data-theme="dark"] body {
    background: var(--bg-primary);
}

/* Main Layout */
.main-content {
    min-height: 100vh;
}

/* ===============================================
   CALCULATOR SPECIFIC STYLES
   =============================================== */

/* Calculator Main Section */
.calculator-main {
    background: var(--bg-primary);
    padding: 0 0 100px;
    position: relative;
}

/* Dark theme override for main background */
[data-theme="dark"] .calculator-main {
    background: var(--bg-primary);
}

/* Calculator Container */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Calculator Mode Toggle */
.calculator-mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6, 1.5rem);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: var(--space-4, 1rem);
    background: var(--bg-secondary);
    padding: var(--space-4, 1rem);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .toggle-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.toggle-label.active {
    color: var(--brand-primary);
}

.mode-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--gray-200, #E5E7EB);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-300, #D1D5DB);
}

.mode-toggle.active {
    background: var(--brand-primary);
}

.mode-toggle.active .toggle-slider {
    transform: translateX(28px);
    border-color: var(--brand-primary);
}

/* Calculator Tabs */
.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-sm);
}

/* Dark theme override for calculator tabs */
[data-theme="dark"] .calculator-tabs {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--gray-100, #F3F4F6);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Dark theme overrides for tab buttons */
[data-theme="dark"] .tab-button {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .tab-button.active {
    background: var(--brand-primary);
    color: white;
}

/* Calculator Card */
.calculator-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200, #E5E7EB);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calculator-card .calculator-display {
    order: 2;
}

.calculator-card .calculator-inputs {
    order: 1;
}

.calculator-card .calculator-actions {
    order: 3;
}

[data-theme="dark"] .calculator-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================================
   HERO SECTION STYLES
   =============================================== */

.tool-hero {
    margin-top: 0;
    padding: 120px 0 80px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.1) 30%, rgba(16, 185, 129, 0.1) 70%, var(--bg-primary) 100%);
    overflow: hidden;
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: heroBackgroundPulse 8s ease-in-out infinite;
}

@keyframes heroBackgroundPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.4),
        0 0 0 10px rgba(59, 130, 246, 0.1),
        0 0 0 20px rgba(59, 130, 246, 0.05);
    position: relative;
    overflow: hidden;
}

.hero-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: conic-gradient(
        from 0deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        var(--accent-color) 50%, 
        var(--primary-color) 75%, 
        var(--secondary-color) 100%
    );
    border-radius: 50%;
    z-index: -2;
    opacity: 0.2;
}

.hero-icon i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: heroIconBounce 5s ease-in-out infinite;
    z-index: 2;
}

.hero-icon i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: slideInFromRight 0.8s ease-out 0.4s both;
}

/* Privacy Disclaimer */
.privacy-disclaimer {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem auto 0;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-disclaimer .disclaimer-icon {
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.privacy-disclaimer .disclaimer-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.privacy-disclaimer .disclaimer-subtext {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Tool Section Spacing */
.tool-section {
    padding: 4rem 0;
    position: relative;
}

.tool-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .tool-section {
        padding: 3rem 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--password-gradient);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--password-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Password Display */
.password-display-container {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-display-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-display-container:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: var(--password-primary);
    transform: translateY(-2px);
}

.password-display-container:hover::before {
    opacity: 1;
}

.password-display {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.5;
    min-height: 2em;
    padding: 1rem;
    border-radius: 12px;
    background: var(--background-light);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.password-display:focus-within {
    border-color: var(--password-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.placeholder-text {
    color: var(--text-secondary);
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    opacity: 0.7;
}

.password-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-icon {
    background: var(--password-primary);
    color: white;
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-icon:hover {
    background: var(--password-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-icon:hover::before {
    left: 100%;
}

.btn-icon:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-icon:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Strength Indicator */
.strength-indicator {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.strength-indicator:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.strength-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strength-label::before {
    content: '🛡️';
    font-size: 1rem;
}

.strength-bar {
    width: 100%;
    height: 12px;
    background: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--strength-gradient-weak);
    position: relative;
    overflow: hidden;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.strength-fill.weak {
    background: var(--strength-gradient-weak);
}

.strength-fill.medium {
    background: var(--strength-gradient-medium);
}

.strength-fill.strong {
    background: var(--strength-gradient-strong);
}

.strength-text {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.strength-text.weak {
    color: var(--password-weak);
}

.strength-text.medium {
    color: var(--password-warning);
}

.strength-text.strong {
    color: var(--password-success);
}

/* ===============================================
   CALCULATOR INPUT AND ACTION STYLES
   =============================================== */

/* Input Sections */
.calculator-inputs {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin: 0 2rem 1.5rem;
}

/* Dark theme override for calculator inputs */
[data-theme="dark"] .calculator-inputs {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-section {
    display: none;
}

.input-section.active {
    display: block;
}

/* Calculator Display Area */
.calculator-display {
    background:  black;
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Password Display Result */
.password-display-result {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.password-text {
    font-family: 'Inter', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200, #E5E7EB);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
}

.input-group input::placeholder {
    color: var(--text-tertiary);
}

/* Range Inputs */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200, #E5E7EB);
    outline: none;
    margin: 0.5rem 0;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300, #D1D5DB);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Select Inputs */
.select-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200, #E5E7EB);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
}

/* Action Buttons */
.calculator-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin: 0 2rem 2rem;
}

/* Dark theme override for calculator actions */
[data-theme="dark"] .calculator-actions {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-calculator {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-clear {
    background: var(--gray-100, #F3F4F6);
    color: var(--text-secondary);
    border: 2px solid var(--gray-200, #E5E7EB);
}

.btn-clear:hover {
    background: var(--gray-200, #E5E7EB);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-calculate {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-calculate:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Basic/Advanced Input Sections */
.basic-inputs {
    display: block;
    transition: opacity 0.2s ease;
}

.advanced-inputs {
    display: none;
    transition: opacity 0.2s ease;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200, #E5E7EB);
}

.advanced-inputs.show {
    display: block;
    animation: slideInAdvanced 0.3s ease;
}

/* Enhanced spacing for when both basic and advanced are visible */
.input-section .basic-inputs + .advanced-inputs.show {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

@keyframes slideInAdvanced {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   RESULTS AND SUMMARY STYLES
   =============================================== */

/* Results Summary */
.results-summary {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .results-summary {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100, #F3F4F6);
}

.result-items {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200, #E5E7EB);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .stat-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.125rem;
    font-family: 'Inter', monospace;
}

/* Calculation History (for bulk passwords) - Hidden, bulk passwords now show in calculator-display */
.calculation-history {
    display: none !important;
}

/* Hide separate bulk results - bulk passwords now show in calculator-display */
.bulk-results,
#bulkResults {
    display: none !important;
}

/* Bulk passwords display in calculator-display */
.bulk-passwords-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.bulk-header {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.bulk-password-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
}

.bulk-password-line:last-child {
    border-bottom: none;
}

.bulk-index {
    font-weight: 600;
    min-width: 1.5rem;
    opacity: 0.8;
}

.bulk-password {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: monospace;
}

.btn-bulk-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-bulk-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-bulk-copy i {
    font-size: 0.75rem;
}

[data-theme="dark"] .calculation-history {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculation-history h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-history {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200, #E5E7EB);
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-history:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-clear-history:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.history-items {
    display: grid;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Quick Reference - Enhanced Security Best Practices */
.quick-reference {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quick-reference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

[data-theme="dark"] .quick-reference {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.quick-reference h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    animation: slideInFromTop 0.6s ease-out 0.2s both;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-reference h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.reference-item {
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
    overflow: hidden;
}

.reference-item:nth-child(1) { animation-delay: 0.3s; }
.reference-item:nth-child(2) { animation-delay: 0.4s; }
.reference-item:nth-child(3) { animation-delay: 0.5s; }
.reference-item:nth-child(4) { animation-delay: 0.6s; }

.reference-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.reference-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reference-item h4::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1rem;
}

.reference-item:nth-child(1) h4::before {
    content: '\f132'; /* fa-shield-halved */
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.reference-item:nth-child(2) h4::before {
    content: '\f084'; /* fa-key */
    background: linear-gradient(135deg, #10B981, #047857);
}

.reference-item:nth-child(3) h4::before {
    content: '\f023'; /* fa-lock */
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.reference-item:nth-child(4) h4::before {
    content: '\f3ed'; /* fa-user-shield */
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.reference-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Security Stats */
.security-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.security-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.security-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.security-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Password Settings */
.password-settings {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
}

.password-settings:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.settings-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setting-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Range Input */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.range-input::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.range-input::-webkit-slider-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.range-input::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    border: none;
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Select Input */
.select-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--password-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-item:hover {
    background: var(--card-background);
    border-color: var(--password-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--background-color);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--password-primary);
    border-color: var(--password-primary);
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-item span:not(.checkmark) {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--password-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--password-primary);
    color: var(--password-primary);
    transform: translateY(-1px);
}

/* Password Stats */
.password-stats {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

/* Bulk Generator */
.bulk-settings {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bulk-results {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bulk-passwords-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.bulk-password-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
}

.bulk-password-line:last-child {
    border-bottom: none;
}

.bulk-index {
    font-weight: 600;
    min-width: 1.5rem;
    opacity: 0.8;
}

.bulk-password {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: monospace;
}

.btn-bulk-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-bulk-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-bulk-copy i {
    font-size: 0.75rem;
}

/* Security Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--password-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===============================================
   CALCULATOR CONTAINER STYLES
   =============================================== */

.calculator-main {
    padding: 4rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* ===============================================
   MODE TOGGLE STYLES
   =============================================== */

.calculator-mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.toggle-label.active {
    color: var(--primary-color);
}

.mode-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--border-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mode-toggle.active {
    background: var(--primary-color);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-toggle.active .toggle-slider {
    transform: translateX(28px);
}

/* ===============================================
   CALCULATOR TABS STYLES
   =============================================== */

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===============================================
   CALCULATOR CARD STYLES
   =============================================== */

.calculator-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.calculator-card .calculator-display {
    order: 2;
}

.calculator-card .calculator-inputs {
    order: 1;
}

.calculator-card .calculator-actions {
    order: 3;
}

.calculator-display {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.password-display-result {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    transition: all 0.3s ease;
}

.password-display-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--password-primary-hover, #2563EB);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.strength-indicator {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.5s ease;
    background: var(--strength-gradient-weak);
}

.strength-fill.weak {
    background: var(--strength-gradient-weak);
}

.strength-fill.medium {
    background: var(--strength-gradient-medium);
}

.strength-fill.strong {
    background: var(--strength-gradient-strong);
}

.strength-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
}

.strength-text.weak {
    color: var(--password-weak);
}

.strength-text.medium {
    color: var(--password-warning);
}

.strength-text.strong {
    color: var(--password-success);
}

/* ===============================================
   RESPONSIVE DESIGN FOR CALCULATOR
   =============================================== */

@media (max-width: 768px) {
    .calculator-main {
        padding-top: calc(80px + 1rem);
        padding-bottom: 1rem;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
      .tab-button {
        min-width: auto;
        text-align: center;
    }
    
    .calculator-inputs {
        padding: 1.5rem;
        margin: 0 1rem 1rem;
    }
    
    .calculator-display {
        padding: 1.5rem;
    }
    
    .password-display-result {
        flex-direction: column;
        gap: 1rem;
    }
    
    .password-text {
        font-size: 1.25rem;
        min-width: auto;
        text-align: center;
    }
    
    .calculator-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
        margin: 0 1rem 1.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-reference {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .results-summary,
    .calculation-history {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-inputs {
        padding: 1rem;
    }
    
    .calculator-display {
        padding: 1rem;
    }
    
    .password-text {
        font-size: 1.125rem;
    }
    
    .calculator-actions {
        padding: 0 1rem 1rem;
    }
    
    .toggle-container {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
}

/* ===============================================
   DARK MODE CALCULATOR ADJUSTMENTS
   =============================================== */

[data-theme="dark"] .calculator-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calculator-tabs {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group select {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .input-group input:focus,
[data-theme="dark"] .input-group select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--brand-primary);
}

[data-theme="dark"] .checkmark {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ===============================================
   EXISTING PASSWORD GENERATOR STYLES CONTINUE
   =============================================== */

/* Password Settings */
.password-settings {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
}

.password-settings:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.settings-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setting-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Range Input */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.range-input::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.range-input::-webkit-slider-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.range-input::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    border: none;
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Select Input */
.select-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--password-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-item:hover {
    background: var(--card-background);
    border-color: var(--password-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--background-color);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--password-primary);
    border-color: var(--password-primary);
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-item span:not(.checkmark) {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--password-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--password-primary);
    color: var(--password-primary);
    transform: translateY(-1px);
}

/* Password Stats */
.password-stats {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

/* Bulk Generator */
.bulk-settings {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bulk-results {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bulk-passwords-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.bulk-password-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
}

.bulk-password-line:last-child {
    border-bottom: none;
}

.bulk-index {
    font-weight: 600;
    min-width: 1.5rem;
    opacity: 0.8;
}

.bulk-password {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: monospace;
}

.btn-bulk-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-bulk-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-bulk-copy i {
    font-size: 0.75rem;
}

/* Security Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--password-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===============================================
   CALCULATOR CONTAINER STYLES
   =============================================== */

.calculator-main {
    padding: 4rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* ===============================================
   MODE TOGGLE STYLES
   =============================================== */

.calculator-mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.toggle-label.active {
    color: var(--primary-color);
}

.mode-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--border-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mode-toggle.active {
    background: var(--primary-color);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-toggle.active .toggle-slider {
    transform: translateX(28px);
}

/* ===============================================
   CALCULATOR TABS STYLES
   =============================================== */

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===============================================
   CALCULATOR CARD STYLES
   =============================================== */

.calculator-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.calculator-card .calculator-display {
    order: 2;
}

.calculator-card .calculator-inputs {
    order: 1;
}

.calculator-card .calculator-actions {
    order: 3;
}

.calculator-display {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.password-display-result {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    transition: all 0.3s ease;
}

.password-display-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--password-primary-hover, #2563EB);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.strength-indicator {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.5s ease;
    background: var(--strength-gradient-weak);
}

.strength-fill.weak {
    background: var(--strength-gradient-weak);
}

.strength-fill.medium {
    background: var(--strength-gradient-medium);
}

.strength-fill.strong {
    background: var(--strength-gradient-strong);
}

.strength-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
}

.strength-text.weak {
    color: var(--password-weak);
}

.strength-text.medium {
    color: var(--password-warning);
}

.strength-text.strong {
    color: var(--password-success);
}

/* ===============================================
   RESPONSIVE DESIGN FOR CALCULATOR
   =============================================== */

@media (max-width: 768px) {
    .calculator-main {
        padding-top: calc(80px + 1rem);
        padding-bottom: 1rem;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
      .tab-button {
        min-width: auto;
        text-align: center;
    }
    
    .calculator-inputs {
        padding: 1.5rem;
        margin: 0 1rem 1rem;
    }
    
    .calculator-display {
        padding: 1.5rem;
    }
    
    .password-display-result {
        flex-direction: column;
        gap: 1rem;
    }
    
    .password-text {
        font-size: 1.25rem;
        min-width: auto;
        text-align: center;
    }
    
    .calculator-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
        margin: 0 1rem 1.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-reference {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .results-summary,
    .calculation-history {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-inputs {
        padding: 1rem;
    }
    
    .calculator-display {
        padding: 1rem;
    }
    
    .password-text {
        font-size: 1.125rem;
    }
    
    .calculator-actions {
        padding: 0 1rem 1rem;
    }
    
    .toggle-container {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
}

/* ===============================================
   DARK MODE CALCULATOR ADJUSTMENTS
   =============================================== */

[data-theme="dark"] .calculator-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calculator-tabs {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group select {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .input-group input:focus,
[data-theme="dark"] .input-group select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--brand-primary);
}

[data-theme="dark"] .checkmark {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ===============================================
   EXISTING PASSWORD GENERATOR STYLES CONTINUE
   =============================================== */

/* Password Settings */
.password-settings {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
}

.password-settings:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.settings-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setting-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Range Input */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.range-input::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.range-input::-webkit-slider-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.range-input::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    border: none;
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Select Input */
.select-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--password-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-item:hover {
    background: var(--card-background);
    border-color: var(--password-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--background-color);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--password-primary);
    border-color: var(--password-primary);
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-item span:not(.checkmark) {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--password-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--password-primary);
    color: var(--password-primary);
    transform: translateY(-1px);
}

/* Password Stats */
.password-stats {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

/* Bulk Generator */
.bulk-settings {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bulk-results {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bulk-passwords-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.bulk-password-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
}

.bulk-password-line:last-child {
    border-bottom: none;
}

.bulk-index {
    font-weight: 600;
    min-width: 1.5rem;
    opacity: 0.8;
}

.bulk-password {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: monospace;
}

.btn-bulk-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-bulk-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-bulk-copy i {
    font-size: 0.75rem;
}

/* Security Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--password-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===============================================
   CALCULATOR CONTAINER STYLES
   =============================================== */

.calculator-main {
    padding: 4rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* ===============================================
   MODE TOGGLE STYLES
   =============================================== */

.calculator-mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.toggle-label.active {
    color: var(--primary-color);
}

.mode-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--border-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mode-toggle.active {
    background: var(--primary-color);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-toggle.active .toggle-slider {
    transform: translateX(28px);
}

/* ===============================================
   CALCULATOR TABS STYLES
   =============================================== */

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===============================================
   CALCULATOR CARD STYLES
   =============================================== */

.calculator-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.calculator-card .calculator-display {
    order: 2;
}

.calculator-card .calculator-inputs {
    order: 1;
}

.calculator-card .calculator-actions {
    order: 3;
}

.calculator-display {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.password-display-result {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    transition: all 0.3s ease;
}

.password-display-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--password-primary-hover, #2563EB);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.strength-indicator {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.5s ease;
    background: var(--strength-gradient-weak);
}

.strength-fill.weak {
    background: var(--strength-gradient-weak);
}

.strength-fill.medium {
    background: var(--strength-gradient-medium);
}

.strength-fill.strong {
    background: var(--strength-gradient-strong);
}

.strength-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
}

.strength-text.weak {
    color: var(--password-weak);
}

.strength-text.medium {
    color: var(--password-warning);
}

.strength-text.strong {
    color: var(--password-success);
}

/* ===============================================
   RESPONSIVE DESIGN FOR CALCULATOR
   =============================================== */

@media (max-width: 768px) {
    .calculator-main {
        padding-top: calc(80px + 1rem);
        padding-bottom: 1rem;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
      .tab-button {
        min-width: auto;
        text-align: center;
    }
    
    .calculator-inputs {
        padding: 1.5rem;
        margin: 0 1rem 1rem;
    }
    
    .calculator-display {
        padding: 1.5rem;
    }
    
    .password-display-result {
        flex-direction: column;
        gap: 1rem;
    }
    
    .password-text {
        font-size: 1.25rem;
        min-width: auto;
        text-align: center;
    }
    
    .calculator-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
        margin: 0 1rem 1.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-reference {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .results-summary,
    .calculation-history {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-inputs {
        padding: 1rem;
    }
    
    .calculator-display {
        padding: 1rem;
    }
    
    .password-text {
        font-size: 1.125rem;
    }
    
    .calculator-actions {
        padding: 0 1rem 1rem;
    }
    
    .toggle-container {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
}

/* ===============================================
   DARK MODE CALCULATOR ADJUSTMENTS
   =============================================== */

[data-theme="dark"] .calculator-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calculator-tabs {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group select {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .input-group input:focus,
[data-theme="dark"] .input-group select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--brand-primary);
}

[data-theme="dark"] .checkmark {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ===============================================
   EXISTING PASSWORD GENERATOR STYLES CONTINUE
   =============================================== */

/* Password Settings */
.password-settings {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
}

.password-settings:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.settings-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setting-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Range Input */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.range-input::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.range-input::-webkit-slider-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.range-input::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    border: none;
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Select Input */
.select-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--password-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-item:hover {
    background: var(--card-background);
    border-color: var(--password-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--background-color);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--password-primary);
    border-color: var(--password-primary);
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-item span:not(.checkmark) {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--password-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--password-primary);
    color: var(--password-primary);
    transform: translateY(-1px);
}

/* Password Stats */
.password-stats {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

/* Bulk Generator */
.bulk-settings {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bulk-results {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bulk-passwords-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.bulk-password-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
}

.bulk-password-line:last-child {
    border-bottom: none;
}

.bulk-index {
    font-weight: 600;
    min-width: 1.5rem;
    opacity: 0.8;
}

.bulk-password {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: monospace;
}

.btn-bulk-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-bulk-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-bulk-copy i {
    font-size: 0.75rem;
}

/* Security Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--password-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===============================================
   CALCULATOR CONTAINER STYLES
   =============================================== */

.calculator-main {
    padding: 4rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* ===============================================
   MODE TOGGLE STYLES
   =============================================== */

.calculator-mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.toggle-label.active {
    color: var(--primary-color);
}

.mode-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--border-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mode-toggle.active {
    background: var(--primary-color);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-toggle.active .toggle-slider {
    transform: translateX(28px);
}

/* ===============================================
   CALCULATOR TABS STYLES
   =============================================== */

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===============================================
   CALCULATOR CARD STYLES
   =============================================== */

.calculator-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.calculator-card .calculator-display {
    order: 2;
}

.calculator-card .calculator-inputs {
    order: 1;
}

.calculator-card .calculator-actions {
    order: 3;
}

.calculator-display {
    background: var(--bg-primary);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.password-display-result {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    transition: all 0.3s ease;
}

.password-display-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--password-primary-hover, #2563EB);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.strength-indicator {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.5s ease;
    background: var(--strength-gradient-weak);
}

.strength-fill.weak {
    background: var(--strength-gradient-weak);
}

.strength-fill.medium {
    background: var(--strength-gradient-medium);
}

.strength-fill.strong {
    background: var(--strength-gradient-strong);
}

.strength-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
}

.strength-text.weak {
    color: var(--password-weak);
}

.strength-text.medium {
    color: var(--password-warning);
}

.strength-text.strong {
    color: var(--password-success);
}

/* ===============================================
   RESPONSIVE DESIGN FOR CALCULATOR
   =============================================== */

@media (max-width: 768px) {
    .calculator-main {
        padding-top: calc(80px + 1rem);
        padding-bottom: 1rem;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
      .tab-button {
        min-width: auto;
        text-align: center;
    }
    
    .calculator-inputs {
        padding: 1.5rem;
        margin: 0 1rem 1rem;
    }
    
    .calculator-display {
        padding: 1.5rem;
    }
    
    .password-display-result {
        flex-direction: column;
        gap: 1rem;
    }
    
    .password-text {
        font-size: 1.25rem;
        min-width: auto;
        text-align: center;
    }
    
    .calculator-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
        margin: 0 1rem 1.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-reference {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .results-summary,
    .calculation-history {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-inputs {
        padding: 1rem;
    }
    
    .calculator-display {
        padding: 1rem;
    }
    
    .password-text {
        font-size: 1.125rem;
    }
    
    .calculator-actions {
        padding: 0 1rem 1rem;
    }
    
    .toggle-container {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
}

/* ===============================================
   DARK MODE CALCULATOR ADJUSTMENTS
   =============================================== */

[data-theme="dark"] .calculator-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calculator-tabs {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group select {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .input-group input:focus,
[data-theme="dark"] .input-group select:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--brand-primary);
}

[data-theme="dark"] .checkmark {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ===============================================
   EXISTING PASSWORD GENERATOR STYLES CONTINUE
   =============================================== */

/* Password Settings */
.password-settings {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.password-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
}

.password-settings:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.settings-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setting-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Range Input */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.range-input::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.range-input::-webkit-slider-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.range-input::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    border: none;
}

.range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--password-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
    background: var(--password-primary-hover);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Select Input */
.select-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--password-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.checkbox-item:hover {
    background: var(--card-background);
    border-color: var(--password-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--background-color);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--password-primary);
    border-color: var(--password-primary);
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-item span:not(.checkmark) {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--password-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-primary i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--password-primary);
    color: var(--password-primary);
    transform: translateY(-1px);
}

/* Password Stats */
.password-stats {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

/* Bulk Generator */
.bulk-settings {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bulk-results {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bulk-passwords-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.bulk-password-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', monospace;
}

.bulk-password-line:last-child {
    border-bottom: none;
}

.bulk-index {
    font-weight: 600;
    min-width: 1.5rem;
    opacity: 0.8;
}

.bulk-password {
    flex: 1;
    font-size: 0.9rem;
    word-break: break-all;
    font-family: monospace;
}

.btn-bulk-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-bulk-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-bulk-copy i {
    font-size: 0.75rem;
}

/* Security Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--password-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--password-primary);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--password-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}
.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}