/* Abroad Jobs Application (GBWA) — saffron/cream theme, no dark backgrounds */

#aja-app, #aja-app * { box-sizing: border-box; }

#aja-app {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 16px 60px;
	background: #FFFDF7;
	color: #3a2c1a;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

#aja-app h2, #aja-app h3, #aja-app h4 {
	color: #A6531A;
	font-weight: 800;
}

#aja-app .aja-title { font-size: 24px; margin: 4px 0 2px; text-align: center; }
#aja-app .aja-subtitle { text-align: center; color: #6b4a26; font-weight: 600; margin: 0 0 16px; }

/* Language toggle */
.aja-lang-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.aja-lang-btn {
	border: 2px solid #C97A1E;
	background: #FFF6E8;
	color: #A6531A;
	font-weight: 700;
	padding: 5px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
}
.aja-lang-btn.active { background: #C97A1E; color: #FFFDF7; }

/* Top buttons */
.aja-top-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 24px; }

.aja-btn {
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	color: #FFFDF7;
	box-shadow: 0 2px 4px rgba(166,83,26,0.25);
}
.aja-btn-primary { background: #C97A1E; }
.aja-btn-primary:hover { background: #A6531A; }
.aja-btn-secondary { background: #8a7248; }
.aja-btn-public-list { background: #4a7a9c; }
.aja-btn-admin { background: #6b4a26; }
.aja-btn-submit { background: #A6531A; width: 100%; padding: 15px; font-size: 17px; margin-top: 10px; }
.aja-btn-logout { background: #8a3b1e; padding: 8px 16px; font-size: 13px; }
.aja-btn-sm { padding: 7px 14px; font-size: 13px; }
.aja-btn-approve { background: #3f7d3f; }
.aja-btn-reject { background: #b23b3b; }
.aja-btn-delete { background: #8a3b1e; }
.aja-btn-edit { background: #C97A1E; }
.aja-btn-public { background: #4a7a9c; }
.aja-btn[disabled] { opacity: .5; cursor: not-allowed; }

.aja-back {
	background: none;
	border: none;
	color: #A6531A;
	font-weight: 700;
	cursor: pointer;
	font-size: 14px;
	padding: 6px 0;
	margin-bottom: 6px;
}

.aja-demo-btn {
	float: right;
	background: #FFF6E8;
	border: 2px dashed #C97A1E;
	color: #A6531A;
	font-weight: 700;
	border-radius: 8px;
	padding: 7px 14px;
	cursor: pointer;
	font-size: 13px;
	margin-bottom: 6px;
}

.aja-view { display: block; }
.aja-view[hidden] { display: none; }

/* Sections */
.aja-section {
	background: #FFF6E8;
	border: 1px solid #f0d9b5;
	border-radius: 10px;
	padding: 16px;
	margin: 14px 0;
	clear: both;
}
.aja-section h3 { font-size: 16px; margin: 0 0 12px; }

.aja-role-options { display: flex; flex-wrap: wrap; gap: 14px; }

.aja-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 600px) { .aja-grid2 { grid-template-columns: 1fr; } }

.aja-field { display: flex; flex-direction: column; gap: 4px; }
.aja-field label {
	font-weight: 700;
	color: #3a2c1a;
	font-size: 13.5px;
}

#aja-app input[type="text"],
#aja-app input[type="tel"],
#aja-app input[type="password"] {
	border: 2px solid #e7c98f;
	background: #FFFDF7;
	color: #3a2c1a;
	font-weight: 700;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 15px;
	width: 100%;
}
#aja-app input:focus {
	outline: none;
	background: #FFF9C4;
	border-color: #C97A1E;
}

#aja-app textarea {
	border: 2px solid #e7c98f;
	background: #FFFDF7;
	color: #3a2c1a;
	font-weight: 700;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 15px;
	width: 100%;
	font-family: inherit;
	resize: vertical;
}
#aja-app textarea:focus {
	outline: none;
	background: #FFF9C4;
	border-color: #C97A1E;
}

.aja-other-role-field { margin-top: 12px; }

.aja-checklist { display: flex; flex-wrap: wrap; gap: 16px; }
.aja-check { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.aja-check input[type="checkbox"], .aja-check input[type="radio"] { width: 18px; height: 18px; accent-color: #C97A1E; }

.aja-visa-year-field { margin-top: 12px; max-width: 220px; }

/* Aadhaar boxes */
.aja-aadhaar-boxes { display: flex; align-items: center; gap: 6px; }
.aja-aadhaar-box {
	width: 70px;
	text-align: center;
	letter-spacing: 2px;
	border: 2px solid #e7c98f;
	background: #FFFDF7;
	color: #3a2c1a;
	font-weight: 700;
	border-radius: 6px;
	padding: 10px 4px;
	font-size: 16px;
}
.aja-aadhaar-box:focus { outline: none; background: #FFF9C4; border-color: #C97A1E; }
.aja-aadhaar-dash { font-weight: 800; color: #A6531A; }
.aja-aadhaar-confirm {
	margin-top: 8px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 3px;
	color: #A6531A;
	background: #FFF9C4;
	border-radius: 6px;
	padding: 8px 12px;
	display: inline-block;
}

.aja-pincode-result { font-size: 12.5px; color: #6b4a26; font-weight: 700; min-height: 16px; }
.aja-inr-preview { font-size: 13px; color: #A6531A; font-weight: 800; min-height: 16px; }

.aja-ref-block { border-top: 1px dashed #e7c98f; padding-top: 10px; margin-top: 10px; }
.aja-ref-block:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.aja-ref-block h4 { margin: 0 0 8px; color: #C97A1E; }

.aja-terms-section { background: #FFF6E8; }
.aja-terms-box {
	background: #FFFDF7;
	border: 1px solid #f0d9b5;
	border-radius: 8px;
	padding: 12px;
	max-height: 160px;
	overflow-y: auto;
	font-size: 13px;
	color: #5a4325;
	white-space: pre-line;
	margin-bottom: 10px;
}
.aja-terms-check { align-items: flex-start; }

.aja-msg { margin-top: 12px; font-weight: 700; text-align: center; min-height: 20px; }
.aja-msg.ok { color: #2e6b2e; }
.aja-msg.err { color: #b23b3b; }

.aja-success-box { text-align: center; padding: 30px 16px; }
.aja-success-icon {
	width: 64px; height: 64px; line-height: 64px; border-radius: 50%;
	background: #3f7d3f; color: #fff; font-size: 32px; margin: 0 auto 14px;
}

/* Public list */
.aja-public-list-title { text-align: center; margin: 4px 0 14px; }
.aja-public-filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.aja-public-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.aja-public-card {
	background: #FFF6E8;
	border: 1px solid #f0d9b5;
	border-radius: 10px;
	padding: 14px;
	box-shadow: 0 1px 3px rgba(166,83,26,0.12);
}
.aja-public-card-role { display: inline-block; background: #C97A1E; color: #FFFDF7; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.aja-public-card-name { font-size: 16px; font-weight: 800; color: #3a2c1a; }
.aja-public-card-sub { font-size: 12.5px; font-weight: 700; color: #6b4a26; margin-bottom: 8px; }
.aja-public-card-row { font-size: 13px; color: #3a2c1a; margin-bottom: 3px; }
.aja-public-card-row b { color: #A6531A; }
.aja-public-card-docs { font-size: 12px; color: #6b4a26; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e7c98f; }
.aja-public-empty { text-align: center; color: #6b4a26; font-weight: 700; padding: 30px 0; }

.aja-login-box { max-width: 420px; margin: 0 auto; background: #FFF6E8; border: 1px solid #f0d9b5; border-radius: 10px; padding: 20px; }
.aja-login-box .aja-field { margin-bottom: 12px; }
.aja-login-box .aja-btn { width: 100%; margin-top: 6px; }

/* Admin panel */
.aja-admin-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.aja-stat-boxes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.aja-stat {
	flex: 1 1 100px;
	background: #FFF6E8;
	border: 1px solid #f0d9b5;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.aja-stat-num { display: block; font-size: 22px; font-weight: 800; color: #A6531A; }
.aja-stat-label { font-size: 12px; font-weight: 700; color: #6b4a26; }

.aja-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.aja-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.aja-filter-tab {
	border: 2px solid #C97A1E;
	background: #FFFDF7;
	color: #A6531A;
	font-weight: 700;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 12.5px;
	cursor: pointer;
}
.aja-filter-tab.active { background: #C97A1E; color: #fff; }
#aja-admin-search {
	border: 2px solid #e7c98f;
	border-radius: 6px;
	padding: 7px 10px;
	font-weight: 700;
	color: #3a2c1a;
	min-width: 220px;
}

.aja-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #6b4a26; }

.aja-table-wrap { overflow-x: auto; border: 1px solid #f0d9b5; border-radius: 8px; }
.aja-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #FFFDF7; }
.aja-admin-table th {
	background: #C97A1E;
	color: #FFFDF7;
	text-align: left;
	padding: 8px 10px;
	position: sticky;
	top: 0;
}
.aja-admin-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f0d9b5;
	color: #3a2c1a;
	font-weight: 600;
	word-break: break-word;
	vertical-align: top;
}
.aja-admin-table tr:hover td { background: #FFF9E0; }

.aja-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; }
.aja-badge-pending { background: #b8862e; }
.aja-badge-approved { background: #3f7d3f; }
.aja-badge-rejected { background: #b23b3b; }
.aja-badge-public { background: #4a7a9c; }
.aja-badge-private { background: #9a8a6a; }

.aja-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }

.aja-edit-strip {
	background: #FFF9C4;
	border: 2px solid #C97A1E;
}
.aja-edit-strip td { padding: 10px; }
.aja-edit-strip input[type="text"], .aja-edit-strip input[type="tel"] {
	width: 100%;
	margin-bottom: 4px;
}
.aja-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.aja-edit-grid label { font-size: 11px; font-weight: 700; color: #6b4a26; display: block; }
