/* Brute Force Password Generator - Styles */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

/* Main Container */
.bfpg-container {
    font-family: 'Share Tech Mono', monospace;
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 0;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: container-pulse 3s ease-in-out infinite;
}

@keyframes container-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 0, 0.5),
            inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 255, 0, 0.7),
            inset 0 0 30px rgba(0, 255, 0, 0.2);
    }
}

/* Scan Line Effect */
.bfpg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: scan-line 3s linear infinite;
    z-index: 1000;
    pointer-events: none;
}

@keyframes scan-line {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Header */
.bfpg-header {
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    border-bottom: 1px solid #00ff00;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bfpg-terminal-dots {
    display: flex;
    gap: 8px;
}

.bfpg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

.bfpg-dot.red {
    background: #ff5f56;
    box-shadow: 0 0 10px #ff5f56;
}

.bfpg-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 10px #ffbd2e;
    animation-delay: 0.3s;
}

.bfpg-dot.green {
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
    animation-delay: 0.6s;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.bfpg-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bfpg-version {
    font-size: 12px;
    opacity: 0.6;
    font-weight: 400;
}

/* System Status */
.bfpg-system-status {
    background: rgba(0, 255, 0, 0.03);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.bfpg-status-item {
    display: flex;
    gap: 5px;
    font-size: 11px;
}

.bfpg-status-label {
    color: rgba(0, 255, 0, 0.6);
}

.bfpg-status-value {
    color: #00ff00;
    font-weight: bold;
}

.bfpg-status-value.blink {
    animation: blink 0.5s ease-in-out 2;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Display Area */
.bfpg-display-area {
    background: #000000;
    padding: 40px 20px;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bfpg-scan-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 0, 0.3);
    transform: translateY(-50%);
    animation: scan-horizontal 2s ease-in-out infinite;
}

@keyframes scan-horizontal {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; box-shadow: 0 0 10px #00ff00; }
}

.bfpg-password-display {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #00ff00;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px #00ff00;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.bfpg-char {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    position: relative;
}

.bfpg-char.animating {
    animation: char-flicker 0.1s infinite;
    color: rgba(0, 255, 0, 0.6);
}

@keyframes char-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bfpg-char.confirmed {
    animation: none;
    color: #00ff00;
}

.bfpg-char.locking {
    animation: lock-in 0.3s ease-out;
}

@keyframes lock-in {
    0% {
        transform: scale(1.5);
        text-shadow: 0 0 30px #00ff00;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 20px #00ff00;
    }
}

.bfpg-char.reveal {
    animation: reveal-char 0.5s ease-out;
}

@keyframes reveal-char {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bfpg-cursor {
    animation: cursor-blink 1s infinite;
    font-weight: 400;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Progress Bar */
.bfpg-progress-container {
    width: 100%;
    max-width: 600px;
    height: 30px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.bfpg-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.3),
        rgba(0, 255, 0, 0.6),
        rgba(0, 255, 0, 0.3)
    );
    transition: width 0.3s ease;
    position: relative;
}

.bfpg-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bfpg-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px #000;
}

/* Analysis Section */
.bfpg-analysis {
    background: rgba(0, 255, 0, 0.03);
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    padding: 20px;
}

.bfpg-analysis-header {
    font-size: 16px;
    font-weight: bold;
    color: #00ff00;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ff00;
}

.bfpg-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bfpg-analysis-item {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 15px;
    text-align: center;
    animation: analysis-appear 0.5s ease-out;
}

@keyframes analysis-appear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bfpg-analysis-label {
    font-size: 11px;
    color: rgba(0, 255, 0, 0.6);
    margin-bottom: 5px;
}

.bfpg-analysis-value {
    font-size: 18px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.bfpg-analysis-value.weak {
    color: #ff5555;
    text-shadow: 0 0 10px #ff5555;
}

.bfpg-analysis-value.moderate {
    color: #ffaa00;
    text-shadow: 0 0 10px #ffaa00;
}

.bfpg-analysis-value.strong {
    color: #55ff55;
    text-shadow: 0 0 10px #55ff55;
}

.bfpg-analysis-value.maximum {
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    animation: maximum-glow 1s ease-in-out infinite;
}

@keyframes maximum-glow {
    0%, 100% { text-shadow: 0 0 15px #00ff00; }
    50% { text-shadow: 0 0 25px #00ff00, 0 0 35px #00ff00; }
}

.bfpg-analysis-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.bfpg-detail-row {
    color: #00ff00;
    font-size: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bfpg-check {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

/* Controls */
.bfpg-controls {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.bfpg-control-group {
    margin-bottom: 20px;
}

.bfpg-label {
    display: block;
    color: #00ff00;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #00ff00;
}

.bfpg-slider {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.bfpg-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff00;
}

.bfpg-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff00;
    border: none;
}

.bfpg-length-display {
    display: inline-block;
    margin-left: 10px;
    color: #00ff00;
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.bfpg-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bfpg-checkbox-label {
    display: flex;
    align-items: center;
    color: #00ff00;
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.bfpg-checkbox-label:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
}

.bfpg-checkbox-label input[type="checkbox"] {
    display: none;
}

.bfpg-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #00ff00;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.bfpg-checkbox-label input[type="checkbox"]:checked + .bfpg-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-size: 14px;
    font-weight: bold;
}

/* Buttons */
.bfpg-actions {
    padding: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.bfpg-btn {
    font-family: 'Orbitron', monospace;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bfpg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
    transition: left 0.5s;
}

.bfpg-btn:hover::before {
    left: 100%;
}

.bfpg-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 10px #00ff00;
}

.bfpg-btn:active {
    transform: scale(0.98);
}

.bfpg-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.bfpg-btn-primary {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.bfpg-btn.success {
    background: rgba(0, 255, 0, 0.3);
    animation: success-pulse 0.5s ease-out;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 0, 0.8); }
    100% { transform: scale(1); }
}

/* Console */
.bfpg-console {
    background: #000000;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.bfpg-console-header {
    background: rgba(0, 255, 0, 0.05);
    padding: 10px 20px;
    color: #00ff00;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.bfpg-console-content {
    padding: 15px 20px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 11px;
}

.bfpg-console-line {
    color: rgba(0, 255, 0, 0.8);
    margin-bottom: 5px;
    animation: console-line-appear 0.3s ease-out;
}

@keyframes console-line-appear {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.bfpg-console-line.error {
    color: #ff5555;
}

.bfpg-console-line.warning {
    color: #ffaa00;
}

.bfpg-console-line.success {
    color: #00ff00;
    font-weight: bold;
}

/* Footer */
.bfpg-footer {
    background: linear-gradient(to top, #1a1a1a, #000000);
    border-top: 1px solid #00ff00;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.bfpg-footer-item {
    color: rgba(0, 255, 0, 0.7);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Notification */
.bfpg-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: bold;
    z-index: 100000;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    transition: right 0.3s ease-out;
}

.bfpg-notification.show {
    right: 20px;
}

/* Scrollbar */
.bfpg-console-content::-webkit-scrollbar {
    width: 8px;
}

.bfpg-console-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.bfpg-console-content::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.bfpg-console-content::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* Responsive */
@media (max-width: 768px) {
    .bfpg-password-display {
        font-size: 20px;
        gap: 2px;
        letter-spacing: 1px;
    }
    
    .bfpg-analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .bfpg-options-grid {
        grid-template-columns: 1fr;
    }
    
    .bfpg-actions {
        flex-direction: column;
    }
    
    .bfpg-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bfpg-system-status {
        flex-direction: column;
        gap: 5px;
    }
    
    .bfpg-footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* Theme variations */
.bfpg-container[data-theme="cyber-red"] {
    border-color: #ff0000;
}

.bfpg-container[data-theme="cyber-red"] * {
    color: #ff0000 !important;
    border-color: #ff0000 !important;
}

.bfpg-container[data-theme="neon-blue"] {
    border-color: #00ffff;
}

.bfpg-container[data-theme="neon-blue"] * {
    color: #00ffff !important;
    border-color: #00ffff !important;
}

/* Matrix Rain Easter Egg */
.bfpg-container.matrix-rain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    animation: matrix-rain-fall 0.5s linear infinite;
    pointer-events: none;
    z-index: 1001;
}

@keyframes matrix-rain-fall {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.bfpg-icon {
    display: inline-block;
}
