/* === Database ID Calculator Section === */
#dbIdContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 20px auto;
}

#dbIdContainer h3 {
    color: #333;
    margin-bottom: 15px;
    align-self: center;
    font-weight: bold;
}

#dbIdContainer h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Input row (Current ID, Increment, Iterations) */
#dbIdContainer .input-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;  /* keeps them on one line */
    width: 100%;
    margin-bottom: 15px;
}

#dbIdContainer .input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

#dbIdContainer .input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

#dbIdContainer .input-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s;
}

#dbIdContainer .input-group input:focus {
    border-color: #af65d9;
    outline: none;
}

/* Buttons row */
#dbIdContainer .button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
}

#dbIdContainer button {
    background-color: #fff;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 7px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#dbIdContainer button:hover {
    background-color: #2c3e50;
    color: white;
}

/* Stats displayed in a single row */
#dbIdContainer .stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

#dbIdContainer .stats div {
    margin: 5px 10px;
    color: #333;
    font-size: 14px;
}

#dbIdContainer .stats strong {
    color: #2c3e50;
}

/* Textarea for results */
#dbIdContainer textarea {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-sizing: border-box;
}

/* Small helper text */
#dbIdContainer .info-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #dbIdContainer {
        width: 95%;
        padding: 15px;
    }
    #dbIdContainer .input-row {
        flex-direction: column;
        gap: 15px;
    }
    #dbIdContainer .stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


