/**
 * Taranagar Tasks Admin Stylesheet
 * Package: Taranagar Tasks
 */

.taranagar-tasks-wrap {
	margin-top: 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.taranagar-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
}

.taranagar-header-flex h1 {
	margin-bottom: 0;
	font-weight: 700;
	color: #1a202c;
}

/* Statistics Grid */
.taranagar-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.taranagar-stat-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.taranagar-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.taranagar-stat-card .stat-icon {
	font-size: 28px;
	line-height: 1;
}

.taranagar-stat-card .stat-info {
	display: flex;
	flex-direction: column;
}

.taranagar-stat-card .stat-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #718096;
	letter-spacing: 0.5px;
}

.taranagar-stat-card .stat-number {
	font-size: 22px;
	font-weight: 700;
	color: #2d3748;
	margin-top: 2px;
}

.taranagar-stat-card.card-total { border-left: 4px solid #3182ce; }
.taranagar-stat-card.card-pending { border-left: 4px solid #dd6b20; }
.taranagar-stat-card.card-active { border-left: 4px solid #319795; }
.taranagar-stat-card.card-complete { border-left: 4px solid #38a169; }
.taranagar-stat-card.card-balance { border-left: 4px solid #e53e3e; }
.taranagar-stat-card.card-balance .stat-number { color: #e53e3e; }

/* Filter Bar */
.taranagar-filter-bar {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 18px;
	margin-bottom: 20px;
}

.taranagar-filter-form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-group label {
	font-weight: 600;
	font-size: 13px;
	color: #4a5568;
}

/* ====================================================
 * Tasks Table - Modern Excel Sheet Styling
 * ==================================================== */
.taranagar-table-wrap {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	margin: 20px 0;
}

.taranagar-excel-table {
	width: 100%;
	min-width: 1100px;
	border-collapse: collapse;
	table-layout: auto;
	font-family: inherit;
	background: #ffffff;
}

.taranagar-excel-table thead th {
	background: #f1f5f9;
	color: #1e293b;
	font-weight: 700;
	font-size: 13.5px;
	padding: 13px 14px;
	border: 1px solid #cbd5e1;
	white-space: nowrap;
	text-align: left;
	letter-spacing: 0.3px;
}

.taranagar-excel-table tbody td {
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	vertical-align: middle;
	font-size: 13.5px;
	color: #334155;
	white-space: nowrap;
}

.taranagar-excel-table tbody tr.excel-row:nth-child(even) {
	background: #f8fafc;
}

.taranagar-excel-table tbody tr.excel-row:hover {
	background: #f0fdf4 !important;
	transition: background 0.15s ease;
}

/* Specific Columns */
.taranagar-excel-table .col-sr {
	width: 55px;
	text-align: center;
}

.excel-sr-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
	color: #334155;
	font-weight: 700;
	font-size: 12px;
	width: 28px;
	height: 28px;
	border-radius: 6px;
}

.taranagar-excel-table .col-name {
	min-width: 150px;
}

.customer-name-text {
	color: #0f172a;
	font-weight: 700;
	font-size: 14px;
}

.taranagar-excel-table .col-mobile {
	min-width: 135px;
}

.taranagar-phone-link {
	color: #0284c7;
	text-decoration: none;
	font-weight: 600;
	font-family: monospace;
	font-size: 13.5px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.taranagar-phone-link:hover {
	text-decoration: underline;
	color: #0369a1;
}

.taranagar-excel-table .col-work {
	white-space: normal !important;
	min-width: 220px;
	max-width: 320px;
	line-height: 1.45;
}

.work-title {
	color: #1e293b;
	font-weight: 600;
	font-size: 13.5px;
}

.work-notes {
	font-size: 12px;
	color: #64748b;
	margin-top: 3px;
	background: #f8fafc;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px dashed #cbd5e1;
	display: inline-block;
}

.taranagar-excel-table .col-money {
	text-align: right;
	min-width: 95px;
}

.amount-val {
	font-weight: 700;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.amount-paid {
	color: #16a34a;
}

.amount-balance-due {
	color: #dc2626;
	background: #fef2f2;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid #fecaca;
	display: inline-block;
}

.taranagar-excel-table .col-date {
	min-width: 105px;
	color: #64748b;
	font-size: 13px;
}

.taranagar-excel-table .col-actions {
	min-width: 260px;
}

/* Badges */
.taranagar-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

.badge-pending {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.badge-active {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.badge-complete {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.badge-partial {
	background: #f3e8ff;
	color: #6b21a8;
	border: 1px solid #e9d5ff;
}

/* Action Buttons (Excel Row) */
.excel-actions-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}

.btn-excel-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 11px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	line-height: 1.2;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.btn-action-edit {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}
.btn-action-edit:hover {
	background: #dbeafe;
	color: #1e40af;
}

.btn-action-delete {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}
.btn-action-delete:hover {
	background: #fee2e2;
	color: #991b1b;
}

.btn-action-whatsapp {
	background: #25D366;
	color: #ffffff !important;
	border-color: #20ba5a;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(37, 211, 102, 0.3);
}
.btn-action-whatsapp:hover {
	background: #1eb857;
	color: #ffffff !important;
}

.btn-action-banner {
	background: #f5f3ff;
	color: #6d28d9;
	border-color: #ddd6fe;
	font-weight: 600;
}
.btn-action-banner:hover {
	background: #ede9fe;
	color: #5b21b6;
}

/* Empty State */
.excel-empty-cell {
	padding: 40px 20px !important;
	text-align: center;
}

.empty-tasks-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.empty-tasks-state .empty-icon {
	font-size: 40px;
}

.empty-tasks-state p {
	font-size: 15px;
	color: #64748b;
	margin: 0;
}

.btn-empty-add-task {
	background: #0284c7;
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
	transition: background 0.2s;
}
.btn-empty-add-task:hover {
	background: #0369a1;
}

/* Modals */
.taranagar-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.taranagar-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.taranagar-modal-content {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 620px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	z-index: 1;
	animation: modalSlideIn 0.25s ease-out;
}

.banner-modal-content {
	max-width: 580px;
}

@keyframes modalSlideIn {
	from { opacity: 0; transform: translateY(-20px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.taranagar-modal-header {
	padding: 16px 24px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
}

.taranagar-modal-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
}

.btn-close-modal,
.btn-close-banner-modal {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 0 4px;
}
.btn-close-modal:hover,
.btn-close-banner-modal:hover {
	color: #0f172a;
}

.taranagar-modal-body {
	padding: 24px;
	max-height: 75vh;
	overflow-y: auto;
}

.taranagar-modal-footer {
	padding: 14px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Form Layout inside Modal */
.form-row-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-row-three {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 14px;
}

.form-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 13.5px;
	color: #1e293b;
	font-weight: 600;
}

.taranagar-form-control {
	width: 100% !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	font-family: inherit !important;
}

.taranagar-form-control:focus {
	border-color: #0284c7 !important;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
	outline: none !important;
}

.taranagar-form-select {
	height: 44px !important;
	cursor: pointer !important;
	background-color: #ffffff !important;
}

.mobile-input-wrapper {
	display: flex;
	align-items: stretch;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	height: 44px;
	transition: all 0.2s ease;
}

.mobile-input-wrapper:focus-within {
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.mobile-input-wrapper .country-prefix {
	background: #f1f5f9;
	color: #334155;
	font-weight: 700;
	font-size: 14px;
	padding: 0 14px;
	border-right: 1.5px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-input-wrapper input {
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	width: 100% !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.5px !important;
	color: #0f172a !important;
	outline: none !important;
}

.field-hint {
	font-size: 11.5px;
	color: #64748b;
	margin-top: 5px;
	display: block;
}

.balance-readonly {
	background-color: #fef2f2 !important;
	font-weight: 700 !important;
	color: #b91c1c !important;
	border-color: #fecaca !important;
}

.btn-modal-submit {
	background: #0284c7;
	color: #ffffff;
	border: none;
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
	transition: all 0.2s ease;
}
.btn-modal-submit:hover {
	background: #0369a1;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.btn-modal-cancel {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.btn-modal-cancel:hover {
	background: #e2e8f0;
	color: #1e293b;
}

@media (max-width: 768px) {
	.form-row-grid,
	.form-row-three {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.taranagar-stats-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ====================================================
 * Frontend Portal Styling (Operator Dashboard & Guest)
 * ==================================================== */
.taranagar-frontend-portal {
	max-width: 1200px;
	margin: 20px auto 40px;
	padding: 0 15px;
}

.portal-user-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.portal-user-bar .user-greeting {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: #1e293b;
}

.portal-user-bar .avatar-badge {
	font-size: 22px;
	background: #f1f5f9;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.portal-user-bar .user-email-tag {
	font-size: 13px;
	color: #64748b;
	margin-left: 4px;
}

.portal-nav-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.portal-tab-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	transition: all 0.2s ease;
}

.portal-tab-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.portal-tab-btn.active {
	background: #0284c7;
	color: #ffffff !important;
	border-color: #0284c7;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.portal-tab-btn.tab-logout {
	color: #b91c1c;
	border-color: #fecaca;
	background: #fff5f5;
}
.portal-tab-btn.tab-logout:hover {
	background: #fee2e2;
	color: #991b1b;
}

/* Guest Landing Card */
.taranagar-guest-card {
	max-width: 820px;
	margin: 30px auto 50px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 35px 30px;
	text-align: center;
}

.guest-card-header .kiosk-hero-icon {
	font-size: 48px;
	display: inline-block;
	margin-bottom: 10px;
}

.guest-card-header h2 {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
}

.guest-card-header .guest-subtitle {
	font-size: 15px;
	color: #475569;
	max-width: 650px;
	margin: 0 auto 25px;
	line-height: 1.6;
}

.guest-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin: 30px 0;
	text-align: left;
}

.guest-features-grid .feature-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
}

.guest-features-grid .f-icon {
	font-size: 24px;
	display: block;
	margin-bottom: 8px;
}

.guest-features-grid h4 {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
}

.guest-features-grid p {
	font-size: 12px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.guest-action-box {
	background: #eff6ff;
	border: 1.5px solid #bfdbfe;
	border-radius: 12px;
	padding: 24px;
	margin-top: 25px;
}

.guest-action-box h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1e3a8a;
	margin: 0 0 8px;
}

.guest-action-box p {
	font-size: 14px;
	color: #3b82f6;
	margin: 0 0 18px;
}

.btn-google-sign-in {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	color: #3c4043 !important;
	border: 1px solid #dadce0;
	padding: 10px 24px;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15);
	transition: all 0.2s ease;
}

.btn-google-sign-in:hover {
	background: #f8fafc;
	box-shadow: 0 4px 10px rgba(60, 64, 67, 0.25);
	color: #202124 !important;
	transform: translateY(-1px);
}

