/* Generatori (brojac, sat, vreme) - zamena za Flash */

.gen {
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	padding: 18px 18px 6px;
	margin: 0 0 30px;
	text-align: left;
	line-height: 20px;
	font-size: 13px;
}

.gen-preview {
	background: #f3f3f3;
	border: 1px dashed #ccc;
	border-radius: 8px;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	margin-bottom: 16px;
}

.gen fieldset {
	border: 0;
	margin: 0 0 14px;
	padding: 0;
}

.gen legend,
.gen .gen-label {
	display: block;
	font-weight: bold;
	font-size: 13px;
	color: #38151b;
	margin-bottom: 6px;
	padding: 0;
}

.gen-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	margin-bottom: 12px;
}

.gen-row > label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.gen input[type=text],
.gen input[type=number],
.gen select {
	font: 13px Arial, Helvetica, sans-serif;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
}

.gen input[type=text] { width: 230px; }
.gen input[type=number] { width: 90px; }
.gen input[type=range] { width: 170px; vertical-align: middle; }
.gen input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid #bbb; border-radius: 4px; background: none; cursor: pointer; }

.gen-colors {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
	gap: 8px 12px;
	margin-bottom: 12px;
}

.gen-colors label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.gen-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.gen-btn,
section#counter-section article .gen-btn {
	display: inline-block;
	background: #E97A0F;
	color: #fff;
	border: 0;
	border-bottom: 2px solid #B75315;
	border-radius: 6px;
	padding: 7px 14px;
	font: bold 13px Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 0 #B75315;
	text-decoration: none;
	cursor: pointer;
	line-height: 18px;
}

.gen-btn:hover { background: #EF9D16; }

.gen-btn.gen-btn-light,
section#counter-section article .gen-btn.gen-btn-light {
	background: #eee;
	color: #333;
	border-bottom-color: #bbb;
	text-shadow: none;
	font-weight: normal;
	padding: 5px 10px;
}

section#counter-section article .gen-btn.gen-btn-light:hover,
.gen-btn.gen-btn-light:hover { background: #e2e2e2; }

.gen-btn.gen-big {
	font-size: 16px;
	padding: 11px 26px;
}

.gen-code {
	margin: 4px 0 16px;
}

.gen-code textarea {
	box-sizing: border-box;
	width: 100%;
	height: 130px;
	font: 11px/1.45 Consolas, "Courier New", monospace;
	color: #333;
	background: #fafafa;
	resize: vertical;
	margin-bottom: 8px;
}

.gen-copied {
	color: #2a8a2a;
	font-weight: bold;
	margin-left: 8px;
	display: none;
}

.gen-results {
	list-style: none;
	margin: 6px 0 0 !important;
	padding: 0 !important;
}

section#counter-section .gen-results li {
	background: none;
	padding: 0;
	line-height: 26px;
	font-size: 13px;
}

.gen-results button {
	background: none;
	border: 0;
	color: #1a5f9e;
	text-decoration: underline;
	cursor: pointer;
	font: 13px Arial, Helvetica, sans-serif;
	padding: 0;
	text-align: left;
}

.gen-hint {
	font-size: 11px;
	color: #777;
}

/* Izbor stila brojaca */
.gen-styles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 6px;
	max-height: 330px;
	overflow-y: auto;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 8px;
	background: #fafafa;
}

.gen-styles label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
}

.gen-styles label:hover { border-color: #f3c28f; }
.gen-styles input:checked + img { outline: 2px solid #E97A0F; outline-offset: 2px; }
.gen-styles img { max-width: 100px; height: auto; display: block; }

.gen-result-img {
	text-align: center;
	margin-bottom: 14px;
}

/* stari Flash stilovi vise nisu potrebni */
#flash-counter, #flash-reloj, #flash-weather { display: none; }

/* sat u levoj koloni */
.aside-clock {
	text-align: center;
	width: 190px;
}
