﻿/* ==========================================================================
   CONTAINER
   ========================================================================== */

.forms-container {
	width: 100%;
	height: 100%;
	padding: 1.5rem 1.6rem;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
	font-size: 0.9rem;
	overflow: visible !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.forms-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.2rem;
}

	.forms-header h2 {
		margin: 0;
		font-size: 1.5rem;
	}

/* ==========================================================================
   SEARCH
   ========================================================================== */

.forms-search {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.search-box {
	position: relative;
	display: flex;
	align-items: center;
}

	.search-box input {
		width: 100%;
		padding: 0.55rem 2.2rem 0.55rem 0.9rem;
		border: 1.5px solid #ddd;
		border-radius: 6px;
		font-size: 0.9rem;
	}

	.search-box i {
		position: absolute;
		right: 0.7rem;
		font-size: 1rem;
		color: #999;
	}

/* ==========================================================================
   FORM LIST
   ========================================================================== */

.forms-list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin-top: 1rem;
}

.form-item {
	width: 100%;
	padding: 0.9rem;
	background: var(--ek-item-bg);
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
}

	.form-item:hover {
		background: var(--ek-red-ghost);
		transform: translateY(-2px);
	}

.form-item-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.9rem;
	background: var(--ek-item-bg, #f9f9f9);
	border: 1px solid #ddd;
	border-radius: 10px;
	cursor: pointer;
}

	.form-item-row:hover {
		background: var(--ek-red-ghost, #fff1f1);
	}

.form-title {
	font-size: 0.95rem;
	font-weight: 600;
}

.form-status-bar {
	display: flex;
	gap: 10px;
	justify-content: flex-start;
}

.created-date {
	display: flex;
	justify-content: flex-end;
	font-size: 0.8rem;
}

/* ==========================================================================
   FORM SECTIONS
   ========================================================================== */

.form-section {
	margin-top: 1.5rem;
}

.default-type {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	border: 1px solid #ddd;
	color: #333;
}

.regular-type {
	align-items: center;
	margin-bottom: 0.5rem;
	border: 1px solid #ddd;
	color: #333;
}

.form-badge {
	padding: 0.25rem 0.6rem;
	background: #ccc;
	border-radius: 8px;
	font-size: 0.75rem;
	color: #222;
}

/* ==========================================================================
   ASSIGN SECTION
   ========================================================================== */

.assign-section {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.popup-form-control {
	min-width: 260px;
}

/* ==========================================================================
   FORM ACTIONS
   ========================================================================== */

.form-actions {
	display: flex;
	gap: 0.6rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: 6px;
	background: transparent;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	color: #444;
	cursor: pointer;
}

	.icon-btn:hover {
		background: #f2f2f2;
		color: #c62828;
	}

.forms-container .form-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 4px;
	background: transparent;
	border: none;
	border-radius: 6px;
	font-size: 1.1rem;
	color: #444;
	cursor: pointer;
}

	.forms-container .form-icon-btn:hover {
		background: rgba(198, 40, 40, 0.1);
		color: #c62828;
	}

	.forms-container .form-icon-btn i {
		pointer-events: none;
	}

/* ==========================================================================
   GLOBAL INPUTS
   ========================================================================== */

label {
	margin: 0;
	font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="email"],
textarea,
select {
	width: 100%;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 0.95rem;
	color: #222;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: all 0.2s ease;
}

	input:focus,
	textarea:focus,
	select:focus {
		outline: none;
		box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
	}

::placeholder {
	color: #aaa;
}

textarea {
	min-height: 90px;
	line-height: 1.5;
	resize: vertical;
}

select {
	padding-right: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23c62828' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 10px 6px;
}

.input-field {
	width: 100%;
	padding: 0.55rem 0.75rem;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.9rem;
}

.readonly-field {
	padding: 10px 12px;
	background-color: #fafafa;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.8rem;
	color: #333;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   STATUS PILLS
   ========================================================================== */

.status-pill {
	display: inline-block;
	padding: 4px 10px;
	background-color: #999;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: white;
}

	.status-pill.active {
		background-color: #2e7d32;
	}

	.status-pill.inactive {
		background-color: var(--ek-red);
	}

/* ==========================================================================
   SIGNATURE SECTION
   ========================================================================== */

.signature-card {
	margin-top: 1.2rem;
	padding: 1.2rem 1.5rem;
	background: var(--ek-item-bg);
	border: 1px solid #e5e5e5;
	border-radius: 10px;
}

	.signature-card h4 {
		margin-bottom: 0.8rem;
		font-size: 1.1rem;
	}

.signature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

	.signature-grid label {
		display: block;
		margin-bottom: 0.3rem;
		font-size: 0.9rem;
		font-weight: 600;
		color: #2e2e2e;
	}

.col-span-2 {
	grid-column: span 2;
}

/* ==========================================================================
   IMAGE
   ========================================================================== */

.form-image-wrapper {
	display: flex;
	justify-content: center;
	margin: 1rem 0;
}

.form-image {
	max-width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.flex-1 {
	flex: 1;
}

.empty-text {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.9rem;
	color: #777;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 600px) {
	.forms-container {
		margin: 1rem;
		padding: 1.5rem;
	}

	.forms-header h2 {
		font-size: 1.3rem;
	}

	.btn-add {
		padding: 0.35rem 0.7rem;
		font-size: 0.8rem;
	}

	.form-item {
		padding: 0.8rem;
		font-size: 0.95rem;
	}
}


