/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
	--color-brand-red: #ee2e32;
	--color-surface: #ffffff;
	--color-background: #fff;
	--color-border: #616161;
	--color-text: #222222;
	--color-muted: #5b5b65;
	--color-success: #0f766e;
	--color-danger: #ee2e32;
	--btn-gray: #616161;
}

html {
	scrollbar-gutter: stable;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: "Poppins", "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
	line-height: 1.45;
	overflow-x: hidden;
}

.app-header {
	background: linear-gradient(90deg, var(--color-brand-red), var(--color-brand-red));
	min-height: 72px;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}



.app-logo {
	width: 20%;
	height: auto;
	display: block;
}

@media (max-width: 767px) {
	.app-logo {
		width: 60% !important; 
	}
}


.main-title {
	font-size: 1.5rem;
}

.app-main {
	width: min(980px, 100%);
	margin: 0 auto;
	padding: 24px 16px 40px;
	/* text-align: center; */
}

h1,
h2,
h3 {
	margin-top: 0;
	color: #171717;
}

p {
	margin-top: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-surface);
	border: 1px #ececf1 solid;
	border-radius: 8px;
	overflow: hidden;
}



th,
td {
	padding: 10px 12px;
	border-bottom: 1px solid #ececf1;
	text-align: left;
	vertical-align: top;
}

th {
	background: #f2f3f6;
	color: #3a3a44;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
	width: 100%;
	/* max-width: 520px; */
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	color: var(--color-text);
	font: inherit;
}

textarea {
	min-height: 110px;
	resize: vertical;
}

label {
	margin-bottom: 6px;
	font-weight: 500;
	color: var(--color-text);
}

input[type="checkbox"],
input[type="radio"] {
	transform: scale(1.05);
	margin-right: 6px;
}

input[type="submit"],
button {
	background: var(--btn-gray);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
	border-radius: 20px;
	margin: 1rem auto;
}

input[type="submit"] {
	display: block;
	width: 100%;
	
}

input[type="file"] {
	border: none !important
}

.visually-hidden-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.file-upload-trigger {
  display: inline-block;
  background: #fff;
	color: var(--btn-gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  border: 1px solid var(--btn-gray);
  width: 100%;
	box-sizing: border-box;
	max-width: 100%;
}

.file-upload-filename {
	margin-top: 8px;
	color: var(--color-muted);
	font-size: 0.95rem;
	min-height: 1.4em;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.file-upload-error {
	margin-top: 6px;
	color: var(--color-danger);
	font-size: 0.9rem;
	min-height: 1.2em;
}

.file-upload-trigger:hover {
	text-decoration: none;
}

input[type="submit"]:hover,
button:hover {
	background: var(--btn-gray);
}

a {
	color: #33bbffb3;
	font-weight: 500;
	text-decoration: underline;
}

a:hover {
	text-decoration: underline;
}

.center {
	text-align: center;
}

.d-block {
	display: block;
}


.blue-link  {
	color: #33bbffb3;
	font-weight: 500;
	text-decoration: underline;

}

.blue-button {
	display: block;
	width: 50%;
	background: #33bbffb3;
	color: #fff;
	border: 1px solid transparent;
	border-radius: 20px;
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
	margin: 1rem auto;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
}

.blue-button:hover {
	background: #2ea8e0;
	color: #fff;
	text-decoration: none;
}

.notice,
.alert {
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 16px;
	border: 1px solid transparent;
	background: #fff;
}

.notice {
	border-color: #9dd8cf;
	color: var(--color-success);
}

.alert {
	border-color: #f5b1a9;
	color: var(--color-danger);
}

.mb-2 {
	margin-bottom: 5rem;
}

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

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

.gray-bg {
	background-color: #f9f9f9; 
	padding: 1.5rem;
	border-radius: 10px;
}

.gray-bg p {
	margin-bottom: 0;
	/* font-weight: 600; */
}

.dashboard-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 1.5rem;
}

.dashboard-card {
	display: flex;
	align-items: center;
	background-color: #616161;
	padding: 1.5rem;
	border-radius: 10px;
	text-decoration: none;
	color: #fff;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.dashboard-card:hover {
	background-color: #efefef;
	text-decoration: none;
	color: #616161
}

.dashboard-card__title {
	font-size: 1rem;
}

@media (min-width: 768px) {
	.dashboard-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 768px) {
	.main-title {
		text-align: center;
		margin-bottom: 4rem;
	}

	.centered-div {
		width: 60%;
		margin: 0 auto;
	}
}

.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-actions a {
	margin-right: 14px;
	font-size: 1rem;
	text-decoration: none;
}

.table-actions a:last-child {
	margin-right: 0;
}

.table-actions .fa-eye         { color: #33bbff; }
.table-actions .fa-pen-to-square { color: var(--btn-gray); }
.table-actions .fa-trash       { color: var(--color-danger); }


.show-area {
	background-color:  #f2f2f2;
	padding: 1.5rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	
}

/* Client progress indicator (timeline) */
.client-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 5rem;
}
.client-progress__segment {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 0;
	min-width: 80px;
	padding: 0;
	background: transparent;
	border: none;
}
.client-progress__circle {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ececf1;
	margin-bottom: 8px;
}
.client-progress__segment.active .client-progress__circle {
	background: var(--color-brand-red);
}
.client-progress__label {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--color-muted);
}
.client-progress__segment.active .client-progress__label {
	color: var(--color-text);
	font-weight: 700;
}
.client-progress__connector {
	height: 2px;
	background: #ececf1;
	flex: 0 0 40px;
}
