/* ============================================================================
   tool-input.css - SHARED tool-page layout (the "standard tool" look)
   ============================================================================
   Loaded by:  Every tool page (text-tools/, text-cleaner/, text-format/,
               number-tools/, webdev-tools/) and blog.php.
   Purpose:    The common tool UI: .input-container card, textarea, green
               buttons (.button-style, button, .btn), .btn-padding, .input,
               .download, .text-success-bold + responsive rules.
   Load order: This is the BASE for tool pages. Category/tool files
               (number-tool.css, sort-text.css, ...) are loaded AFTER it and
               intentionally override some selectors (textarea height,
               .input-container width, etc.).
   PLANNING A NEW TOOL:
     1. Most tools need NOTHING beyond this file + templatemo.css.
     2. If a genuinely new pattern is needed, add a class here (scoped, e.g.
        .my-tool ...) so it is shared - do NOT create a per-tool CSS file.
     3. Only create a new file when a whole group of tools (a category or a
        shared UI pattern) needs distinct styling.
   ============================================================================ */

.input-container {
	margin: 14px auto;
	width: 82%;
	background-color: #fff;
	padding: 15px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
}

.button-style{
    display: inline-block;
	background-color: #168332;
	color: white;
	padding: 10px 12px;
	font-weight: 400;
	text-decoration: none;
	border: 2px solid #59ab6e9c;
	border-radius: 6px;
	cursor: pointer;
	margin-right: 5px;
}

.button-change-case{
	margin: 0px 2px 9px 4px;
}

.button-style:hover {
	background-color: #159937;
	color: white;
}

textarea {
	width: 99%;
	height: 260px;
	padding: 10px;
	font-size: 16px;
	font-family: system-ui, -apple-system, "Segoe UI", "Cambria Math", "STIX Two Math", sans-serif;
	border: none;
	border-radius: 5px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	margin: 10px 0 10px 0;
}

textarea:focus{
	border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25)
}

.form-control-output {
    background-color: #f9f8f8;
}

/* ZigZag Text Maker - output must be monospace so the wave aligns */
.zigzag-output {
    font-family: "Courier New", Courier, monospace;
    white-space: pre;
    overflow-x: auto;
}

/* Green button */
button{
	background-color: #168332;
	color: #fff;
	padding: 10px 12px;
	font-size: 15px;
	border: 2px solid #59ab6e9c;
	border-radius: 6px;
	cursor: pointer;
	margin-right: 5px;
}

/* Styling Bootstrap default Buttons */
.btn{
	border-radius: 6px;
}

button:hover {
	background-color: #159937;
}

button:active, button:focus {
	border-color: #303631;
	background-color: #159937;
}

.btn-padding {
	padding: 10px;
}

.input {
    font-size: 15px !important;
    font-weight: 300 !important;
}

.download {
	text-align: center;
	margin-top: 15px;
}

.result-message {
	text-align: center;
}

/* Bold green lead-in label used on section headings across tool pages */
.text-success-bold {
	color: #0f5c23;
	font-weight: bold;
}

.icon-design {
	margin-left: 15px;
	font-size: 1.05em;
}

/* Random Password Generator (webdev-tools/random-password-generator.php) and
   random-generators/ pages (random-number-generator.php, random-email-generator.php,
   filler-text-generator.php), which reuse the same .pg-* settings layout */
.pg-option {
	margin: 12px 0;
	text-align: left;
}

.pg-option label {
	font-weight: 500;
}

/* Random Number Generator (random-generators/random-number-generator.php):
   Min and Max fields side by side on desktop, stacked on small screens */
.pg-minmax-row {
	display: flex;
	align-items: center;
	gap: 24px;
}

.pg-minmax-row .pg-option {
	flex: 1;
	margin: 12px 0 0 0;
}

@media only screen and (max-width: 600px){
	.pg-minmax-row {
		flex-direction: column;
		gap: 0;
	}
	.pg-minmax-row .pg-option {
		margin: 12px 0;
	}
}

.pg-length-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pg-length-row label {
	margin-bottom: 0;
	white-space: nowrap;
}

.pg-range {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.pg-col-label {
	color: #198754;
	display: inline-block;
}

.pg-settings {
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	background-color: #f9f9f9;
	height: 330px;
	padding: 12px 15px;
	margin: 10px 0 10px 0;
	overflow-y: auto;
}

.pg-settings-actions {
	text-align: right;
	margin-top: 10px;
}

.pg-length-range {
	color: #6c757d;
	font-size: 14px;
	white-space: nowrap;
}

.pg-length-value {
	color: #168332;
	font-weight: 700;
}

.pg-count {
	width: 90px;
	display: inline-block;
	margin-left: 6px;
}

.pg-options {
	text-align: left;
	margin: 12px 0;
}

.pg-check {
	display: block;
	margin: 4px 0;
}

.pg-check input {
	margin-right: 5px;
}

.pg-output {
	font-family: Consolas, Menlo, monospace;
	height: 330px;
}

.pg-actions {
	text-align: right;
	margin-top: 10px;
}

.pg-strength {
	text-align: center;
	margin-top: 15px;
}

.pg-strength-label {
	font-weight: 700;
}

.pg-strength-score {
	color: #6c757d;
	font-weight: 500;
}

.pg-meter {
	background-color: #e9ecef;
	border-radius: 4px;
	height: 10px;
	margin: 8px auto 0;
	max-width: 360px;
	overflow: hidden;
}

.pg-meter-fill {
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.pg-crack {
	margin-top: 10px;
	font-size: 15px;
}

.pg-crack-note {
	font-size: 14px;
	color: #6c757d;
}

/* Grouped configuration options (text-tools/split-text.php) */
.config-group {
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #f9f9f9;
    padding: 12px 15px;
    margin: 0 0 12px 0;
    height: 100%;
    text-align: left;
}

/* Add Line Breaks tool: make the settings cards clearly distinct from the
   pale-green tool container so they don't blend in. */
.add-line-breaks-tool .config-group {
    background-color: #edf2f7;
}

.config-group-title {
    font-weight: 700;
    color: #198754;
    margin-bottom: 10px;
}

.config-option {
    margin-bottom: 10px;
}

.config-option:last-child {
    margin-bottom: 0;
}

.config-option-radio {
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-option-radio .form-check-label {
    margin-bottom: 0;
}

.config-field {
    margin: 4px 0 0 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.config-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.config-row label {
    margin-bottom: 0;
}

.config-option .form-control {
    display: inline-block;
    width: 110px;
}

 .config-hint {
     font-size: 13px;
     color: #6c757d;
 }

 /* Dropdown caret for <select> controls inside settings cards, so they read
    as dropdowns (not text boxes). Applies to the username generator and the
    add-line-numbers tool, which both render selects via .config-option. */
 .config-option select.form-control,
 .config-group select.form-control {
     appearance: none;
     -webkit-appearance: none;
     -moz-appearance: none;
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
     background-repeat: no-repeat;
     background-position: right 0.6rem center;
     background-size: 16px 12px;
     padding-right: 2rem;
 }

 /* Example blocks (tool "Examples" sections) */
.example-block {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
}

.example-block-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #198754;
    margin-bottom: 4px;
}

.example-label {
    font-size: 13px;
    color: #6c757d;
}

.example-preview pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 6px 0 0 0;
    font-size: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.use-example {
    margin-top: 10px;
}

/* Text Case Converter "Basic Examples" - reference-style stacked blocks (label + sample box).
   Scoped to .basic-examples-grid so other .example-block pages stay unchanged. */
.basic-examples-grid {
    margin: 6px 0 8px;
}

.basic-examples-grid .example-block {
    margin-bottom: 18px;
}

.basic-examples-grid .example-block-title {
    font-size: 1rem;
}

@media only screen and (max-width: 600px){
	.input-container {width: 96%;}
	.btn-padding{padding:9px;}
	button {font-size:14px; padding:7px;}
}

@media only screen and (max-width: 1300px){
	.btn {vertical-align: bottom;}
	button {margin-bottom:10px;}
}

/* ============================================================================
   Word Frequency Finder (text-tools/word-frequency-finder.php)
   Shared stat panels (input + output): same card design, green figures.
   ============================================================================ */
.wf-mode-option {
	display: inline-block;
	margin-right: 16px;
}

.wf-ignore {
	width: 100%;
	height: 70px;
	font-size: 14px;
	margin-top: 4px;
	resize: vertical;
}

.wf-stats-panel {
	background-color: #59ab6e2e;
	border: 1px solid #59ab6e6e;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 8px;
}

.wf-stats-panel h5 {
	margin: 0 0 8px;
	color: #0f5c23;
}

.wf-stats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.wf-stat {
	flex: 1 1 100px;
}

.wf-stat .wf-stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: #168332;
	line-height: 1.1;
}

.wf-stat .wf-stat-label {
	font-size: 0.82rem;
	color: #555;
	display: block;
}

.wf-output {
	font-family: Consolas, Menlo, monospace;
	font-size: 14px;
}
