/* AI House Designer - Public / frontend styles */

.ahd-notice { padding: 16px; background: #fff3cd; border: 1px solid #ffe69c; border-radius: 6px; }

/* ---- Dashboard (Phase 3) -------------------------------------------- */
.ahd-dashboard { max-width: 1100px; margin: 0 auto; }
.ahd-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ahd-table { width: 100%; border-collapse: collapse; background: #fff; }
.ahd-table th, .ahd-table td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; font-size: 14px; }
.ahd-table th { background: #f7f7f8; font-weight: 600; }
.ahd-status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #eef1f4; }
.ahd-actions a { margin-right: 8px; font-size: 13px; }
.ahd-actions a.ahd-disabled { color: #aaa; pointer-events: none; }
.ahd-btn { display: inline-block; padding: 8px 16px; border-radius: 6px; background: #2271b1; color: #fff; text-decoration: none; border: 0; cursor: pointer; font-size: 14px; }
.ahd-btn:hover { background: #135e96; color: #fff; }

/* ---- Designer app (Phase 4) ------------------------------------------ */
.ahd-app { display: flex; flex-direction: column; height: 88vh; min-height: 600px; border: 1px solid #d5d8dc; border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f5f7; }
.ahd-topbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #1d2733; color: #fff; font-size: 13px; }
.ahd-topbar .ahd-logo { font-weight: 700; margin-right: auto; }
.ahd-topbar button { background: #2c3a4b; color: #fff; border: 1px solid #3c4d61; border-radius: 4px; padding: 6px 12px; cursor: pointer; font-size: 12px; }
.ahd-topbar button:hover { background: #3c4d61; }
.ahd-body { display: flex; flex: 1; min-height: 0; }
.ahd-toolbar { width: 150px; background: #fff; border-right: 1px solid #e0e2e6; padding: 10px; overflow-y: auto; }
.ahd-toolbar h4 { margin: 10px 0 6px; font-size: 11px; text-transform: uppercase; color: #888; }
.ahd-tool-btn { display: block; width: 100%; text-align: left; padding: 7px 8px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 5px; background: none; cursor: pointer; font-size: 13px; }
.ahd-tool-btn:hover, .ahd-tool-btn.active { background: #eef3fb; border-color: #cfe0f5; }
.ahd-canvas-wrap { flex: 1; position: relative; background: #eceef1; overflow: auto; }
.ahd-canvas-tabs { display: flex; gap: 6px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #e0e2e6; }
.ahd-canvas-tabs button { padding: 5px 10px; border-radius: 5px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 12px; }
.ahd-canvas-tabs button.active { background: #2271b1; color: #fff; border-color: #2271b1; }
#ahd-svg-canvas { display: block; background: #fff; margin: 20px auto; box-shadow: 0 0 0 1px #ddd; }
#ahd-three-canvas { width: 100%; height: 100%; display: block; }
.ahd-properties { width: 220px; background: #fff; border-left: 1px solid #e0e2e6; padding: 12px; overflow-y: auto; font-size: 13px; }
.ahd-properties label { display: block; margin-top: 10px; font-size: 11px; text-transform: uppercase; color: #888; }
.ahd-properties input, .ahd-properties select { width: 100%; padding: 5px 7px; margin-top: 3px; border: 1px solid #ccc; border-radius: 4px; }
.ahd-floorbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #1d2733; }
.ahd-floorbar button.ahd-floor-tab { background: #2c3a4b; color: #ccc; border: 1px solid #3c4d61; border-radius: 4px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.ahd-floorbar button.ahd-floor-tab.active { background: #2271b1; color: #fff; }
.ahd-floorbar button.ahd-add-floor { margin-left: auto; background: #1f8a4c; color: #fff; border: none; border-radius: 4px; padding: 5px 12px; cursor: pointer; font-size: 12px; }
.ahd-disclaimer-bar { font-size: 11px; color: #666; padding: 6px 14px; background: #fdf6e3; border-top: 1px solid #efe1b0; }
.ahd-price-box { padding: 8px 14px; background: #eef7ee; border-top: 1px solid #cfe8cf; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.ahd-watermark-banner { background: #fdecea; color: #842029; padding: 6px 14px; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
	.ahd-toolbar, .ahd-properties { display: none; }
	.ahd-body::after { content: 'For the full CAD-style editor, please use a desktop or tablet.'; display: block; padding: 20px; text-align: center; color: #888; font-size: 13px; }
}
