/* Custom styles for PDF Password Cracker */

/* Upload area styling */
.border-dashed {
    border-style: dashed !important;
}

#upload-area {
    transition: background-color 0.3s;
    cursor: pointer;
}

#upload-area:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Progress bar customization */
.progress-bar {
    transition: width 0.5s ease;
}

/* File display enhancements */
#file-info {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    padding: 10px;
}

/* Dictionary textarea */
#dictionary-words {
    font-family: monospace;
    resize: vertical;
}

/* Card hover effect */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button hover animations */
.btn {
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Hacker animation */
.hacker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    position: relative;
    height: 200px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Hacker code background */
.code-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 255, 0, 0.8);
    line-height: 1.3;
    text-shadow: 0 0 2px #0f0;
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.8);
}

.code-line {
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 2px;
}

.attempt-word {
    display: inline-block;
    color: rgba(255, 255, 0, 0.9);
    animation: word-highlight 0.5s;
}

@keyframes word-highlight {
    0% {
        opacity: 1;
        color: #fff;
        text-shadow: 0 0 10px #fff;
    }
    100% {
        opacity: 0.9;
        color: rgba(255, 255, 0, 0.9);
        text-shadow: 0 0 2px #ff0;
    }
}

.hacker-image {
    width: 150px;
    height: 150px;
    background-image: url('../images/hacker.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.7));
    animation: hacker-glow 2s infinite alternate;
}

@keyframes hacker-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.7));
    }
}
