:root {
    --bg-color: #1F2937;
    --card-bg: #273549;
    --accent: #10b981;
    --text-main: #FFFFFF;
    --text-dim: #D1D5DB;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif, system-ui;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.highlight{
    color: var(--accent);
}

.subtitle{
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.settings {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.8rem; 
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

input, textarea {
    background: #111827;
    border: 1px solid #4B5563;
    color: white;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
}

textarea {
    height: 60px;
    resize: vertical;
    font-family: monospace;
}

button {
    background-color: var(--accent);
    color: white;
    border: none;  
    padding: 1rem 1.5rem;
    font-weight: bold;
    border-radius: 6px;
    cursor:pointer;
    width: 100%;
    font-size: 1rem;
    transition: transform 0.1s;
}

button:active {
    transform: scale(0.98);
}

hr {
    border: 0.5px solid #4B5562;
    margin: 1.5rem 0;
}

.output-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.password-box {
    background: #111827;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: var(--accent);
    cursor: pointer;
    font-family: monospace;
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    border:1px solid transparent;
    transition: 0.2s;
}

.password-box:hover{
    border-color: var(--accent);
}

/* toast notification */
#copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* added for password strength indication */
.strength-wrapper {
    margin-bottom: 1.5rem;
}

.strength-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.strength-bar-bg {
    background: #111827;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

#strength-bar-fill {
    height: 100%;
    width: 0%; /* Initial width */
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* Combined ID and Class for higher specificity */
#strength-bar-fill.weak { background-color: #EF4444; width: 25%; }
#strength-bar-fill.fair { background-color: #F59E0B; width: 50%; }
#strength-bar-fill.good { background-color: #3B82F6; width: 75%; }
#strength-bar-fill.strong { background-color: #10B981; width: 100%; }