/**
 * Trippify Portal — light theme, RTL, fully standalone (no theme deps).
 * Navy sidebar (#0A1B2A) + light content (#F4F6F9). Gold accent (#F5A623).
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

.trippify-login-body,
.trippify-portal-body {
	font-family: "Segoe UI", "Tajawal", Tahoma, Arial, sans-serif;
	background: #F4F6F9;
	color: #0F2438;
	min-height: 100vh;
	direction: rtl;
}

a { color: inherit; }

/* ============================================================
   LOGIN
   ============================================================ */
.trippify-login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background:
		radial-gradient(circle at 20% 18%, rgba(245, 166, 35, 0.12), transparent 40%),
		radial-gradient(circle at 82% 84%, rgba(10, 27, 42, 0.06), transparent 42%),
		#EEF2F6;
}

.trippify-login-card {
	background: #ffffff;
	border: 1px solid #E3E8EF;
	border-radius: 20px;
	padding: 38px 36px 30px;
	width: 100%;
	max-width: 410px;
	box-shadow: 0 18px 50px rgba(15, 36, 56, 0.10);
}

.trippify-login-brand { text-align: center; margin-bottom: 24px; }
.trippify-login-logo-plate { display: inline-block; margin-bottom: 16px; }
.trippify-login-logo-plate img { display: block; width: 200px; height: auto; }

.trippify-login-title { font-size: 20px; font-weight: 700; color: #0F2438; }

.trippify-login-title::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	background: #F5A623;
	border-radius: 2px;
	margin: 12px auto 0;
}

.trippify-login-tag { margin-top: 14px; color: #7C93A8; font-size: 14px; }

.trippify-login-form label {
	display: block;
	margin: 16px 0 6px;
	font-size: 13px;
	color: #5A7086;
}

.trippify-login-form input {
	width: 100%;
	padding: 13px 14px;
	background: #FFFFFF;
	border: 1px solid #D5DDE6;
	border-radius: 10px;
	color: #0F2438;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.trippify-login-form input:focus {
	outline: none;
	border-color: #F5A623;
	box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

.trippify-login-btn {
	width: 100%;
	margin-top: 24px;
	padding: 14px;
	background: #F5A623;
	color: #0A1B2A;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.trippify-login-btn:hover { background: #E0940F; }
.trippify-login-btn:active { transform: translateY(1px); }

.trippify-login-error {
	background: #FCEBEB;
	border: 1px solid #F09595;
	color: #A32D2D;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
	margin-bottom: 6px;
}

.trippify-login-foot { text-align: center; margin-top: 24px; color: #9AABBC; font-size: 12px; }

/* ============================================================
   APP SHELL
   ============================================================ */
.trippify-portal { display: flex; min-height: 100vh; }

.trippify-sidebar {
	width: 256px;
	background: #0A1B2A;
	display: flex;
	flex-direction: column;
	padding: 20px 0;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
}

.trippify-sidebar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px 18px;
	border-bottom: 1px solid #1E3A52;
	margin-bottom: 14px;
}

.trippify-brand-mark { display: inline-flex; }
.trippify-brand-text { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; color: #ffffff; }

.trippify-nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 0 12px;
	overflow-y: auto;
}

.trippify-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	color: #A9BACB;
	text-decoration: none;
	font-size: 14.5px;
	transition: background 0.15s, color 0.15s;
}

.trippify-nav-item:hover { background: #11283C; color: #ffffff; }
.trippify-nav-item.is-active { background: #F5A623; color: #0A1B2A; font-weight: 600; }

.trippify-nav-icon { display: inline-flex; width: 22px; justify-content: center; }

/* Add-on sub-navigation (e.g. Accounts → Dashboard / Invoices / Reports) */
.trippify-subnav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 2px 0 6px 34px;
	padding-left: 10px;
	border-left: 1px solid #1C3346;
}
.trippify-subnav-item {
	padding: 7px 12px;
	border-radius: 8px;
	color: #8DA2B8;
	text-decoration: none;
	font-size: 13px;
}
.trippify-subnav-item:hover { background: #11283C; color: #ffffff; }
.trippify-subnav-item.is-active { color: #F5A623; font-weight: 600; }

.trippify-sidebar-foot {
	padding: 14px 16px 0;
	border-top: 1px solid #1E3A52;
	margin: 14px 12px 0;
}

.trippify-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.trippify-user-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #F5A623;
	color: #0A1B2A;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
}

.trippify-user-name { font-weight: 700; color: #ffffff; font-size: 14px; }
.trippify-user-role { color: #F5A623; font-size: 12px; margin-top: 1px; }

.trippify-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	background: #11283C;
	color: #A9BACB;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13.5px;
	transition: background 0.15s, color 0.15s;
}

.trippify-logout:hover { background: #14304A; color: #ffffff; }

/* Content */
.trippify-content { flex: 1; margin-right: 256px; padding: 30px 34px; }

.trippify-page-head { margin-bottom: 24px; }
.trippify-page-head h1 { font-size: 24px; color: #0F2438; font-weight: 700; }
.trippify-page-sub { color: #7C93A8; margin-top: 6px; font-size: 15px; }

.trippify-page-head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

/* Stat cards */
.trippify-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.trippify-card {
	background: #ffffff;
	border: 1px solid #E3E8EF;
	border-radius: 14px;
	padding: 20px 24px;
	min-width: 178px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 1px 2px rgba(15, 36, 56, 0.04);
}

.trippify-card-num { font-size: 32px; font-weight: 800; color: #0F2438; line-height: 1; }
.trippify-card-label { color: #8093A5; font-size: 14px; }

/* Note / empty */
.trippify-note {
	background: #FFFFFF;
	border: 1px dashed #CBD6E0;
	border-radius: 12px;
	padding: 16px 20px;
	color: #7C93A8;
	font-size: 14px;
}

.trippify-empty-state {
	background: #ffffff;
	border: 1px solid #E3E8EF;
	border-radius: 16px;
	padding: 54px 20px;
	text-align: center;
	color: #9AABBC;
}

.trippify-empty-mark { color: #CBD6E0; margin-bottom: 14px; }
.trippify-empty-mark svg { width: 40px; height: 40px; }

/* Buttons */
.trippify-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	background: #F5A623;
	color: #0A1B2A;
	border: none;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s;
}

.trippify-btn-primary:hover { background: #E0940F; }
.trippify-btn-lg { margin-top: 22px; padding: 14px 36px; font-size: 16px; }

/* Tables */
.trippify-table-wrap {
	background: #ffffff;
	border: 1px solid #E3E8EF;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 36, 56, 0.04);
}

.trippify-data-table { width: 100%; border-collapse: collapse; }

.trippify-data-table thead th {
	background: #F7F9FB;
	color: #5A7086;
	font-weight: 600;
	font-size: 13px;
	padding: 13px 18px;
	text-align: right;
	border-bottom: 1px solid #E3E8EF;
}

.trippify-data-table tbody td {
	padding: 13px 18px;
	border-bottom: 1px solid #EFF2F6;
	font-size: 14px;
	color: #1F3346;
}

.trippify-data-table tbody tr:last-child td { border-bottom: none; }
.trippify-data-table tbody tr:hover { background: #F7FAFC; }

.trippify-empty {
	text-align: center !important;
	padding: 46px 0 !important;
	color: #9AABBC !important;
	font-size: 15px;
}

/* Status badges (light tints) */
.trippify-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #EDF1F5;
	color: #5A7086;
	white-space: nowrap;
}

.trippify-status-new { background: #E6F1FB; color: #185FA5; }
.trippify-status-contacted,
.trippify-status-quotation_sent { background: #FAEEDA; color: #854F0B; }
.trippify-status-qualified,
.trippify-status-confirmed { background: #E1F5EE; color: #0F6E56; }
.trippify-status-follow_up,
.trippify-status-quotation_required { background: #EEEDFE; color: #534AB7; }
.trippify-status-won,
.trippify-status-paid,
.trippify-status-completed { background: #F5A623; color: #4A2D02; }
.trippify-status-lost,
.trippify-status-cancelled,
.trippify-status-not_serious { background: #F1EFE8; color: #5F5E5A; }

/* WhatsApp button */
.trippify-wa-btn {
	display: inline-block;
	background: #25D366;
	color: #ffffff;
	padding: 6px 16px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

.trippify-wa-btn:hover { background: #1da851; }

/* Alerts */
.trippify-alert { padding: 13px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.trippify-alert-success { background: #E1F5EE; border: 1px solid #9FE1CB; color: #0F6E56; }
.trippify-alert-error { background: #FCEBEB; border: 1px solid #F09595; color: #A32D2D; }

/* Forms */
.trippify-portal-form {
	background: #ffffff;
	border: 1px solid #E3E8EF;
	border-radius: 14px;
	padding: 28px;
	max-width: 820px;
	box-shadow: 0 1px 2px rgba(15, 36, 56, 0.04);
}

.trippify-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.trippify-field { display: flex; flex-direction: column; }
.trippify-field label { font-size: 13px; color: #5A7086; margin-bottom: 7px; }
.trippify-field label span { color: #E24B4A; }

.trippify-field input,
.trippify-field select,
.trippify-field textarea {
	padding: 11px 14px;
	background: #FFFFFF;
	border: 1px solid #D5DDE6;
	border-radius: 10px;
	color: #0F2438;
	font-size: 15px;
	width: 100%;
	font-family: inherit;
}

.trippify-field input:focus,
.trippify-field select:focus,
.trippify-field textarea:focus {
	outline: none;
	border-color: #F5A623;
	box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16);
}

.trippify-field-row { display: flex; gap: 10px; }

/* ============================================================
   SETTINGS
   ============================================================ */
.trippify-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid #E3E8EF; }

.trippify-tab {
	padding: 11px 20px;
	color: #7C93A8;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s, border-color 0.15s;
}

.trippify-tab:hover { color: #0F2438; }
.trippify-tab.is-active { color: #B5790F; border-bottom-color: #F5A623; }

.trippify-settings-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.trippify-roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.trippify-panel {
	background: #ffffff;
	border: 1px solid #E3E8EF;
	border-radius: 14px;
	padding: 22px 24px;
	box-shadow: 0 1px 2px rgba(15, 36, 56, 0.04);
}

.trippify-panel-title { font-size: 16px; color: #0F2438; font-weight: 700; margin-bottom: 16px; }

.trippify-stack { display: flex; flex-direction: column; gap: 14px; }
.trippify-stack .trippify-btn-primary { margin-top: 4px; justify-content: center; }

.trippify-cap-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.trippify-cap-list li { position: relative; padding-right: 18px; color: #3F566B; font-size: 13.5px; }

.trippify-cap-list li::before {
	content: "";
	position: absolute;
	right: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #F5A623;
}

.trippify-inline-form { display: flex; gap: 8px; align-items: center; }

.trippify-inline-form select {
	padding: 8px 10px;
	background: #FFFFFF;
	border: 1px solid #D5DDE6;
	border-radius: 8px;
	color: #0F2438;
	font-size: 13px;
	font-family: inherit;
}

.trippify-btn-small {
	padding: 8px 16px;
	background: #F7F9FB;
	color: #1F3346;
	border: 1px solid #D5DDE6;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.trippify-btn-small:hover { background: #EDF1F5; }

.trippify-hint { margin-top: 14px; color: #9AABBC; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
	.trippify-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.trippify-sidebar { width: 100%; position: relative; flex-direction: column; padding: 16px; }
	.trippify-nav { flex-direction: row; flex-wrap: wrap; }
	.trippify-content { margin-right: 0; padding: 22px 16px; }
	.trippify-form-grid { grid-template-columns: 1fr; }
}

