/* Custom Styles for Stormgarde Theme - Cybermist Design */

/* ==========================================================================
   Input Fields
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
select,
.form-control,
textarea {
	display: block;
	width: 100%;
    padding: 0.75rem 0.75rem 0.75rem calc(var(--spacing)*10);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	background-color: #323232;
	color: #ffffff;
	font-size: 0.875rem;
	line-height: 1.5;
	transition: all 0.2s ease-in-out;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
select::placeholder,
.form-control::placeholder,
textarea::placeholder {
	color: rgba(156, 163, 175, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
select:focus,
.form-control:focus,
textarea:focus {
	outline: none;
	border-color: #eab308;
	ring: 2px solid #eab308;
	box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
input[type="url"]:disabled,
input[type="tel"]:disabled,
select:disabled,
.form-control:disabled,
textarea:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background-color: #272727;
}

/* ==========================================================================
   Nice Button
   ========================================================================== */

.nice_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: 1px solid rgba(234, 179, 8, 0.5);
	border-radius: 0.125rem;
	background: linear-gradient(to bottom, #ca8a04, #a16207);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	white-space: nowrap;
}

.nice_button:hover {
	background: linear-gradient(to bottom, #eab308, #ca8a04);
	border-color: rgba(250, 204, 21, 0.7);
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.nice_button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.nice_button:focus {
	outline: none;
	ring: 2px solid #eab308;
	ring-offset: 2px;
	box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
}

.nice_button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Button Variants */
.nice_button.secondary {
	background: linear-gradient(to bottom, #4b5563, #374151);
	border-color: rgba(156, 163, 175, 0.3);
}

.nice_button.secondary:hover {
	background: linear-gradient(to bottom, #6b7280, #4b5563);
	border-color: rgba(156, 163, 175, 0.5);
}

.nice_button.success {
	background: linear-gradient(to bottom, #16a34a, #15803d);
	border-color: rgba(34, 197, 94, 0.5);
}

.nice_button.success:hover {
	background: linear-gradient(to bottom, #22c55e, #16a34a);
	border-color: rgba(74, 222, 128, 0.7);
}

.nice_button.danger {
	background: linear-gradient(to bottom, #dc2626, #b91c1c);
	border-color: rgba(239, 68, 68, 0.5);
}

.nice_button.danger:hover {
	background: linear-gradient(to bottom, #ef4444, #dc2626);
	border-color: rgba(248, 113, 113, 0.7);
}

.nice_button.small {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
}

.nice_button.large {
	padding: 1rem 2rem;
	font-size: 1rem;
}

/* ==========================================================================
   Nice Table
   ========================================================================== */

.nice_table {
	width: 100%;
	border-collapse: collapse;
	background-color: #272727;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	overflow: hidden;
}

.nice_table thead {
	background-color: #1e1e1e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nice_table thead th {
	padding: 1rem;
	text-align: left;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.nice_table tbody tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color 0.2s ease-in-out;
}

.nice_table tbody tr:last-child {
	border-bottom: none;
}

.nice_table tbody tr:hover {
	background-color: rgba(255, 255, 255, 0.02);
}

.nice_table tbody td {
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: #d1d5db;
}

.nice_table tbody td a {
	color: #fbbf24;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.nice_table tbody td a:hover {
	color: #fcd34d;
}

/* Table Variants */
.nice_table.striped tbody tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.02);
}

.nice_table.bordered {
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.nice_table.bordered thead th,
.nice_table.bordered tbody td {
	border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Table */
@media (max-width: 768px) {
	.nice_table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.nice_table thead {
		display: none;
	}

	.nice_table tbody tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 0.5rem;
	}

	.nice_table tbody td {
		display: flex;
		justify-content: space-between;
		padding: 0.75rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.nice_table tbody td:last-child {
		border-bottom: none;
	}

	.nice_table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #9ca3af;
		text-transform: uppercase;
		font-size: 0.75rem;
		letter-spacing: 0.05em;
	}
}

/* ==========================================================================
   Form Groups
   ========================================================================== */

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #d1d5db;
}

.form-group .form-error {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #f87171;
}

.form-group .form-help {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #9ca3af;
}

/* ==========================================================================
   Alerts & Messages
   ========================================================================== */

.alert {
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
	border-left: 4px solid;
}

.alert-success {
	background-color: rgba(34, 197, 94, 0.1);
	border-color: #22c55e;
	color: #86efac;
}

.alert-warning {
	background-color: rgba(234, 179, 8, 0.1);
	border-color: #eab308;
	color: #fde047;
}

.alert-error,
.alert-danger {
	background-color: rgba(239, 68, 68, 0.1);
	border-color: #ef4444;
	color: #fca5a5;
}

.alert-info {
	background-color: rgba(59, 130, 246, 0.1);
	border-color: #3b82f6;
	color: #93c5fd;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-muted {
	color: #9ca3af;
}

.text-yellow {
	color: #fbbf24;
}

.text-white {
	color: #ffffff;
}

.text-gray {
	color: #d1d5db;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mt-4 {
	margin-top: 1rem;
}

.mt-6 {
	margin-top: 1.5rem;
}

.d-none {
	display: none !important;
}
