﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: #0a0a0a;
    color: #0f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Efek matrix di background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #0f0;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.subtitle {
    color: #8f8;
    font-size: 1.2rem;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%;

{
    opacity: 1;
}

51%, 100% {
    opacity: 0.3;
}

}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .main-content;

{
    flex-direction: row;
}

}

.panel {
    background-color: rgba(0, 20, 0, 0.7);
    border: 1px solid #0f0;
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    flex: 1;
}

.input-panel {
    flex: 1;
}

.result-panel {
    flex: 1;
}

.panel-title {
    color: #0f0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #0f0;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #8f8;
}

input, select {
    width: 100%;
    padding: 12px;
    background-color: #111;
    border: 1px solid #0a0;
    color: #0f0;
    border-radius: 3px;
    font-size: 1rem;
}

    input:focus, select:focus {
        outline: none;
        border-color: #0f0;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    }

button {
    background-color: #0a0;
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

    button:hover {
        background-color: #0f0;
        box-shadow: 0 0 15px #0f0;
    }

.result-container {
    padding: 20px;
    background-color: #111;
    border-radius: 3px;
    margin-top: 20px;
    min-height: 150px;
    border: 1px solid #0a0;
}

.password-display {
    font-size: 1.8rem;
    word-break: break-all;
    text-align: center;
    padding: 20px;
    color: #0f0;
    background-color: #000;
    border-radius: 3px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border: 1px dashed #0a0;
}

.password-strength {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.strength-bar {
    height: 10px;
    flex: 1;
    background-color: #111;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #f00;
    transition: width 0.5s;
}

.hint {
    color: #8f8;
    font-size: 0.9rem;
    margin-top: 5px;
}

.hacking-animation {
    text-align: center;
    padding: 10px;
    display: none;
}

    .hacking-animation.active {
        display: block;
    }

.hacking-text {
    color: #0f0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #0f0;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.status-log {
    background-color: #111;
    border: 1px solid #0a0;
    border-radius: 3px;
    padding: 15px;
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.log-entry {
    color: #8f8;
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #222;
}

    .log-entry:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #0a0;
    color: #8f8;
    font-size: 0.9rem;
}

/* Efek terminal */
.terminal {
    position: relative;
}

    .terminal::before {
        content: ">_";
        position: absolute;
        top: -12px;
        left: 10px;
        background-color: #0a0a0a;
        padding: 0 10px;
        color: #0f0;
        font-size: 1.2rem;
    }

/* Responsif untuk mobile */
@media (max-width: 767px) {
    .logo {
        font-size: 1.8rem;
    }

    .panel {
        padding: 15px;
    }

    .password-display {
        font-size: 1.4rem;
        padding: 15px;
    }

    .password-strength {
        flex-direction: column;
    }

    .strength-bar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/*Loading Bar*/

.loading-bar {
    width: 100%;
    height: 12px;
    background: #111;
    border: 1px solid #0a0;
    margin-top: 15px;
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
    transition: width 0.2s linear;
}
