/**
 * Drone Customer Dashboard - front-end styles
 * Professional navy / blue, card-based, responsive.
 */

:root {
	--dcd-navy: #0d2540;
	--dcd-navy-2: #143a63;
	--dcd-blue: #1d6fe0;
	--dcd-blue-light: #e8f1fd;
	--dcd-accent: #f2b807;
	--dcd-bg: #f4f7fb;
	--dcd-card: #ffffff;
	--dcd-border: #e2e8f0;
	--dcd-text: #1f2d3d;
	--dcd-muted: #6b7c93;
	--dcd-radius: 14px;
	--dcd-shadow: 0 6px 24px rgba(13, 37, 64, 0.08);
}

.dcd-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--dcd-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.dcd-wrap *,
.dcd-wrap *::before,
.dcd-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.dcd-header {
	background: linear-gradient(135deg, var(--dcd-navy) 0%, var(--dcd-navy-2) 60%, var(--dcd-blue) 130%);
	border-radius: var(--dcd-radius);
	color: #fff;
	padding: 28px 30px;
	margin-bottom: 24px;
	box-shadow: var(--dcd-shadow);
}

.dcd-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

.dcd-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	margin-bottom: 6px;
	opacity: 0.95;
}

.dcd-logo .dashicons {
	color: var(--dcd-accent);
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.dcd-logo-text {
	font-weight: 400;
	letter-spacing: 0.5px;
}

.dcd-logo-text strong {
	color: var(--dcd-accent);
	font-weight: 700;
}

.dcd-header h1 {
	margin: 4px 0 2px;
	font-size: 28px;
	line-height: 1.15;
	color: #fff;
}

.dcd-welcome {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
}

.dcd-header-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.dcd-ref-box {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.12);
	padding: 8px 14px;
	border-radius: 10px;
	text-align: right;
}

.dcd-ref-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.8;
}

.dcd-ref-value {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.dcd-logout {
	color: #fff !important;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	transition: background 0.2s;
}

.dcd-logout:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* ---------- Status badges ---------- */
.dcd-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
	white-space: nowrap;
}

.dcd-badge-lg {
	font-size: 14px;
	padding: 8px 18px;
}

.dcd-badge-pending {
	background: #fff4d6;
	color: #9a6b00;
	border: 1px solid #f2d98a;
}

.dcd-badge-confirmed {
	background: var(--dcd-blue-light);
	color: var(--dcd-blue);
	border: 1px solid #b7d5f7;
}

.dcd-badge-completed {
	background: #dcf5e6;
	color: #1a7a43;
	border: 1px solid #a5e0bd;
}

/* ---------- Grid + cards ---------- */
.dcd-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
	margin-bottom: 22px;
}

.dcd-card {
	background: var(--dcd-card);
	border: 1px solid var(--dcd-border);
	border-radius: var(--dcd-radius);
	box-shadow: var(--dcd-shadow);
	overflow: hidden;
}

.dcd-card-wide {
	grid-column: 1 / -1;
}

.dcd-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	border-bottom: 1px solid var(--dcd-border);
	background: #fafcff;
}

.dcd-card-head h3 {
	margin: 0;
	font-size: 16px;
	color: var(--dcd-navy);
	font-weight: 700;
}

.dcd-card-icon {
	color: var(--dcd-blue);
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.dcd-card-body {
	padding: 20px 22px;
}

/* ---------- Details tables ---------- */
.dcd-details-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.dcd-details-table th,
.dcd-details-table td {
	text-align: left;
	padding: 9px 6px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: top;
}

.dcd-details-table th {
	color: var(--dcd-muted);
	font-weight: 600;
	width: 42%;
}

.dcd-details-table tr:last-child th,
.dcd-details-table tr:last-child td {
	border-bottom: none;
}

.dcd-bookings-list thead th {
	color: var(--dcd-navy);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

/* ---------- Invoice ---------- */
.dcd-invoice-amount {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, var(--dcd-navy) 0%, var(--dcd-blue) 130%);
	color: #fff;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 16px;
}

.dcd-invoice-label {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	opacity: 0.85;
}

.dcd-invoice-value {
	font-size: 30px;
	font-weight: 800;
}

.dcd-paid {
	color: #1a7a43;
	font-weight: 700;
}

.dcd-unpaid {
	color: #b7791f;
	font-weight: 700;
}

/* ---------- Downloads ---------- */
.dcd-download-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
}

.dcd-download-list li {
	margin: 0;
}

.dcd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--dcd-blue);
	color: #fff !important;
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.dcd-btn:hover {
	background: var(--dcd-navy-2);
}

.dcd-btn:active {
	transform: translateY(1px);
}

.dcd-btn-block {
	width: 100%;
}

.dcd-btn-download {
	width: 100%;
}

.dcd-btn-download .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.dcd-locked {
	text-align: center;
	padding: 24px 10px;
	color: var(--dcd-muted);
}

.dcd-locked .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #c3ccd8;
	margin-bottom: 6px;
}

.dcd-muted {
	color: var(--dcd-muted);
}

/* ---------- Notice card ---------- */
.dcd-notice-card {
	text-align: center;
	padding: 34px 24px;
}

.dcd-notice-card h2 {
	color: var(--dcd-navy);
	margin-top: 0;
}

/* ---------- Auth (login/register) ---------- */
.dcd-auth-wrap {
	max-width: 460px;
}

.dcd-auth-card {
	background: var(--dcd-card);
	border: 1px solid var(--dcd-border);
	border-radius: var(--dcd-radius);
	box-shadow: var(--dcd-shadow);
	padding: 30px 28px;
}

.dcd-auth-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 22px;
	color: var(--dcd-navy);
	margin-bottom: 22px;
}

.dcd-auth-brand .dashicons {
	color: var(--dcd-blue);
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.dcd-auth-brand .dcd-logo-text strong {
	color: var(--dcd-blue);
}

.dcd-tabs {
	display: flex;
	border: 1px solid var(--dcd-border);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 22px;
}

.dcd-tab {
	flex: 1;
	background: #f6f9fd;
	border: none;
	padding: 13px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dcd-muted);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.dcd-tab.active {
	background: var(--dcd-navy);
	color: #fff;
}

.dcd-tab-panel {
	display: none;
}

.dcd-tab-panel.active {
	display: block;
}

.dcd-form p,
.dcd-tab-panel .login p {
	margin: 0 0 16px;
}

.dcd-form label,
.dcd-tab-panel .login label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--dcd-navy);
	margin-bottom: 6px;
}

.dcd-form input[type="text"],
.dcd-form input[type="email"],
.dcd-form input[type="password"],
.dcd-tab-panel .login input[type="text"],
.dcd-tab-panel .login input[type="password"] {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--dcd-border);
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}

.dcd-form input:focus,
.dcd-tab-panel .login input:focus {
	outline: none;
	border-color: var(--dcd-blue);
	box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.15);
}

.dcd-tab-panel .login .submit input {
	width: 100%;
	background: var(--dcd-blue);
	color: #fff;
	border: none;
	padding: 12px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.dcd-tab-panel .login .submit input:hover {
	background: var(--dcd-navy-2);
}

.dcd-auth-alt {
	text-align: center;
	margin-top: 14px;
	font-size: 13px;
}

.dcd-auth-alt a {
	color: var(--dcd-blue);
	text-decoration: none;
}

.dcd-alert {
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
}

.dcd-alert-error {
	background: #fdecea;
	color: #a5261a;
	border: 1px solid #f5c2bc;
}

.dcd-alert-success {
	background: #e6f6ec;
	color: #1a7a43;
	border: 1px solid #b3e0c4;
}

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

	.dcd-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.dcd-header-right {
		justify-content: flex-start;
	}

	.dcd-ref-box {
		text-align: left;
	}
}
