/**
 * Mariposa Wedding Manager - Public Area CSS
 * High-end, premium design for couples
 */

.mwm-client-container {
	max-width: 500px;
	margin: 50px auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mwm-client-card {
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
	padding: 40px 32px;
	text-align: center;
	border: 1px solid #f1f5f9;
}

.mwm-login-card h2 {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 12px 0 4px 0;
}

.mwm-subtitle {
	color: #64748b;
	font-size: 15px;
	margin-bottom: 28px;
}

.mwm-client-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	text-align: left;
}

.mwm-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.mwm-input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	font-size: 15px;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.mwm-input:focus {
	outline: none;
	border-color: #ec4899;
	box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.mwm-btn-primary {
	width: 100%;
	background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
	color: #ffffff;
	border: none;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mwm-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 25px -5px rgba(236, 72, 153, 0.5);
}

.mwm-login-footer {
	margin-top: 30px;
	color: #94a3b8;
	font-size: 12px;
}

.mwm-alert {
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
	margin-bottom: 20px;
}

.mwm-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.mwm-alert-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

/* Client Portal Dashboard */
.mwm-client-portal {
	max-width: 1100px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #334155;
}

.mwm-portal-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
	color: #ffffff;
	padding: 32px;
	border-radius: 20px;
	box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.3);
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 20px;
}

.mwm-badge-live {
	background: rgba(236, 72, 153, 0.25);
	color: #f472b6;
	border: 1px solid rgba(236, 72, 153, 0.4);
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mwm-couple-info h1 {
	color: #ffffff;
	font-size: 32px;
	font-weight: 800;
	margin: 8px 0;
}

.mwm-wedding-meta {
	color: #94a3b8;
	font-size: 15px;
	margin: 0;
}

.mwm-btn-logout {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.mwm-btn-logout:hover {
	background: rgba(255, 255, 255, 0.25);
}

.mwm-portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.mwm-card-stat {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mwm-stat-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 6px;
}

.mwm-stat-number {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
}

/* Tabs */
.mwm-tab-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.mwm-tab-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #475569;
	padding: 12px 20px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mwm-tab-btn:hover, .mwm-tab-btn.active {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}

.mwm-tab-btn.mwm-tab-highlight {
	background: #ec4899;
	color: #ffffff;
	border-color: #ec4899;
}

.mwm-tab-btn.mwm-tab-highlight:hover {
	background: #be185d;
}

.mwm-tab-content {
	display: none;
}

.mwm-tab-content.active {
	display: block;
}

.mwm-portal-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.mwm-portal-panel h3 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 16px;
}

.mwm-table-responsive {
	overflow-x: auto;
}

.mwm-portal-table {
	width: 100%;
	border-collapse: collapse;
}

.mwm-portal-table th {
	background: #f8fafc;
	text-align: left;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	border-bottom: 2px solid #e2e8f0;
}

.mwm-portal-table td {
	padding: 14px 16px;
	font-size: 14px;
	border-bottom: 1px solid #e2e8f0;
}

.mwm-tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
}

.mwm-tag-success { background: #dcfce7; color: #15803d; }
.mwm-tag-warning { background: #fef3c7; color: #b45309; }
.mwm-tag-danger { background: #fee2e2; color: #b91c1c; }

/* ==========================================================================
   SEATING LAYOUT & SPREADSHEET STYLES (FRONTEND & CLIENT PORTAL)
   ========================================================================== */
.mwm-table-spreadsheet {
	width: 100%;
	border: 1px solid #cbd5e1 !important;
	border-collapse: collapse !important;
	margin-top: 12px;
}
.mwm-table-spreadsheet th, .mwm-table-spreadsheet td {
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	text-align: left;
}
.mwm-table-spreadsheet th {
	background: #f1f5f9;
	color: #1e293b;
	font-weight: 700;
}
.mwm-table-spreadsheet .mwm-foot-total {
	background: #fef08a !important;
	color: #854d0e !important;
	font-size: 15px;
}
.mwm-badge-pax {
	background: #e0f2fe;
	color: #0369a1;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 6px;
}
.mwm-badge-total-pax {
	background: #ca8a04;
	color: #ffffff;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 6px;
}
.mwm-total-price {
	font-size: 18px;
	font-weight: 800;
	color: #15803d;
}

.mwm-floorplan-container {
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 20px;
	min-height: 300px;
	margin-top: 16px;
}
.mwm-tables-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.mwm-table-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 4px solid #3b82f6;
	border-radius: 10px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mwm-table-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.mwm-table-card-header {
	padding: 10px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	border-bottom: 1px solid #f1f5f9;
}
.mwm-table-title {
	font-size: 15px;
}
.mwm-btn-icon {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	opacity: 0.7;
	transition: opacity 0.2s;
	padding: 2px 4px;
}
.mwm-btn-icon:hover {
	opacity: 1;
}

.mwm-table-guests-list {
	padding: 10px 14px;
	flex-grow: 1;
	min-height: 80px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mwm-guest-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 8px;
	background: #f8fafc;
	border-radius: 4px;
	font-size: 13px;
}
.mwm-guest-name {
	font-weight: 600;
	color: #334155;
}
.mwm-guest-empty-slot {
	color: #94a3b8;
	font-size: 12px;
	text-align: center;
	padding: 16px 0;
}
.mwm-table-card-footer {
	padding: 8px 14px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	text-align: center;
}
.mwm-pax-badge {
	background: #fef08a;
	color: #854d0e;
	font-weight: 800;
	font-size: 13px;
	padding: 3px 12px;
	border-radius: 20px;
	display: inline-block;
}

.mwm-unassigned-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.mwm-unassigned-chip {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	padding: 6px 12px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.mwm-chip-name {
	font-size: 13px;
	font-weight: 600;
	color: #9f1239;
}
.mwm-inline-assign-form select {
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 4px;
}

.mwm-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mwm-modal-content {
	background: #ffffff;
	border-radius: 12px;
	width: 90%;
	max-width: 520px;
	box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
	overflow: hidden;
}
.mwm-modal-header {
	background: #0f172a;
	color: #ffffff;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.mwm-modal-header h3 {
	color: #ffffff;
	margin: 0;
	font-size: 16px;
}
.mwm-modal-header .mwm-modal-close {
	color: #ffffff;
}
.mwm-modal-content form {
	padding: 20px;
}
.mwm-form-group {
	margin-bottom: 14px;
}
.mwm-form-group label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
	color: #334155;
}
.mwm-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.mwm-modal-footer {
	margin-top: 16px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* INTERACTIVE ROOM FLOORPLAN CANVAS */
.mwm-hall-container {
	background: #ffffff;
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 24px;
}
.mwm-hall-stage {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	color: #ffffff;
	text-align: center;
	padding: 10px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 2px;
	border-radius: 8px;
	margin-bottom: 16px;
	text-transform: uppercase;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.mwm-hall-canvas {
	position: relative;
	width: 100%;
	min-height: 520px;
	background-color: #f8fafc;
	background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
	background-size: 24px 24px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	user-select: none;
}
.mwm-draggable-table {
	position: absolute;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	border: 2px solid #3b82f6;
	background: #ffffff;
	padding: 10px 14px;
	cursor: move;
	transition: box-shadow 0.2s, transform 0.1s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	z-index: 10;
}
.mwm-draggable-table:hover {
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	transform: scale(1.02);
	z-index: 50;
}
.mwm-draggable-table.dragging {
	box-shadow: 0 15px 30px rgba(0,0,0,0.25);
	opacity: 0.9;
	z-index: 100;
}
.mwm-draggable-table.shape-retangular {
	border-radius: 12px;
	min-width: 130px;
	min-height: 85px;
}
.mwm-draggable-table.shape-redonda {
	border-radius: 50%;
	width: 125px;
	height: 125px;
}
.mwm-draggable-table.shape-oval {
	border-radius: 50% / 35%;
	width: 140px;
	height: 95px;
}
.mwm-draggable-table.shape-u {
	border-radius: 16px 16px 4px 4px;
	min-width: 140px;
	min-height: 90px;
	border-bottom: 4px solid #3b82f6;
}
.mwm-draggable-table .tb-name {
	font-weight: 700;
	font-size: 13px;
	color: #0f172a;
	line-height: 1.2;
	margin-bottom: 2px;
}
.mwm-draggable-table .tb-pax {
	background: #0f172a;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 999px;
	margin-top: 4px;
}
.mwm-draggable-table .tb-guests-preview {
	font-size: 10px;
	color: #64748b;
	max-width: 110px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 2px;
}

/* Floorplan Table Rotation & Canvas Resize Controls */
.mwm-rotate-btn {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 26px;
	height: 26px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 50%;
	font-size: 13px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	z-index: 30;
	transition: all 0.2s ease;
}
.mwm-rotate-btn:hover {
	background: #f1f5f9;
	transform: scale(1.15) rotate(45deg);
	border-color: #ec4899;
	color: #ec4899;
}
.mwm-canvas-height-controls {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}
.mwm-btn-size {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
}
.mwm-btn-size:hover {
	background: #3b82f6;
	color: #ffffff;
	border-color: #3b82f6;
}
.mwm-canvas-resize-handle {
	width: 100%;
	height: 26px;
	background: #f1f5f9;
	border: 1px dashed #cbd5e1;
	border-top: none;
	border-radius: 0 0 12px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: ns-resize;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	user-select: none;
	transition: background 0.2s, color 0.2s;
}
.mwm-canvas-resize-handle:hover {
	background: #e2e8f0;
	color: #0f172a;
}


