/* --------------------------------------------------- */
/* --- STANDALONE STYLES FOR PASSWORD GENERATOR --- */
/* --------------------------------------------------- */

/* Fonts Definition */
@font-face {
    font-family: 'Poppins';
    src: url('https://www.precitools-it.com/2025-fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('https://www.precitools-it.com/2025-fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('https://www.precitools-it.com/2025-fonts/Poppins-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    font-synthesis: weight;
}

/* Global Resets & Base Typography */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    overflow-wrap: anywhere;
    background-color: #ffffff;
    color: #333;
}

b, strong {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-synthesis: weight;
}

/* Layout & Containers */
.textdiv {
    /* padding: 20px 15px 10px 15px; */
	padding: 0px;
    margin: 10px 5px 10px 5px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.text {
    flex: 1;
    width: 100%;
}

.texting a:visited, .texting a:link {
    color: #1c3ba5;
    text-decoration: none;
}

/* Title Styling */
.blue-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: white;
    background-color: #1c3ba5;
    display: inline-block;
    padding: 0.8rem 1.6rem;
    text-align: center;
    border-radius: 0px;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .blue-title {
        font-size: 2rem;
        padding: 0.6rem 1.2rem;
    }
}
@media (max-width: 480px) {
    .blue-title {
        font-size: 1.6rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Calculator / Generator Base Styling */
.calculator { 
    width: 100%;
    max-width: 650px; 
    background: #fff; 
    border-radius: 10px; 
    margin: 0 auto;
    padding: 10px 0; /* Padding inside the wrapper */
}

/* Inputs, Labels & Buttons */
label { 
    display: block; 
    margin-top: 5px; 
    font-weight: bold; 
    color: #1c3ba5; 
}

input, select, button {
    font-family: 'Poppins', Arial, sans-serif; 
}

input[type="text"], input[type="number"] { 
    width: 100%; 
    padding: 10px; 
    margin-top: 5px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    font-size: 16px; 
    box-sizing: border-box; 
    transition: background-color 0.3s, border-color 0.3s; 
}

input[type="text"]:hover, input[type="number"]:hover {
    background-color: #eef4f9; 
    border-color: #1c3ba5; 
}

input[type="text"]:focus, input[type="number"]:focus {
    background-color: #eef4f9; 
    border-color: #1c3ba5; 
    outline: none; 
}

button { 
    margin-top: 20px; 
    padding: 10px 20px; 
    font-size: 16px; 
    border-radius: 5px; 
    border: none; 
    background: #5e7adb; 
    color: #fff; 
    cursor: pointer; 
    font-weight: 600;
    transition: background 0.3s;
}

button:hover { 
    background: #1c3ba5; 
}

/* Error Messages */
.error { 
    color: red; 
    font-weight: bold; 
    margin-top: 15px; 
    text-align: center;
    min-height: 20px;
}

/* Specific Generator Elements */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #eef4f9;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
}

.checkbox-group:hover {
    border-color: #1c3ba5;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #1c3ba5;
}

.checkbox-group label {
    margin-top: 0;
    cursor: pointer;
    user-select: none;
    flex-grow: 1;
    font-weight: 500;
    color: #333;
}

.symbols-group {
    flex-wrap: wrap;
}

.min-symbols-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.min-symbols-container label {
    margin-right: 8px;
    margin-top: 0;
    font-size: 14px;
    color: #1c3ba5;
}

.min-symbols-container input[type="number"] {
    width: 65px;
    margin-top: 0;
    padding: 6px;
    text-align: center;
    font-weight: 600;
    color: #1c3ba5;
}

.min-symbols-container input[type="number"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f7f7f7;
}

.generate-btn {
    width: 100%;
    font-size: 18px;
    padding: 14px;
    margin-top: 25px;
}

/* Result Section */
.output { 
    background: #eef4f9; 
    padding: 15px; 
    margin-top: 5px; 
    border-radius: 5px; 
    border: 1px solid #ccc;
}

.result-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-container input[type="text"] {
    flex-grow: 1;
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1c3ba5;
    background: #fff;
    letter-spacing: 1px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 12px;
}

.result-container input[type="text"]:focus {
    background: #fff;
}

.result-container .copy-btn {
    margin-top: 0;
    background: #1c3ba5;
    padding: 12px 20px;
    white-space: nowrap;
}

.result-container .copy-btn:hover {
    background: #5e7adb;
}