/* ============================================
   Password Strength Simulator - Dark Terminal Theme
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
    background: #1e1e1e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #d4d4d4;
}

/* Main Container - Terminal Window Style */
.container {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    width: 100%;
    padding: 0;
    animation: fadeIn 0.4s ease-in;
    overflow: hidden;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal Header Bar */
.terminal-header {
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    font-size: 0.9rem;
    color: #858585;
    font-weight: normal;
}

/* Header Section */
header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #3e3e42;
}

h1 {
    font-size: 1.8rem;
    color: #4ec9b0;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: #858585;
    font-weight: 400;
}

/* Input Section - Terminal Input Style */
.input-section {
    padding: 25px 30px;
    border-bottom: 1px solid #3e3e42;
}

.input-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #569cd6;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#password-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
    background: #1e1e1e;
    color: #d4d4d4;
    letter-spacing: 1px;
}

#password-input:focus {
    border-color: #4ec9b0;
    background: #1e1e1e;
    box-shadow: 0 0 0 2px rgba(78, 201, 176, 0.2);
}

#password-input::placeholder {
    color: #6a6a6a;
}

/* Results Section - Terminal Output Style */
.results-section {
    padding: 25px 30px;
    background: #1e1e1e;
    border-bottom: 1px solid #3e3e42;
}

/* Strength Indicator Bar */
.strength-indicator {
    width: 100%;
    height: 6px;
    background: #2d2d30;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #3e3e42;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.4s ease;
    background: #3e3e42;
}

/* Strength Colors - Terminal Style */
.strength-bar.weak {
    background: #f48771;
    width: 25%;
    box-shadow: 0 0 8px rgba(244, 135, 113, 0.5);
}

.strength-bar.medium {
    background: #dcdcaa;
    width: 50%;
    box-shadow: 0 0 8px rgba(220, 220, 170, 0.5);
}

.strength-bar.strong {
    background: #4ec9b0;
    width: 75%;
    box-shadow: 0 0 8px rgba(78, 201, 176, 0.5);
}

.strength-bar.very-strong {
    background: #569cd6;
    width: 100%;
    box-shadow: 0 0 8px rgba(86, 156, 214, 0.5);
}

/* Strength Text */
.strength-text {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding: 12px;
    background: #2d2d30;
    border-radius: 4px;
    border: 1px solid #3e3e42;
}

.strength-label {
    font-weight: 600;
    color: #858585;
    margin-right: 10px;
}

.strength-value {
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: 'Courier New', monospace;
}

.strength-value.weak {
    color: #f48771;
}

.strength-value.medium {
    color: #dcdcaa;
}

.strength-value.strong {
    color: #4ec9b0;
}

.strength-value.very-strong {
    color: #569cd6;
}

/* Cracking Time - Terminal Output Box */
.cracking-time {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #2d2d30;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid #3e3e42;
    font-family: 'Courier New', monospace;
}

.time-label {
    font-weight: 600;
    color: #858585;
    margin-right: 10px;
}

.time-value {
    font-weight: 600;
    color: #d4d4d4;
}

/* Weakness Section */
.weakness-section {
    margin-top: 20px;
}

.weakness-section h3 {
    font-size: 0.9rem;
    color: #569cd6;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weakness-list {
    list-style: none;
}

.requirement-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #2d2d30;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #3e3e42;
    font-family: 'Courier New', monospace;
}

.requirement-item.met {
    background: #1e3a1e;
    border-color: #4ec9b0;
}

.requirement-item.met .check-icon {
    color: #4ec9b0;
}

.check-icon {
    font-size: 1rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-family: sans-serif;
}

.requirement-item.met .check-icon {
    transform: scale(1.1);
}

/* Button Section - Terminal Style */
.button-section {
    display: flex;
    gap: 12px;
    padding: 25px 30px;
    background: #1e1e1e;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 180px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2d2d30;
    color: #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: #3e3e42;
    border-color: #4ec9b0;
    color: #4ec9b0;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
    background: #252526;
}

.generate-btn:hover {
    border-color: #569cd6;
    color: #569cd6;
}

.copy-btn:hover {
    border-color: #4ec9b0;
    color: #4ec9b0;
}

.copy-btn.copied {
    background: #1e3a1e;
    border-color: #4ec9b0;
    color: #4ec9b0;
    animation: pulse 0.4s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    header {
        padding: 25px 20px 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .input-section,
    .results-section,
    .button-section {
        padding: 20px;
    }

    #password-input {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .strength-text {
        font-size: 1rem;
    }

    .cracking-time {
        font-size: 0.85rem;
    }

    .button-section {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        min-width: unset;
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .container {
        border-radius: 4px;
    }

    .requirement-item {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .terminal-header {
        padding: 10px 15px;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
