/* =================== Body & Card =================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2b2b2b;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 360px;
    height: auto;
}

.card {
    width: 340px;
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =================== Top: Title & Message =================== */
.top h1 {
    font-size: 20px;
    margin: 0;
}

#head {
    color: #10b981;
}

#message {
    font-size: 14px;
    color: #a0e5f8;
    margin-top: 4px;
}

/* =================== Input & Generate Button =================== */
#passwordLength {
    width: 80px;
    padding: 6px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    margin-right: 10px;
    overflow: hidden;
}

#generateBtn {
    font-size: 14px;
    padding: 6px 12px;
    background-color: #0a6d19;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

/* =================== Password Display =================== */
#passwords {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.first, .second {
    display: flex;
    align-items: center;
    gap: 8px;
}

#firstPassword, #secondPassword {
    flex: 1;
    background-color: #0e0e0e;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    word-break: none;
    min-height: 24px;
    overflow: scroll;
    scrollbar-width: none; /* Firefox */
}

/* =================== Copy Buttons =================== */
button img {
    height: 20px;
    width: 20px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}


#copyBtn1, #copyBtn2 {
    background-color: transparent;
    border: none;               
    padding: 0;
    margin: 0;
    cursor: pointer;
}


/* =================== Alert =================== */
.alert-section {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.alert {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.alert.show {
    opacity: 1;
    pointer-events: auto;
}
