/**
 * global
 */

 :root {
	--color: 5, 5, 5;
	--alpha: 0.8;
	--bg-color: #f5f5f5;
	--border-color: rgba(125, 125, 125, 0.4);
	--form-bg-color: #fff;
	--header-bg-color: #fff;
	--shadow-color: #ccd0d4;
	--text-color: #1e1e1e;
}

[data-theme="dark"] {
	--color: 125, 125, 125;
	--bg-color: #1e1e1e;
	--border-color: #555;
	--form-bg-color: #1a1a1a;
	--header-bg-color: #1a1a1a;
	--shadow-color: #222;
	--text-color: #999;
}

body {
	background-color: var(--bg-color);
}

.site-content input,
.site-content textarea,
.site-content select{
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: .25rem;
	box-shadow: none;
    color: #999;
}

/**
 * header
 */

.site-header {
	background-color: var(--header-bg-color);
	color: var(--text-color);
}

.site-header a {
	color: var(--text-color);
}

.site-header .wrap {
	position: relative;
}

.theme-toggle {
	background: var(--text-color);
	border: 0;
	border-radius: 2rem;
	color: var(--bg-color);
	line-height: 1;
	margin: 0;
	padding: .25rem;
    position: absolute;
    right: 0;
    top: 2rem;
}

.theme-toggle:focus {
	box-shadow: none;
}

.theme-toggle .toggle-icon {
	background-color: var(--bg-color);
	border-radius: 2rem;
	display: inline-block;
	padding: .25rem;
}

.theme-toggle svg {
    color: var(--text-color);
    fill: var(--text-color);
	height: 1rem;
	width: 1rem;
}

[data-theme="light"] .theme-toggle .icon-light {
	opacity: 0;
}

[data-theme="dark"] .theme-toggle .icon-dark {
	opacity: 0;
}


/**
 * site-content
 */

.site-content .wrap {
	background: transparent;
	border: none;
	padding: 0;
}

.site-content .wrap .form {
	background: var(--form-bg-color);
	border: 1px solid var(--shadow-color);
	border: 1px solid #3e3e3e;
	margin: 3rem 0 2rem;
	padding: 1.5rem;
	position: relative;
}

.site-content .wrap .form .form-info {
	background: var(--form-bg-color);
	border: 1px solid #3e3e3e;
	border-bottom-width: 0;
	color: var(--text-color);
	font-size: 68%;
	left: 130px;
	padding: 3px 5px 0;
	position: absolute;
	top: -15px;
	width: 81%;
	z-index: 999;
}

.site-content .wrap .form .form-title {
	background: var(--form-bg-color);
	border: 1px solid #3e3e3e;
	border-bottom-width: 0;
	color: var(--text-color);
	left: 20px;
	padding: 0 15px;
	position: absolute;
	top: -20px;
	z-index: 999;
}
.form-item {
	margin-bottom: 0;
	margin-top: 30px;
	position: relative;
}
.form-item label {
	background: #fff;
	border: 1px solid rgba(125, 125, 125, 0.4);
	border-bottom: 0;
	border-radius: 3px 3px 0 0;
	color: rgba(125, 125, 125, 0.7);
	color: rgba(var(--color), var(--alpha));
	cursor: pointer;
	display: inline-block;
	font-size: 65%;
	left: 10px;
	line-height: 1.4;
	position: absolute;
	text-transform: uppercase;
	top: -15px;
	vertical-align: middle;
	padding: 2px 10px 0;
}
.form-item > input[type=text] {
	padding-right: 2rem;
}
.form-item span {
	display: block;
	height: 35px;
	padding: 5px 10px;
}
.form-item button {
	background-color: #7d7d7d;
	border: 1px solid rgba(125, 125, 125, 0.4);
	padding: .3125rem .625rem;
}
.form-item button:focus {
	box-shadow: 0 0 0 0.2rem rgba(125, 125, 125, 0.4);
}
.form-item button.btn-act {
	font-size: 11px;
	position: absolute;
	right: .625rem;
	text-transform: uppercase;
	top: -25px;
}
.form-item button.btn-encode {
	right: 5.25rem;
}

.site-content .copy-button {
	border: none;
	cursor: pointer;
	background-color: transparent;
	background-image: url('../images/icon-copy.svg');
	background-size: cover;
	background-repeat: no-repeat;
	padding: 0;
	height: 24px;
	width: 24px;
	z-index: 1;
	position: absolute;
	right: .325rem;
	top: .325rem;
}

.site-content .copy-button:focus,
.site-content .copy-button:hover {
	box-shadow: none;
}


/**
 * Password Generator
 */

.password-generator {
	position: relative;
}

h2 {
	text-align: center;
	color: #333;
	margin-bottom: 20px;
}

.generator-container {
}

.password-display {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	position: relative;
}

.password-input {
	flex: 1;
	font-size: 16px;
	cursor: pointer;
}

.password-input:hover {
	border-color: #4caf50;
}

.pwdify input:focus {
	background-color: transparent;
	box-shadow: none;
}

.options {
	display: flex;
	gap: 2rem;
}

.length-control {
	width: 50%;
}

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

.slider {
	flex: 1;
}

.number-input {
	border: 1px solid #ddd;
	padding: .125rem .125rem;
	text-align: center;
	width: 3rem;
}

.checkboxes {
	display: flex;
	gap: 1rem;
	width: 50%;
}

.checkboxes label {
	background-color: #ededed;
	border: 1px solid var(--shadow-color);
	border-radius: .275rem;
	color: #555;
	cursor: pointer;
	display: flex;
	font-size: .725rem;
	line-height: 1rem;
	padding: .325rem .625rem;
	user-select: none;
}

.options label input {
	color: #ededed;
	display: inline-block;
	float: left;
	font-style: normal;
	margin-right: .375rem;
}

.options label:has(input[type="checkbox"]:checked) {
	background-color: #dcebff;
	border: 1px solid #2765ed;
	color: #2765ed;
}

input[type="checkbox"] {
	cursor: pointer;
}

.alert {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 10px 20px;
	background-color: #4caf50;
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s;
}

.alert.show {
	opacity: 1;
}

.tooltip {
	background-color: #4caf50;
	border-radius: .325rem;
	box-shadow: 0 0 1rem #aaa;
	color: #fff;
	font-size: .825rem;
	left: 50%;
	opacity: 0;
	padding: .625rem 1.5rem;
	pointer-events: none;
	position: absolute;
	top: -30px;
	transform: translateX(-50%);
	transition: opacity 0.3s ease;
}

.tooltip.show {
	opacity: 1;
}

/**
 * rainify
 */

.rainify {
}
.rainify .color-input {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}
.rainify input[type="text"] {
	flex: 1;
	padding: 10px;
	font-size: 16px;
}
.rainify button {
    padding: .625rem 1rem .325rem 1rem;
    font-size: 16px;
	background-color: #0066cc;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.rainify button:hover {
	background-color: #004c99;
}
.rainify button svg {
    height: 24px;
    width: 24px;
}
.rainify .palette {
	display: flex;
	flex-wrap: wrap;
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 0.5rem;
}
.rainify .color-box {
	width: 100%;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #fff;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	position: relative;
}
.rainify .color-box:hover {
}
.rainify .palette .color-box:first-child,
.rainify .palette .color-box:last-child {
	display: none !important;
}
.rainify .color-box:hover,
.rainify .main-color {
	border: 2px solid #000;
}
.rainify .info {
	display: flex;
	gap: 1rem;
	font-size: .825rem;
	margin-top: 1rem;
	justify-content: space-between;
}

.rainify .info-item {
	background: #eee;
	border: 1px solid #ddd;
	padding: .25rem .75rem;
}

/* Toast mesaj stili */
.toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: white;
	padding: 0.7rem 1.2rem;
	border-radius: 6px;
	font-size: 0.95rem;
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
	z-index: 9999;
}
.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-10px);
}

/**
 * x2r
 */

.x2r {
	justify-content: center;
	align-items: center;
	padding: 1.25rem 0 0;
}

.x2r .row {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.x2r .calculate div {
	text-align: center;
}

.x2r h1 {
	font-size: 30px !important;
	text-align: center;
	margin: 5px 0 12px 0 !important;
}

.x2r p {
	font-size: 18px;
	margin: 0 40px;
	text-align: center;
}

.x2r label {
	color: rgb(0 0 0 / 40%);
	display: inline-block;
	font-size: 1rem;
	font-style: italic;
	font-weight: 400;
	margin-bottom: .250rem;
}

.x2r .tables {
	display: flex;
	font-size: 1rem;
	margin-top: 1.25rem;
	justify-content: space-around;
}

.x2r table,
.x2r th {
	background-color: var(--bg-color);
	border-color: var(--bg-color);
	color: var(--text-color);
}

.x2r table {
	min-width: 15%;
}

.x2r tr {
	border: 1px solid var(--border-color);
}

.x2r thead tr {
	font-weight: 600;
}

.x2r tr:last-child {
}

.x2r td,
.x2r th {
	font-size: .875rem;
	padding-left: .75rem;
}

.x2r .row input {
	box-shadow: 0 0 0 0.2rem rgba(125, 125, 125, 0.15);
	border: 1px solid rgba(125, 125, 125, 0.4);
	border-radius: 3px;
	font-size: 22px;
	text-align: center;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	width: 120px;
}

.x2r .row input:focus {
	border-color: rgba(0, 123, 255, 0.4);
	box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
}
/**
 * Media queries for different screen sizes.
 */

@media screen and (max-width: 980px) {
	.site-content .wrap {
		max-width: calc(100% - 20px);
	}

	.site-content .wrap .form .form-info {
		line-height: 1.1;
		max-width: calc(100% - 140px);
		top: -20px;
	}

}

@media screen and (max-width: 768px) {
}